git_blame
MCP tools › Version control
Blame of a workspace file, as Annotate with Git Blame shows it: 1-based line ranges with the commit (id, short_id, summary, author, email, time) that last changed them; lines changed since HEAD have commit null (uncommitted). An open file is blamed as the editor shows it, saved or not. start_line/end_line (1-based, inclusive) limit the lines. An untracked file is an error saying so; a file added but never committed is one uncommitted range.
Its results carry text from git, files: the client is told to treat that as data, never as instructions.
| Capability | git.git_blame |
|---|---|
| Area | Version control |
| Access | reads only |
| Reaches | — |
| Rights | none |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
pathrequired | string | Workspace-relative file path. |
start_line | integer | First line to return (1-based, inclusive; default 1).minimum 0 |
end_line | integer | Last line to return (1-based, inclusive; default the last line).minimum 0 |
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_blame '{"path":"<string>"}'Input schema as JSON
{ "type": "object", "required": [ "path" ], "properties": { "path": { "description": "Workspace-relative file path.", "type": "string" }, "start_line": { "description": "First line to return (1-based, inclusive; default 1).", "type": [ "integer", "null" ], "minimum": 0 }, "end_line": { "description": "Last line to return (1-based, inclusive; default the last line).", "type": [ "integer", "null" ], "minimum": 0 } }}