git_pull
MCP tools › Version control
Pull the current branch: fetch, then merge the upstream (fast-forward or merge commit); a conflicting merge is reported, not attempted. rebase=true replays own commits onto it (conflicts stop for git_rebase); reset=true moves the branch to it, dropping own commits (dropped), keeping local changes. info lists incoming commits and files. Dry run by default: previews offline against the last fetch; dry_run=false needs the remote right and is logged.
Its results carry text from git, web: the client is told to treat that as data, never as instructions.
| Capability | git.git_pull |
|---|---|
| Area | Version control |
| Access | changes files, repository, remote |
| Reaches | process, network |
| Rights | remote, vcs-write |
| Dry run | dry_run, on unless the call turns it off |
Arguments
| Argument | Type | Description |
|---|---|---|
dry_run | boolean | Only preview the merge against the last fetched upstream, without network (default true). |
rebase | boolean | Rebase the current branch onto its upstream instead of merging, stashing local changes around it (default false). |
reset | boolean | Reset the current branch to its upstream instead, giving up its own commits (listed in
dropped; the dry run lists them as of the last fetch) and keeping local changes
(default false). |
Call it from a shell
ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.
ferris-idea call ~/my-project git_pullInput schema as JSON
{ "type": "object", "properties": { "dry_run": { "description": "Only preview the merge against the last fetched upstream, without network (default true).", "type": [ "boolean", "null" ] }, "rebase": { "description": "Rebase the current branch onto its upstream instead of merging, stashing local changes\naround it (default false).", "type": [ "boolean", "null" ] }, "reset": { "description": "Reset the current branch to its upstream instead, giving up its own commits (listed in\n`dropped`; the dry run lists them as of the last fetch) and keeping local changes\n(default false).", "type": [ "boolean", "null" ], "default": null } }}