git_branch_favorite
MCP tools › Version control
Marks (favorite: true), unmarks (false) or toggles (left out) a favourite branch, as the star of the branch popup and of the Git log's branches pane do. name as git_branches lists it; remote: true picks the remote-tracking branch when a local branch has the same name. Favourites are kept per repository in the workspace's .ferris-idea/branch-favorites.toml (never in .git), local and remote apart; main/master are favourites until unmarked. Needs the write right, because the file is a file of the project. Returns the branch with its new favorite.
| Capability | git.git_branch_favorite |
|---|---|
| Area | Version control |
| Access | changes files, settings |
| Reaches | — |
| Rights | write |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
namerequired | string | Branch name as git_branches lists it (main, feature/x, origin/main). |
favorite | boolean | true marks, false unmarks; left out, the mark is toggled. |
remote | boolean | The remote-tracking branch name rather than a local branch of the same name (default:
the local branch when one exists). |
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_branch_favorite '{"name":"<string>"}'Input schema as JSON
{ "type": "object", "required": [ "name" ], "properties": { "name": { "description": "Branch name as `git_branches` lists it (`main`, `feature/x`, `origin/main`).", "type": "string" }, "favorite": { "description": "`true` marks, `false` unmarks; left out, the mark is toggled.", "type": [ "boolean", "null" ], "default": null }, "remote": { "description": "The remote-tracking branch `name` rather than a local branch of the same name (default:\nthe local branch when one exists).", "type": [ "boolean", "null" ], "default": null } }}