diff-patch-tools-api
Cloudflare Workers MCP server: diff-patch-tools. REST + MCP (JSON-RPC 2.0). Live: api.lazy-mac.com/diff-patch-tools
by lazymac2x
Cloudflare Workers MCP server: diff-patch-tools
Compare files and generate or apply code patches.
Captured live from the server via tools/list.
Generate a unified diff between two text strings. Ideal for comparing file versions before and after edits.
Original text
Modified text
Context lines around each change (default 3)
Label for the original file (default "original")
Label for the modified file (default "modified")
Compute a structural diff between two JSON values, showing added, removed, and replaced fields.
Original JSON value (object, array, or JSON string)
Modified JSON value (object, array, or JSON string)
Apply a unified diff patch to an original text and return the patched result.
Original text to patch
Unified diff patch string
Perform a three-way merge of base, ours, and theirs. Conflicts are marked with standard diff3 conflict markers.
Common ancestor text
Our version of the text
Their version of the text
Label for ours in conflict markers (default "ours")
Label for theirs in conflict markers (default "theirs")
Parse a unified diff string and return line-level statistics: additions, deletions, hunks, files changed.
Unified diff string to analyse
Check whether a unified diff patch can be applied cleanly to an original text without actually applying it.
Original text
Unified diff patch string
Cloudflare Workers MCP server: diff-patch-tools. REST + MCP (JSON-RPC 2.0). Live: api.lazy-mac.com/diff-patch-tools
claude_desktop_config.json
{
"mcpServers": {
"diff-patch-tools": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://api.lazy-mac.com/diff-patch-tools/mcp"
]
}
}
}Desktop config is stdio-only; this bridges via mcp-remote. Native remote: Settings > Connectors.