Diff Patch Tools

io.github.lazymac2xPublished by GitHub account lazymac2xv1.0.0Updated Oct 24, 2026

Cloudflare Workers MCP server: diff-patch-tools

VerifiedStreamable HTTPWeb executableFiles & StorageDeveloper Tools

Overview

AI-generated overview

A remote MCP server that lets an assistant compute text and JSON diffs, apply or validate patches, and perform three-way merges.

What you can do
Compare two text strings and produce a unified diff, or compare two JSON values structurally to see added, removed and replaced fields. Apply a unified diff patch to original text and return the patched result, or check whether a patch applies cleanly without applying it. Perform a three-way merge of base, ours and theirs, marking conflicts with standard diff3 markers. Parse a unified diff and return line-level statistics such as additions, deletions, hunks and files changed.
When to use it
Useful when an assistant needs to compare file versions before and after edits, review or validate a patch before applying it, merge divergent versions of a document, or summarize the size of a change set.
Requirements
A remote streamable HTTP endpoint; no local runtime, package, account, API key or header is declared.
Before you install
Text and JSON content sent for diffing, patching or merging is transmitted to a third-party remote service, so avoid sending sensitive material. The tools return results but do not modify local files themselves.

Installation

In SourceWeft

  1. Open Diff Patch Tools in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.lazymac2x%2Fdiff-patch-tools/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "diff-patch-tools": {
      "type": "http",
      "url": "https://api.lazy-mac.com/diff-patch-tools/mcp"
    }
  }
}

README

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

Source: README.md at commit 9199f50

Tools

6

text_diff

Generate a unified diff between two text strings. Ideal for comparing file versions before and after edits.

Parameterscontextmodifiedrequiredoriginalrequiredmodified_fileoriginal_file

json_diff

Compute a structural diff between two JSON values, showing added, removed, and replaced fields.

Parametersmodifiedrequiredoriginalrequired

apply_patch

Apply a unified diff patch to an original text and return the patched result.

Parameterspatchrequiredoriginalrequired

three_way_merge

Perform a three-way merge of base, ours, and theirs. Conflicts are marked with standard diff3 conflict markers.

Parametersbaserequiredoursrequiredtheirsrequiredours_labeltheirs_label

diff_stats

Parse a unified diff string and return line-level statistics: additions, deletions, hunks, files changed.

Parametersdiffrequired

patch_validate

Check whether a unified diff patch can be applied cleanly to an original text without actually applying it.

Parameterspatchrequiredoriginalrequired

Version history

1
  1. v1.0.0LatestSep 16, 2026

Score

90% 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 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

    Declare a license in the repository or the registry entry.