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.
| Capability | git.git_log |
|---|---|
| Area | Version control |
| Access | reads only |
| Reaches | process |
| Rights | none |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
limit | integer | Most commits returned, newest first (default 50).minimum 0 |
all | boolean | Also the commits of every other local and remote branch and of tags, as the Git log tool window lists them (default false: HEAD only). |
branch | string | Only the commits reachable from this branch, remote branch, tag or revision, as choosing it
in the branches pane shows them (overrides all). |
author | string | Only commits by this author (name, exact), as the filter bar's user filter. |
since | integer | Only commits at or after this time (seconds since the epoch). |
until | integer | Only commits at or before this time (seconds since the epoch). |
paths | array of string | Only commits that change one of these repository-relative files or folders. |
text | string | Text in the subject, author or e-mail, or the start of the hash. |
regex | boolean | text is a regular expression (no hash match). |
case_sensitive | boolean | Case 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.
ferris-idea call ~/my-project git_logInput 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" ] } }}