
Diff Mcp
Give agents character-accurate unified diffs and patch apply/parse so code review and fix loops do not drift on line endings or offsets.
Overview
diff-mcp is a MCP server for the Ship phase that produces character-precise unified diffs and applies or parses patches for agent-driven review.
What is this MCP server?
- Character-precise unified diff generation and interpretation
- Apply patches with alignment to exact character positions
- Parse patch text into structured operations for agents
- stdio MCP server (@mukundakatta/diff-mcp v0.1.0) from mcp-stack
- Reduces failed applies when agents edit files with mixed newlines or unicode
- @mukundakatta/diff-mcp version 0.1.0 published on npm
- stdio transport in MCP 2025-09-29 server manifest
- GitHub subfolder: mcp-stack/packages/diff-mcp
What problem does it solve?
Agent-generated patches often fail silently or corrupt files because coarse line-based diff logic misses character-level boundaries and malformed hunks.
Who is it for?
Solo builders running agent code review or automated fix application who need patch tools separate from the editor’s built-in diff.
Skip if: Pure greenfield coding with no patch/review step, or teams that only use host-native PR diffs with no MCP automation.
What do I get? / Deliverables
After you add diff-mcp, review workflows can generate, parse, and apply unified diffs through MCP with tighter fidelity before you merge or deploy.
- Structured diff and patch MCP tools for agent review loops
- Higher-confidence patch application before ship
Recommended MCP Servers
Journey fit
Diff and patch correctness matters most when you are reviewing and applying changes before merge or release, not during initial ideation. Review is the shelf for tools that compare versions and apply patches during agent-assisted code review and fix verification.
How it compares
MCP diff and patch engine, not a full code-review platform or git hosting integration.
Common Questions / FAQ
Who is diff-mcp for?
Indie developers and small teams using MCP agents who want dependable unified diff and patch operations during review and fix cycles.
When should I use diff-mcp?
Use it in the Ship phase when agents propose multi-hunk changes and you need parse, apply, or character-precise diff tools before merging.
How do I add diff-mcp to my agent?
Install @mukundakatta/diff-mcp via npm, register the stdio server in your MCP config, and expose its diff/patch tools to your review or ship skills.