
Diff Mcp
io.github.MukundaKattaPublished by GitHub account MukundaKattav0.1.0Updated Oct 24, 2026
Character-precise unified diff + patch application + patch parsing.
Overview
Local MCP server that generates character-precise unified diffs, applies patches, and parses patch files for code-review and code-edit agents.
- What you can do
- Generate unified diffs between old and new text, with addition, deletion and unchanged line counts and patch text output. Apply a patch to original text and get a success flag, resulting text and a reason when context drifts. Parse a patch into a file list with per-file hunk counts and addition/deletion totals.
- When to use it
- Useful when an assistant edits or reviews code and its hand-written diffs fail to apply because of off-by-one line numbers, missing context lines or wrong hunk headers. It aims to produce patches that the standard patch utility and git apply accept on the first try.
- Requirements
- Runs as a local stdio process, installed from the npm package @mukundakatta/diff-mcp, typically launched with npx. Requires a Node.js runtime on the user's machine. No authentication, environment variables or headers are declared.
Installation
In SourceWeft
- Open Diff Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
@mukundakatta/diff-mcp
MCP server for character-precise unified diffs + patch application + patch parsing. For code-review and code-edit agents.
Why this exists
LLMs hand-roll diffs that look right but won't apply: off-by-one line numbers, missing context lines, wrong hunk headers. Routing through this server produces patches that the standard patch utility (and git apply) accept on the first try.
Tools
Install — Claude Desktop
Same shape for Cursor / Cline / Windsurf / Zed.
License
MIT OR Apache-2.0.
Source: packages/diff-mcp/README.md at commit 6fad5bb
Tools
0Version history
1- v0.1.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts