Skip to content

git_show

MCP tools › Version control

One commit: info (id, summary, author, e-mail, time), the whole message, parent ids and the changed files against the first parent (path and kind: added, modified, deleted), as the Git log tool window shows them. With path also rows: that file before (left [line, text]) and after (right) the commit side by side.

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

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

Arguments

ArgumentTypeDescription
commitstringCommit: full or short id, branch, tag or an expression such as HEAD~1 (default HEAD).
pathstringRepository-relative path of a changed file (as in changes): also return its rows, the file before and after the commit side by side.

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_show
Input schema as JSON
{
"type": "object",
"properties": {
"commit": {
"description": "Commit: full or short id, branch, tag or an expression such as `HEAD~1` (default HEAD).",
"type": [
"string",
"null"
]
},
"path": {
"description": "Repository-relative path of a changed file (as in `changes`): also return its `rows`, the\nfile before and after the commit side by side.",
"type": [
"string",
"null"
]
}
}
}