mcp-git-coord
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-git-coordSet up .mi context files for this project using mi_setup"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-git-coord
Cut your $200/mo Claude Max token usage in half. Every AI coding session wastes tokens re-exploring code your last session already understood. mcp-git-coord fixes this — plus stops your team's agents from stepping on each other.
Two problems, one tool
1. Token waste — agents re-explore the same code every session
Every time you start a new Claude Code / Cursor session, the agent reads hundreds of files to understand your codebase. That's thousands of tokens burned on knowledge that was already built in the last session — then thrown away.
.mi context files fix this. Each subdirectory maintains a .mi/ folder with pre-built understanding: architecture, data flow, key files, gotchas. Your agent reads a 200-line context doc instead of re-exploring 50 source files. Hooks remind the agent to read before coding and update after changing.
2. Coordination — agents working in silos create conflicts
When multiple developers use AI coding tools on the same repo, agents don't know about each other's work. They modify the same files, produce conflicting changes, and resolve merge conflicts by guessing — silently deleting features other people built.
Coordination tools fix this. Agents register their intent before working, detect conflicts before code is written, and provide human-controlled merge resolution with full team context.
Related MCP server: ccontext
Install
npm install -g mcp-git-coordOr paste this into Claude Code, Cursor, or any MCP-compatible AI tool:
Install mcp-git-coord by following the instructions at https://raw.githubusercontent.com/OperatingSystem-1/mcp-git-coord/main/llms-full.txtAdd to your MCP server config (.claude/settings.json for Claude Code, .cursor/mcp.json for Cursor):
{
"mcpServers": {
"git-coord": {
"command": "npx",
"args": ["-y", "mcp-git-coord"]
}
}
}Quick start — set up .mi context files
After installing, run this in your AI coding tool:
Set up .mi context files for this project using mi_setupThis will:
Scan your codebase — find directories with meaningful source code
Create
.mi/CONTEXT.mdin each one — scaffolded with file listings and recent git historyInstall hooks — SessionStart (remind to read), PreToolUse on Read (nudge before changes), PostToolUse on Edit (remind to update), Stop (warn about stale docs)
Then fill in the _TODO_ sections in each generated context file. The more you invest in these docs, the fewer tokens every future session burns.
How .mi context files work
your-project/
├── src/
│ ├── .mi/
│ │ └── CONTEXT.md ← "src/ architecture: API routes, DB layer, auth..."
│ ├── auth/
│ │ ├── .mi/
│ │ │ └── CONTEXT.md ← "auth: OAuth flow, session management, JWT..."
│ │ ├── middleware.ts
│ │ └── session.ts
│ └── billing/
│ ├── .mi/
│ │ └── CONTEXT.md ← "billing: Stripe integration, credit system..."
│ ├── stripe.ts
│ └── credits.ts
└── .claude/
├── hooks/ ← auto-installed by mi_setup
│ ├── mi-session-start.sh
│ ├── mi-read-context.sh
│ ├── mi-doc-reminder.sh
│ └── mi-stop-check.sh
└── settings.json ← hooks registered hereThe lifecycle:
Session starts → hook lists available
.mifiles, agent reads the relevant onesAgent reads a file → hook reminds about
.midocs in that directoryAgent edits a file → hook reminds to update the
.midoc if the change affects itSession ends → hook warns if source files changed but
.midocs weren't updated
The payoff: Instead of the agent spending 2,000+ tokens exploring src/auth/ from scratch, it reads a 150-line context doc that tells it everything: how OAuth works, where sessions are stored, what the JWT structure is, and what not to touch. That's a ~10x token reduction for that exploration, every single session.
How coordination works
Register intent before working
Agent → coord_register("Refactoring auth middleware", files: ["src/auth/middleware.ts"])
Server → "Registered. No conflicts."Detect conflicts before code is written
Agent → coord_register("Adding rate limiting to auth", files: ["src/auth/middleware.ts"])
Server → "⚠️ Conflict: cursor-alex is refactoring auth middleware in the same file."Plan around conflicts
Agent → coord_plan(my_intent, conflict)
Server → "Start with non-overlapping files. Defer auth/middleware.ts until their session completes."Merge with full team context
Agent → coord_merge_check(target_branch: "dev")
Server →
"2 file(s) have conflicting changes.
src/auth/middleware.ts:
Ours: +15/-3 lines (refactored middleware signature)
Theirs: +8/-2 lines (added rate limiter)
Why: cursor-alex was working on 'Adding rate limiting'
Ask the user to resolve each conflict."All tools
Context intelligence (.mi)
Tool | What it does |
| Scan codebase, create |
| List all |
| Check which |
Coordination
Tool | What it does |
| Register intent + files. Returns conflicts immediately. |
| Check if files or scopes have active work. |
| List all active sessions in the repo. |
| Mark session as done. |
| Given a conflict, suggest a non-overlapping approach. |
Merge resolution
Tool | What it does |
| Analyze conflicts with target branch. Returns human-readable summaries with team context. |
| Resolve a single conflict: keep ours, accept theirs, or apply custom content. |
Add coordination rules to your project
Add this to your CLAUDE.md, .cursorrules, or equivalent:
## Coordination (mcp-git-coord)
Before starting work, always:
1. Call `mi_scan` to see available context files, read the relevant ones
2. Call `coord_register` with your intent and the files you plan to modify
3. If conflicts are returned, call `coord_plan` to find a non-overlapping approach
4. When done, call `coord_complete` with a summary
5. Update any .mi context files affected by your changes
Before merging, always:
1. Call `coord_merge_check` with the target branch
2. If conflicts exist, present each one to the user with the TL;DR
3. Do NOT resolve any conflict without explicit user approval
4. Use `coord_merge_resolve` for each file after the user decidesDevelopment
git clone https://github.com/OperatingSystem-1/mcp-git-coord
cd mcp-git-coord
npm install
npm run devLicense
MIT
Open sourced by Mitosis Labs — autonomous AI agents that persist, reproduce, and evolve.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/OperatingSystem-1/mcp-git-coord'
If you have feedback or need assistance with the MCP directory API, please join our Discord server