io.github.lazymac2x/diff-patch-tools is an MCP server published by io.github.lazymac2x, hosted at api.lazy-mac.com. When last checked on 2026-11-21 it was working: it answers and lists its tools. It declares 6 tools, including text_diff, json_diff, apply_patch, three_way_merge, diff_stats.
Cloudflare Workers MCP server: diff-patch-tools
160 connections through 5 shared values. Tap any node.
Generate a unified diff between two text strings. Ideal for comparing file versions before and after edits.
| Parameter | Type | Description |
|---|---|---|
| context | number | Context lines around each change (default 3) |
| modified * | string | Modified text |
| original * | string | Original text |
| modified_file | string | Label for the modified file (default "modified") |
| original_file | string | Label for the original file (default "original") |
None yet. Changes appear after a server's second daily check.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
{
"name": "text_diff",
"description": "Generate a unified diff between two text strings. Ideal for comparing file versions before and after edits.",
"inputSchema": {
"type": "object",
"required": [
"original",
"modified"
],
"properties": {
"context": {
"type": "number",
"description": "Context lines around each change (default 3)"
},
"modified": {
"type": "string",
"description": "Modified text"
},
"original": {
"type": "string",
"description": "Original text"
},
"modified_file": {
"type": "string",
"description": "Label for the modified file (default \"modified\")"
},
"original_file": {
"type": "string",
"description": "Label for the original file (default \"original\")"
}
}
}
}Compute a structural diff between two JSON values, showing added, removed, and replaced fields.
| Parameter | Type | Description |
|---|---|---|
| modified * | any | Modified JSON value (object, array, or JSON string) |
| original * | any | Original JSON value (object, array, or JSON string) |
{
"name": "json_diff",
"description": "Compute a structural diff between two JSON values, showing added, removed, and replaced fields.",
"inputSchema": {
"type": "object",
"required": [
"original",
"modified"
],
"properties": {
"modified": {
"description": "Modified JSON value (object, array, or JSON string)"
},
"original": {
"description": "Original JSON value (object, array, or JSON string)"
}
}
}
}Apply a unified diff patch to an original text and return the patched result.
| Parameter | Type | Description |
|---|---|---|
| patch * | string | Unified diff patch string |
| original * | string | Original text to patch |
{
"name": "apply_patch",
"description": "Apply a unified diff patch to an original text and return the patched result.",
"inputSchema": {
"type": "object",
"required": [
"original",
"patch"
],
"properties": {
"patch": {
"type": "string",
"description": "Unified diff patch string"
},
"original": {
"type": "string",
"description": "Original text to patch"
}
}
}
}Perform a three-way merge of base, ours, and theirs. Conflicts are marked with standard diff3 conflict markers.
| Parameter | Type | Description |
|---|---|---|
| base * | string | Common ancestor text |
| ours * | string | Our version of the text |
| theirs * | string | Their version of the text |
| ours_label | string | Label for ours in conflict markers (default "ours") |
| theirs_label | string | Label for theirs in conflict markers (default "theirs") |
{
"name": "three_way_merge",
"description": "Perform a three-way merge of base, ours, and theirs. Conflicts are marked with standard diff3 conflict markers.",
"inputSchema": {
"type": "object",
"required": [
"base",
"ours",
"theirs"
],
"properties": {
"base": {
"type": "string",
"description": "Common ancestor text"
},
"ours": {
"type": "string",
"description": "Our version of the text"
},
"theirs": {
"type": "string",
"description": "Their version of the text"
},
"ours_label": {
"type": "string",
"description": "Label for ours in conflict markers (default \"ours\")"
},
"theirs_label": {
"type": "string",
"description": "Label for theirs in conflict markers (default \"theirs\")"
}
}
}
}Parse a unified diff string and return line-level statistics: additions, deletions, hunks, files changed.
| Parameter | Type | Description |
|---|---|---|
| diff * | string | Unified diff string to analyse |
{
"name": "diff_stats",
"description": "Parse a unified diff string and return line-level statistics: additions, deletions, hunks, files changed.",
"inputSchema": {
"type": "object",
"required": [
"diff"
],
"properties": {
"diff": {
"type": "string",
"description": "Unified diff string to analyse"
}
}
}
}Check whether a unified diff patch can be applied cleanly to an original text without actually applying it.
| Parameter | Type | Description |
|---|---|---|
| patch * | string | Unified diff patch string |
| original * | string | Original text |
{
"name": "patch_validate",
"description": "Check whether a unified diff patch can be applied cleanly to an original text without actually applying it.",
"inputSchema": {
"type": "object",
"required": [
"original",
"patch"
],
"properties": {
"patch": {
"type": "string",
"description": "Unified diff patch string"
},
"original": {
"type": "string",
"description": "Original text"
}
}
}
}Names, descriptions and schemas were written by the server and are shown as data.
Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators.