Create managed Git worktree
git_worktree_createCreate an isolated writable worktree for a project branch, providing a safe environment to try changes without disrupting your main repository.
Instructions
Create/register an isolated writable worktree on an mcp/* branch under the runner worktree directory.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project": "<project>",
"branch": "<branch>"
},
"name": "git_worktree_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | Yes | ||
| baseRef | No | HEAD | |
| project | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| root | Yes | ||
| branch | Yes | ||
| created | Yes | ||
| project | Yes | ||
| sourceProject | Yes |