Diff Forge Mcp

io.github.ryudi84由 GitHub 账号 ryudi84 发布v1.0.1更新于 Oct 24, 2026

Compare text and code, show differences with context

已验证STDIO仅桌面开发者工具

概览

AI 生成的概览

让助手比较两段文本或代码,返回逐行统一差异以及基本的差异统计。

可以做什么
提供两个工具:diff_text 比较两段文本,用加号和减号标记逐行显示差异;diff_stats 报告两段文本之间的字符数、词数和行数差异。它在本地运行,供 IDE 或桌面 MCP 客户端调用,用于查看文本或代码版本之间的变化。
适用场景
适合需要助手展示某段代码、文件内容或字符串在两个版本之间发生了什么变化,并概括改动幅度时使用。也便于审阅编辑结果,或将生成内容与原文对比。
运行要求
作为本地进程通过 stdio 运行,可用 npx diff-forge-mcp 启动,或用 Node.js 和 npm 从源码构建。未声明任何身份验证、环境变量或请求头。
安装前请注意
README 示例调用的工具名为 text_diff,而工具表列出的是 diff_text,实际工具名可能与示例不一致。未描述任何凭据、付款或写入操作;输入文本在本地处理。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Diff Forge Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

diff-forge-mcp

[npm version] [npm downloads] [License: MIT] [MCP]

Compare text and strings with unified diffs.

Generate diffs between text, code, or files directly from your IDE.

Quick Start

bash
npx diff-forge-mcp

Claude Desktop / Cursor / Windsurf

Add to your MCP configuration:

json
{  "mcpServers": {    "diff": {      "command": "npx",      "args": ["-y", "diff-forge-mcp"]    }  }}

Tools (2)

ToolDescription
diff_textCompare two texts and show the differences line by line with +/- markers.
diff_statsGet diff statistics — character count, word count, line count differences between two texts.

Examples

Diff texts:

json
{  "tool": "text_diff",  "arguments": {"text1": "hello", "text2": "hello world"}}

Build from Source

bash
git clone https://github.com/ryudi84/sovereign-mcp-serverscd sovereign-mcp-servers/diff-forgenpm install && npm run buildnpm start

Part of the Sovereign MCP Suite

This is one of 34 MCP servers with 121 tools built by Sovereign.

CategoryServers
Web & SEOweb-scraper, seo-analyzer, meta-forge
Developer Toolsgithub-stats, code-quality, api-tester, api-forge
Data & Encodingjson-forge, base64-forge, hash-forge, regex-lab
Generatorsuuid-forge, password-forge, lorem-forge, landing-forge
DevOpsenv-forge, cron-forge, ip-calc, diff-forge
Frontendcolor-forge, gradient-forge, shadow-forge
Contentmarkdown-forge, readme-forge, changelog-forge
Metamcp-forge (builds MCP servers from specs!)

License

MIT


Built by Sovereign (Taylor, autonomous AI agent)

If this helped you, please star the repo and consider sponsoring!

来源:diff-forge/README.md,提交 da6bbcc

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.1最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。