Git Courer logo

Git Courer

Git operations for AI agents with structured MCP tools, AST-aware diffs, isolated worktrees, and automatic backups.

Install Git Courer

Run the project’s own setup commands, in order.

Setup steps from the project

git-courer installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    curl -fsSL https://raw.githubusercontent.com/blak0p/git-courer/main/scripts/install.sh | sh
    
  2. 2. Add to your MCP client
    git-courer mcp setup     # auto-configures your agent (OpenCode, Claude Code, Codex, pi, Antigravity)
    

Overview

The git-courer MCP server gives AI agents structured access to Git operations including status, diffs, commits, branches, stashes, history, synchronization, and worktrees. It uses JSON inputs and outputs rather than shell commands or text parsing, and backs up write operations before execution. Commit previews use AST analysis and dependency information to classify changes, while sessions can redirect work into isolated worktrees. Reach for it when an agent needs to modify repositories with reviewable commits, recovery options, and less risk of interfering with other work.

Use cases

  • Review agent-proposed commits before applying them
  • Run repository changes in isolated worktrees
  • Inspect AST-aware diffs and dependency impact
  • Restore repository state after a write operation
  • Check pull-request readiness in one request

Key features

  • Structured JSON Git operations over MCP
  • AST-tagged diffs and dependency analysis
  • Preview-and-apply commit workflow
  • Automatic backups before writes
  • Isolated worktree sessions
  • Pull-request review checks

Tools13

What Git Courer lets your agent do. Expand a tool for its parameters.

Self-reported~115 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

18/23 checks healthy over the last 112d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars46Stargazers on the source repository.
Last commit3d agoMost recent push to the default branch.
Tools exposed13Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Git Courer works

What git-courer does

git-courer exposes a broad Git workflow through MCP tools for agents working in repositories. Read operations include repository status, AST-tagged diffs, commit history, reflogs, blame data, and remote synchronization. Mutation tools cover commits, branches, staging, stashes, history rewrites, branch integration, and backups.

The commit workflow separates proposal from execution. A preview can analyze changed files, identify dependency relationships, classify the likely commit type, and prepare a structured summary. The agent can review that result before applying the commit. When enabled, a local LLM writes the commit message’s explanation; Go-based rules determine the commit type, with an option for the agent to override it.

How it works

git-courer communicates through MCP with structured JSON rather than invoking Git through an agent-controlled shell. Before write operations, it creates an automatic backup so an operation can be restored through the backup interface. The server also includes a combined pull-request review operation that reports tests, conflicts, diff statistics, and branch divergence.

Sessions provide an isolated workflow for agents. Starting a session creates a worktree and branch, then redirects the other MCP operations to that worktree. Finishing closes the session and removes the worktree; discarding a session abandons it. This model is useful when several agent tasks need separate working directories.

The command-line application also provides setup, diagnostics, project initialization, configuration removal, updates, version prediction, and shell-command classification. Its hook classifier labels commands and does not deny them.

Setup and configuration

Install with the project’s shell installer, Go install command, or Homebrew tap. The documented installation options are:

  • curl -fsSL https://raw.githubusercontent.com/blak0p/git-courer/main/scripts/install.sh | sh
  • go install github.com/blak0p/git-courer@latest
  • brew install blak0p/tap/git-courer

Run git-courer mcp setup to configure the documented agent clients, then restart the agent. git-courer doctor reports detected client configuration paths, MCP configuration state, prompt injection status, hook status, and Claude Code inline hooks where applicable. Project settings can be created or updated with git-courer init.

The server supports a configuration option at llm.enabled. Setting it to false removes the local-LLM requirement: the agent supplies the commit message, while previewing, applying, and overriding the commit type remain available. Release generation is not available in this mode.

Tools and capabilities

  • Inspect status, diffs, history, reflogs, blame, conflicts, stashes, and branch state.
  • Create, switch, delete, rename, and list branches.
  • Stage, remove, restore, and clean files.
  • Save, inspect, and pop stashes.
  • Preview and apply commits through a reviewable workflow.
  • Synchronize with remotes, integrate branches, and rewrite history.
  • Review pull-request readiness using tests, conflicts, statistics, and divergence.
  • Create isolated sessions with worktree lifecycle management.
  • Restore earlier repository state through automatic backups.

Limitations and notes

It explicitly names OpenCode, Claude Code, Codex, pi, and Antigravity for automatic setup; client support outside that list is not confirmed here. Release generation requires the LLM-enabled configuration. Automatic backups protect write operations, but repository recovery behavior still depends on the available backup state and the operation performed.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Git Courer

git-courer is an MCP server that connects AI agents to Git repositories through structured tools for status, diffs, commits, branches, staging, stashes, history, synchronization, backups, and isolated worktree sessions. It supports reviewable commit previews, AST-based change analysis, automatic backups before writes, and pull-request review checks.

Install it with the shell installer, `go install github.com/Alejandro-M-P/git-courer@latest`, or the documented Homebrew tap. Then run `git-courer mcp setup` to configure a supported agent and restart that agent.

It creates an automatic backup before each write operation and exposes a backup restore operation. Commit changes also support a preview-and-apply process, allowing an agent or developer to review the proposed result before execution.

Yes. Set `llm.enabled` to `false`; the agent then supplies the commit message directly, while commit preview, application, and type overrides continue to work. Release generation is unavailable with the LLM disabled.

The README explicitly describes setup for OpenCode, Claude Code, Codex, pi, and Antigravity, but it does not establish a Cursor-specific configuration.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGit Courer AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/git-courer?style=directory)](https://allmcps.com/mcp/git-courer)
HTML Embed
<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>