Structura JSON Diff
Developer utility for comparing two strict JSON documents.
我该使用它吗
质量与安全性
A
基于对工具定义和协议合规性的自动分析。
上下文开销
~447token 数(工具定义)
~4.1 KB典型响应大小
对注意力的影响极小(占 128k 上下文窗口的 0.35%)
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"json-diff": {
"url": "https://json-diff.zovo.one/mcp"
}
}
}远程端点
https://json-diff.zovo.one/mcpstreamable-http它能做什么
工具清单
工具(1)
🟢 只读🟡 写入🔴 删除⚪ 未知
🟢compare_json(before, after)
Use this when you want to compare two JSON documents, find changed JSON paths, or distinguish type changes from value changes. Ignores object key order, preserves array order, and compares decimal numbers without float rounding. Limits: 20,000 characters per document, depth 64, 4,000 values, 500 differences. Does not compare source code, YAML, JSON5, or duplicate-key documents.
输入模式
{
"type": "object",
"properties": {
"before": {
"type": "string",
"minLength": 1,
"maxLength": 20000,
"description": "Strict JSON before the change, e.g. {\"count\":1,\"enabled\":true}. Do not include passwords or secrets."
},
"after": {
"type": "string",
"minLength": 1,
"maxLength": 20000,
"description": "Strict JSON after the change, e.g. {\"count\":2,\"enabled\":\"true\"}."
}
},
"required": [
"before",
"after"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}输出模式
{
"type": "object",
"properties": {
"equal": {
"type": "boolean"
},
"change_count": {
"type": "number"
},
"counts": {
"type": "object",
"properties": {
"added": {
"type": "number"
},
"removed": {
"type": "number"
},
"type_changed": {
"type": "number"
},
"value_changed": {
"type": "number"
}
},
"required": [
"added",
"removed",
"type_changed",
"value_changed"
],
"additionalProperties": false
},
"preview": {
"type": "array",
"items": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"kind": {
"type": "string"
},
"before_type": {
"type": "string"
},
"after_type": {
"type": "string"
},
"before": {
"type": "string"
},
"after": {
"type": "string"
}
},
"required": [
"path",
"kind"
],
"additionalProperties": false
}
},
"preview_note": {
"type": "string"
},
"downloads": {
"type": "object",
"properties": {
"report": {
"type": "string"
}
},
"required": [
"report"
],
"additionalProperties": false
}
},
"required": [
"equal",
"change_count",
"counts",
"preview",
"preview_note",
"downloads"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}社区
证据
最近观测
已验证未记录版本1 个工具