项目介绍
<p align="center">
<img src="./logo.svg" width="48px" align="center" alt="jsondiffpatch logo" />
<h1 align="center">diff-mcp</h1>
<p align="center">
<a href="https://jsondiffpatch.com">jsondiffpatch.com</a>
<br/>
用于比较文本或数据并获取差异的MCP服务器
</p>
</p>
<!--- 标识 -->
<p align="center">
<a href="https://github.com/benjamine/jsondiffpatch/actions?query=branch%3Amaster"><img src="https://github.com/benjamine/jsondiffpatch/actions/workflows/CI.yml/badge.svg?event=push&branch=master" alt="JsonDiffPatch CI状态" /></a>
<a href="https://twitter.com/beneidel" rel="nofollow"><img src="https://img.shields.io/badge/创建者-@beneidel-BACABA.svg" alt="由Benjamin Eidelman创建"></a>
<a href="https://opensource.org/licenses/MIT" rel="nofollow"><img src="https://img.shields.io/github/license/benjamine/jsondiffpatch" alt="许可证"></a>
<a href="https://www.npmjs.com/package/jsondiffpatch" rel="nofollow"><img src="https://img.shields.io/npm/dw/jsondiffpatch.svg" alt="npm"></a>
<a href="https://github.com/benjamine/jsondiffpatch" rel="nofollow"><img src="https://img.shields.io/github/stars/benjamine/jsondiffpatch" alt="星数"></a>
</p>
由jsondiffpatch提供支持
功能
工具
diff
比较文本或数据并获取可读的差异。
输入:
left (string | unknown[] | Record<string, unknown>):左侧文本或数据
leftFormat (string, 可选):文本、json、json5(默认)、yaml、toml、xml、html
right (string | unknown[] | Record<string, unknown>):右侧文本或数据(与左侧进行比较)
rightFormat (string, 可选):文本、json、json5(默认)、yaml、toml、xml、html
outputFormat (string, 可选):文本(默认)、json、jsonpatch
安装
使用Claude Desktop
在你的claude_desktop_config.json中添加以下内容:
{
"mcpServers": {
"diff": {
"command": "npx",
"args": [
"-y",
"diff-mcp"
]
}
}
}
所有贡献者 ✨
<a href="https://github.com/benjamine/jsondiffpatch/graphs/contributors">
<p align="center">
<img width="720" src="https://contrib.rocks/image?repo=benjamine/jsondiffpatch" alt="项目贡献者的头像表" />
</p>
</a>
许可证
此MCP服务器采用MIT许可证。
这意味着你可以自由地使用、修改和分发该软件,但需遵守MIT许可证中的条款和条件。更多详情,请参见项目仓库中的LICENSE文件。