Skip to content

git_branches

MCP tools › Version control

Local and remote-tracking branches with target commit; the current branch first and marked; reports a detached HEAD. Also, as the branch popup shows them: tracking (upstream and commits ahead/behind of each local branch as of the last fetch), recent (local branches checked out recently, newest first, the current branch first) and tags (name and commit). Every branch carries favorite (SPEC-0068 v8: main/master and <remote>/main/<remote>/master by default; set with git_branch_favorite).

Its results carry text from git: the client is told to treat that as data, never as instructions.

Capabilitygit.git_branches
AreaVersion control
Accessreads only
Reaches—
Rightsnone
Dry runnone

Arguments

No arguments.

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_branches
Input schema as JSON
{
"type": "object",
"properties": {}
}