Full git MCP server for LLM agents β 17 tools, AST annotator, auto-backups, real plumbing.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Git Courer.
statusFull repo state: branch, changes, conflicts, stash, etc.
diffDiff with AST tags (`NEW_FUNC`, `MOD_SIG`, `DEPS`, `DEL`)
commit3-phase LLM pipeline: preview, review, apply
branchBranch management
stageStaging area control
stashStash management
Issues & Bugs: @blak0p/git-courer/issues Β· Discussions: @blak0p/git-courer/discussions
| Doc | Description |
|---|---|
| Web | Visit the official website |
| Roadmap | What's coming next and the strategic vision |
| Architecture | Codebase structure, patterns, and how to add features |
| Troubleshooting | Fix: Ollama not running, MCP not detected, permission errors |
| MCP Clients | All 5 supported CLI agents, config formats, manual setup |
| Config Options | All ~/.config/git-courer/config.yaml and .git/git-courer/config.json settings |
| Commands | Complete reference for all 13 MCP tools |
| Contributing | Setup, running tests, and how to collaborate |
Git, but agents can't break it.
An MCP server that gives AI agents a full, safe interface to Git β not just commits, the whole surface: status, diff, branch, stash, history, sync. Every mutation backs itself up automatically. Nothing routes through Bash, so there's no git reset --hard happening behind your back.
13 tools. Structured JSON in, structured JSON out. No pagers, no text parsing, no guessing what the agent actually did to your repo.
Homebrew:
Restart your agent, then ask it to run status on any repo. If it comes back with structured JSON instead of raw git status output, you're connected.
doctor reports per client: config path, MCP configured, prompt block injected, hooks installed (yes/no/partial), and Claude inline hooks (Claude Code only).
Modest laptop with no GPU? Flip the toggle and git-courer runs fully without an LLM. The agent writes messages directly, Go still decides the type.
Without LLM: commit with message, preview and type override work. Release is not available. Everything else (status, diff, branch, session, backup) works normally.
AST analysis + deterministic rules. The LLM only writes the message. If the type is wrong, the agent overrides it with type=.
Before committing, it maps what your changes affect across the entire codebase. Real impact, not just "you touched 3 files".
Each agent gets its own directory and branch. No stepping on each other. session start creates, session finish closes and cleans up.
Structured summary with WHY/WHAT. Any LLM consumes it directly. Fewer tokens, fewer hallucinations.
Every write operation backs up before executing. One command undoes anything.
Commits are stored in refs/courer/*. Squash, rebase, force push β your changelog doesn't disappear.
This is the changelog it writes:
v2.8.0 β This update introduces an advanced session management system using git worktrees to enable parallel workflows and improves the robustness of agent execution rules.
Session Management and Isolation
- Implemented isolated sessions using git worktrees to prevent agents from interfering with each other; includes full lifecycle with listing, selection, and automatic cleanup via slugified identifiers.
- Integrated sessionGit wrapper into the MCP server for automatic directory redirection.
Developer Experience and Configuration
- Refined golden rules, now prohibiting work in the repository root to enforce strict workspace isolation.
- Automatic injection of prompt rule blocks into client configuration files.
- Fixed TUI MCP setup bug where clients were not configured correctly.
System Robustness and Refactoring
- Refactored agent instruction structure, removing unnecessary tool maps.
- Improved file cleanup using robust base names to prevent errors with complex paths.
session start β isolated worktree + branch. All MCP tools redirect there. session finish closes and cleans up. session discard throws it away.
PREVIEW β review proposed commits. APPLY β executes them. Go splits files by dependency graph into atomic commits.
pr-review β tests + conflicts + diff stats + divergence. All in one call.
git-courer release β interactive. Pick the tag, guide the LLM, preview the changelog, confirm. Commits live in refs/courer/* β they survive squashes.
backup RESTORE β undoes any operation.
| Tool | Subcommands | What it does |
|---|---|---|
status | β | Full repo state: branch, changes, conflicts, stash, etc. |
diff | β | Diff with AST tags (NEW_FUNC, MOD_SIG, DEPS, DEL) |
commit | PREVIEW β APPLY | 3-phase LLM pipeline: preview, review, apply |
branch | CREATE / SWITCH / DELETE / RENAME / LIST | Branch management |
stage | RM / RESTORE / CLEAN | Staging area control |
stash | SAVE / POP / SHOW | Stash management |
history | LOG / REFLOG / BLAME | History inspection |
sync | PUSH / PULL / FETCH | Remote sync |
pr-review | β | Tests + conflicts + diff stats + divergence in one call |
backup | RESTORE / LIST | Undo amend/merge/rebase |
rewrite | AMEND / REVERT / SOFT / HARD | History rewriting |
integrate | MERGE / UPDATE / PICK / CONTINUE / ABORT | Branch integration |
session | start / finish / status / select / discard | Isolated worktree lifecycle |
Full reference with examples: docs/commands.md.
| Tool | Auto-configured |
|---|---|
| OpenCode | β |
| Claude Code | β |
| Codex | β |
| pi | β |
| Antigravity | β |
git-courer mcp setup configures all at once. Manual setup and config formats: docs/mcp-clients.md.
mcp setup does more than register the MCP server β it also injects guardrails so agents route git operations through git-courer instead of raw Bash.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/git-courer)<a href="https://allmcps.com/mcp/git-courer"><img src="https://allmcps.com/api/badge/git-courer?style=directory" alt="Git Courer on AllMCPs" /></a>