text_diff
Generate a unified diff between two text strings. Ideal for comparing file versions before and after edits.
contextmodified必填original必填modified_fileoriginal_file
io.github.lazymac2x由 GitHub 帳號 lazymac2x 發布v1.0.0更新於 Oct 24, 2026
Cloudflare Workers MCP server: diff-patch-tools
一個遠端 MCP 伺服器,讓助理計算文字與 JSON 差異、套用或驗證補丁,並執行三方合併。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.github.lazymac2x%2Fdiff-patch-tools/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"diff-patch-tools": {
"type": "http",
"url": "https://api.lazy-mac.com/diff-patch-tools/mcp"
}
}
}Cloudflare Workers MCP server: diff-patch-tools. REST + MCP (JSON-RPC 2.0). Live: api.lazy-mac.com/diff-patch-tools
來源:README.md,提交 9199f50
Generate a unified diff between two text strings. Ideal for comparing file versions before and after edits.
contextmodified必填original必填modified_fileoriginal_fileCompute a structural diff between two JSON values, showing added, removed, and replaced fields.
modified必填original必填Apply a unified diff patch to an original text and return the patched result.
patch必填original必填Perform a three-way merge of base, ours, and theirs. Conflicts are marked with standard diff3 conflict markers.
base必填ours必填theirs必填ours_labeltheirs_labelParse a unified diff string and return line-level statistics: additions, deletions, hunks, files changed.
diff必填Check whether a unified diff patch can be applied cleanly to an original text without actually applying it.
patch必填original必填已滿足適用檢查項的 90%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
請在儲存庫或註冊中心條目中宣告授權條款。