http://localhost:3333/api/kiwi unless you use multi-space URLs or the X-Kiwi-Space header.
Drafts return 501 Not Implemented when the server was started without a draft manager.
Create draft
actor is empty, the server uses X-Actor, then falls back to api.
Response 201: { "id", "branch", "actor", "created_at" }
List drafts
Get draft
Diff draft against main
{ "diff": "<unified diff text>" }.
Merge or discard
{ "status": "merged" }. Conflicts return 409.
204 on success.
Files inside a draft
MCP parity
Use thekiwi_draft_* tools from MCP for the same operations from Claude, Cursor, or other MCP clients.