git status
git_statusSummarize a repository's working tree state: current branch, upstream tracking, ahead/behind counts and changed paths. Read-only; use it to decide what to inspect with git_diff.
Instructions
Summarise a repository's working tree: current branch, upstream, ahead/behind counts and changed paths. Read-only. Use this before deciding what to look at with git_diff.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repo": "<repo>"
},
"name": "git_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Absolute path to a git working tree, inside MCP_ALLOWED_ROOTS |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ahead | Yes | Commits ahead of upstream | |
| behind | Yes | Commits behind upstream | |
| branch | Yes | Current branch name | |
| changes | Yes | ||
| upstream | Yes | Upstream ref, null when the branch has none | |
| truncated | Yes | True when the tree has more changed paths than the 200 kept |