Skip to content

Commit 93f7a43

Browse files
committed
Update transcripts
1 parent c234652 commit 93f7a43

File tree

1 file changed

+2
-41
lines changed
  • unison-src/transcripts/idempotent

1 file changed

+2
-41
lines changed

unison-src/transcripts/idempotent/mcp.md

Lines changed: 2 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -424,47 +424,8 @@ RESPONSE:
424424

425425
## update-definitions
426426

427-
MCP can't edit branches unless they are marked as editable.
428-
429-
``` api
430-
POST /mcp
431-
BODY:
432-
{
433-
"jsonrpc": "2.0",
434-
"id": 1,
435-
"method": "tools/call",
436-
"params": {
437-
"name": "update-definitions",
438-
"arguments": {
439-
"projectContext": {
440-
"projectName": "scratch",
441-
"branchName": "uneditable"
442-
}, "code": {"text": "myTerm = 100"}
443-
}
444-
}
445-
}
446-
447-
RESPONSE:
448-
{
449-
"id": 1,
450-
"jsonrpc": "2.0",
451-
"result": {
452-
"content": [
453-
{
454-
"text": "The provided project-branch is not editable.\nPlease ask the user to allow edits to this project in their MCP configuration by adding `--mcp-editable-branches=scratch/uneditable` to the invocation of the Unison mcp within their agent's mcp configuration.",
455-
"type": "text"
456-
}
457-
],
458-
"isError": true
459-
}
460-
}
461-
462-
```
463-
464-
Transcripts allow mcp-editing on `agent-*` branches.
465-
466427
``` ucm
467-
scratch/agent-foo> builtins.merge lib.builtins
428+
scratch/foo> builtins.merge lib.builtins
468429
469430
Done.
470431
```
@@ -481,7 +442,7 @@ BODY:
481442
"arguments": {
482443
"projectContext": {
483444
"projectName": "scratch",
484-
"branchName": "agent-foo"
445+
"branchName": "foo"
485446
}, "code": {"text": "myTerm = 100"}
486447
}
487448
}

0 commit comments

Comments
 (0)