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.
| Capability | git.git_branches |
|---|---|
| Area | Version control |
| Access | reads only |
| Reaches | — |
| Rights | none |
| Dry run | none |
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.
ferris-idea call ~/my-project git_branchesInput schema as JSON
{ "type": "object", "properties": {}}