io. github. lazymac2x/ diff-patch-tools
by lazymac2x · remote · no sign-in to list tools · v1.0.0 · published by GitHub user lazymac2x
Cloudflare Workers MCP server: diff-patch-tools
6 tools: 1 do something that can't be undone, 3 change things and 2 only read.
Scanned Oct 21, 2026
- Deletes or cancels0Claude Code: deny
- Can't be undone1Claude Code: ask: see these tools
- Changes things3Claude Code: ask: see these tools
- Only reads2Claude Code: allow: see these tools
No check matched anything in the tool definitions. No finding is not a safety guarantee. How the checks work.
claude mcp add --transport http diff-patch-tools https://api.lazy-mac.com/diff-patch-tools/mcpTools
Open a tool for its reasons and full description. Descriptions are the publisher's own words, shown as they are.
6 tools
Can't be undone 1Claude Code: ask
three_way_mergePerform a three-way merge of base, ours, and theirs.No findings
Why it is in this group
- The name "three_way_merge" says "merge": a word for a change that another call does not undo.
Description, as the server wrote it Perform a three-way merge of base, ours, and theirs. Conflicts are marked with standard diff3 conflict markers.
Changes things 3Claude Code: ask
apply_patchApply a unified diff patch to an original text and return the patched result.No findings
Why it is in this group
- The name "apply_patch" says "apply": a word for a change.
Description, as the server wrote it Apply a unified diff patch to an original text and return the patched result.
patch_validateCheck whether a unified diff patch can be applied cleanly to an original text without actually applying it.No findings
Why it is in this group
- The name "patch_validate" says "patch": a word for a change.
Description, as the server wrote it Check whether a unified diff patch can be applied cleanly to an original text without actually applying it.
text_diffGenerate a unified diff between two text strings.No findings
Why it is in this group
- The name "text_diff" says "diff": a word for reading.
- The description's first verb is "generate": a word for a change.
Description, as the server wrote it Generate a unified diff between two text strings. Ideal for comparing file versions before and after edits.
Only reads 2Claude Code: allow
diff_statsParse a unified diff string and return line-level statistics: additions, deletions, hunks, files changed.No findings
Why it is in this group
- The name "diff_stats" says "diff": a word for reading.
Description, as the server wrote it Parse a unified diff string and return line-level statistics: additions, deletions, hunks, files changed.
json_diffCompute a structural diff between two JSON values, showing added, removed, and replaced fields.No findings
Why it is in this group
- The name "json_diff" says "diff": a word for reading.
Description, as the server wrote it Compute a structural diff between two JSON values, showing added, removed, and replaced fields.
This is not a safety rating, and no finding is not a safety guarantee. The groups and findings come from fixed checks of the tool definitions the server returned on the date shown, not from its code or what it does when called. How the checks work.
Install
Pinned to version 1.0.0. Values in angle brackets are yours to fill in.
claude mcp add --transport http diff-patch-tools https://api.lazy-mac.com/diff-patch-tools/mcpRun in a terminal.
Claude Code permissions
Allow the reads, ask before a change, deny the deletes. Paste into .claude/settings.json.
{
"permissions": {
"allow": [
"mcp__diff-patch-tools__json_diff",
"mcp__diff-patch-tools__diff_stats"
],
"ask": [
"mcp__diff-patch-tools__text_diff",
"mcp__diff-patch-tools__apply_patch",
"mcp__diff-patch-tools__three_way_merge",
"mcp__diff-patch-tools__patch_validate"
],
"deny": []
}
}Tools that only read are allowed, tools that change things ask first, tools that delete or cancel are denied. It assumes the server is installed as diff-patch-tools. Review it before you use it.
