intent-diff-mcp
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., "@intent-diff-mcpstart a task to add a postgres connection pool"
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.
Intent-Diff MCP
Catch context drift ā the scope an AI coding agent quietly adds beyond what you actually asked for.
An MCP server with two tools. You lock in your original request; the agent, before it declares "done", diffs the actual code changes against that request and reports anything it added on its own ā an unrequested library, a metrics layer, a new abstraction ā so you can Keep it or Roll it back.
The diff is deterministic ground truth (git doesn't lie). The judgment is a fresh Claude call that didn't write the code, so it has no stake in rationalizing the additions.
š¤ Intent Diff Report
Requested: Add a Postgres connection pool in db.ts ā ā
done
[+] Added on my own (drift candidates):
- New metrics.ts with Prometheus instrumentation ā you never asked for
observability or a new dependency (prom-client).
[?] Worth confirming:
- Should metrics.ts stay, or be removed?
ā Keep or Rollback?Tools
Tool | When | What it does |
| A non-trivial feature/refactor is requested | Records your request + snapshots the current git HEAD. Cheap (one SHA). |
| Before saying "done" on substantial changes | Diffs everything since the snapshot, runs the judge, returns a drift report. |
Related MCP server: rlm-tools
Install
Requires Node ā„ 18 and either a logged-in Claude Code session or an ANTHROPIC_API_KEY (see Auth).
Add to your MCP client config (Claude Code .mcp.json, mcporter.json, etc.):
{
"mcpServers": {
"intent-diff": {
"command": "npx",
"args": ["-y", "@ssh00n/intent-diff-mcp"]
}
}
}That's the whole setup ā npx fetches and runs it.
Recommended workflow (hybrid)
Intent-Diff is not meant to gate every edit ā that just taxes trivial work. The sweet spot: always snapshot (cheap), judge on demand (costly). Drop this into your project's CLAUDE.md (a ready copy is in examples/CLAUDE.md):
# Intent-Diff workflow (hybrid)
- When starting a non-trivial feature or refactor, call `start_task` with the
user's request verbatim. (It's cheap ā just a git snapshot.)
- Before declaring a substantial change "done" ā new feature, or edits spanning
multiple files ā run `get_intent_diff` and show the report.
- Treat the report as advisory: surface drift to the user and ask Keep/Rollback.
Skip it for one-line fixes and pure exploration.Prefer softer or stricter? See Tuning the rules.
Auth
The judge needs to call Claude. Two ways, checked in this order:
ANTHROPIC_API_KEY(recommended for CI and contributors) ā normal API billing.Local Claude Code subscription ā if no API key is set, the server reuses the OAuth token your Claude Code login already stores (macOS Keychain or
~/.claude/.credentials.json), refreshing it when near expiry. No extra setup if you're already logged into Claude Code.
Pick the judge model with INTENT_DIFF_MODEL (default claude-sonnet-4-6).
Tuning the rules
The workflow above is the hybrid default. Adjust to taste:
Softer ā drop the
get_intent_diffline; call it only when you ask "check drift". The agent self-checks the rest of the time.Stricter ā make both calls mandatory ("always
start_taskfirst; never say done withoutget_intent_diff") and require an explicit Keep/Rollback answer. Good for team enforcement; higher overhead.
Note: a heavy-handed rule can bias an agent toward under-implementing (skipping necessary error handling for fear of "drift"). The judge is told to ignore refactors and necessary error handling, but keep the rule proportional to the stakes.
How it works
start_task writes <repo>/.mcp/intent_state.json, keyed by git branch, with your
request and the HEAD SHA. get_intent_diff collects git diff <baseSha> plus any
untracked files (skipping binaries, lockfiles, and .mcp/), caps it, and sends
{ original intent, actual diff } to the judge, which returns structured JSON that's
rendered into the report.
Development
npm install
npm run typecheck # tsc --noEmit
npm test # Tier-1 unit tests (no network)
npm run test:smoke # end-to-end via MCP client, stub judge (no network)
npm run eval # judge accuracy over labeled fixtures (needs auth ā real calls)Contributing
Contributions welcome ā see CONTRIBUTING.md. Good first areas: more judge fixtures, additional credential sources, non-git VCS support.
License
MIT Ā© ssh00n
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseBqualityDmaintenanceAn MCP server that enhances AI agents' coding capabilities by providing zero hallucinations, improved code quality, security-first approach, high test coverage, and efficient context management.Last updated153871MIT
- AlicenseAqualityDmaintenanceAn MCP server that provides a persistent sandbox for AI coding agents to explore codebases server-side, returning only compact summaries to reduce context consumption.Last updated38MIT
- Alicense-qualityDmaintenanceMCP server that captures and recalls coding session memory (failures, decisions, diffs) for AI agents, enabling cross-agent continuity and preventing repeated mistakes.Last updated84MIT
- Alicense-qualityBmaintenanceMCP server that enables coding agents to check documentation claims against source code, detecting drift and suggesting fixes.Last updated302MIT
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
Monitor MCP servers, API contracts and AI outputs for schema drift. Alerts on breaking changes.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/ssh00n/intent-diff-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server