Skip to content

git_log

MCP tools › Version control

Commit history from HEAD, newest first: id, summary, author, e-mail, time and parent ids (enough to draw the graph). all=true adds every branch and tag (no stashes); branch limits to commits reachable from a branch, tag or revision. author, since/until (epoch seconds), paths and text filter as the Git log filter bar does; returns the newest limit matches among the first 1000.

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

Capabilitygit.git_log
AreaVersion control
Accessreads only
Reachesprocess
Rightsnone
Dry runnone

Arguments

ArgumentTypeDescription
limitintegerMost commits returned, newest first (default 50).minimum 0
allbooleanAlso the commits of every other local and remote branch and of tags, as the Git log tool window lists them (default false: HEAD only).
branchstringOnly the commits reachable from this branch, remote branch, tag or revision, as choosing it in the branches pane shows them (overrides all).
authorstringOnly commits by this author (name, exact), as the filter bar's user filter.
sinceintegerOnly commits at or after this time (seconds since the epoch).
untilintegerOnly commits at or before this time (seconds since the epoch).
pathsarray of stringOnly commits that change one of these repository-relative files or folders.
textstringText in the subject, author or e-mail, or the start of the hash.
regexbooleantext is a regular expression (no hash match).
case_sensitivebooleanCase matters in text (default false).

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_log
Input schema as JSON
{
"type": "object",
"properties": {
"limit": {
"description": "Most commits returned, newest first (default 50).",
"type": [
"integer",
"null"
],
"minimum": 0
},
"all": {
"description": "Also the commits of every other local and remote branch and of tags, as the Git log tool\nwindow lists them (default false: HEAD only).",
"type": [
"boolean",
"null"
]
},
"branch": {
"description": "Only the commits reachable from this branch, remote branch, tag or revision, as choosing it\nin the branches pane shows them (overrides `all`).",
"type": [
"string",
"null"
]
},
"author": {
"description": "Only commits by this author (name, exact), as the filter bar's user filter.",
"type": [
"string",
"null"
]
},
"since": {
"description": "Only commits at or after this time (seconds since the epoch).",
"type": [
"integer",
"null"
]
},
"until": {
"description": "Only commits at or before this time (seconds since the epoch).",
"type": [
"integer",
"null"
]
},
"paths": {
"description": "Only commits that change one of these repository-relative files or folders.",
"type": [
"array",
"null"
],
"items": {
"type": "string"
}
},
"text": {
"description": "Text in the subject, author or e-mail, or the start of the hash.",
"type": [
"string",
"null"
]
},
"regex": {
"description": "`text` is a regular expression (no hash match).",
"type": [
"boolean",
"null"
]
},
"case_sensitive": {
"description": "Case matters in `text` (default false).",
"type": [
"boolean",
"null"
]
}
}
}