Skip to content

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.

Capabilitygit.git_pull
AreaVersion control
Accesschanges files, repository, remote
Reachesprocess, network
Rightsremote, vcs-write
Dry rundry_run, on unless the call turns it off

Arguments

ArgumentTypeDescription
dry_runbooleanOnly preview the merge against the last fetched upstream, without network (default true).
rebasebooleanRebase the current branch onto its upstream instead of merging, stashing local changes around it (default false).
resetbooleanReset 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.

Terminal window
ferris-idea call ~/my-project git_pull
Input 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
}
}
}