What output does the `compare_json` tool return?
It returns an array of `JSONValueDifference` objects, each containing `pathSegments`, `pathString`, `pathBelongsTo`, and `diffType`. The same data is also echoed as JSON text in `content[0].text`.
@unitstack
基本情報
A lightweight, dependency-free MCP for deep comparison of JSON values. Detects additions, deletions, type changes, and value changes between two JSON structures with fine-grained control over comparison behavior.
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"compare-json": {
"command": "npx",
"args": [
"@compare-json/cli@latest",
"--mcp"
]
}
}
}Compare two JSON values and return differences. Supports various comparison options including comparisons case-insensitive comparisons, and numeric string handling.
Compare JSON is an MCP server that exposes a JSON comparison engine as a tool for AI assistants, enabling them to compare two JSON values and retrieve detailed, structured differences.
Start the server by running compare-json --mcp from a global install or npx @compare-json/cli --mcp. It communicates over stdio. Add the provided configuration to your MCP client (e.g., mcp.json) to register the compare-json server.
compare_json tool with multiple input options (raw, string, file path).byIndex, lcs, or unordered.JSONValueDifference objects with path and diff type.It returns an array of `JSONValueDifference` objects, each containing `pathSegments`, `pathString`, `pathBelongsTo`, and `diffType`. The same data is also echoed as JSON text in `content[0].text`.
For each side (base and contrast) you can provide the JSON as an already‑parsed value (`baseJSON`, `contrastJSON`), as a stringified value (`baseJSONString`, `contrastJSONString`), or as a file path (`baseJSONFilePath`, `contrastJSONFilePath`). At least one method per side is required; if multiple are given, file path takes precedence, then string, then raw value.
Three strategies: `byIndex` (default), `lcs` (longest common subsequence), and `unordered`. They are set via the `arrayCompareMethod` option.
Yes. The `keyCaseInsensitive` and `valueCaseInsensitive` options (both default `false`) make key and value comparisons case‑insensitive.
Run `compare-json --mcp` or `npx @compare-json/cli --mcp`. In your MCP client config, add a server entry with command `npx` and args `["@compare-json/cli@latest", "--mcp"]`. The server communicates over stdio with no additional transport or auth setup required.


Turn Perfex CRM into an AI-ready workspace. This MCP server exposes your full REST API to Claude, ChatGPT and any AI agent, so leads, invoices and tasks are one prompt away.
Query your team's drift, vulnerability, and migration data from any AI assistant. Vibgrate MCP connects Cursor, Claude, ChatGPT, Windsurf, or VS Code to Vibgrate Cloud: 51 tools for DriftScores, CVEs and EOL runtimes, up

The tools your AI needs to make your games. Turn prompts into production-ready game assets — animated characters with their weapons attached, seamless textures, terrain, VFX, HUDs — and playable game kits Unity, Godot, U

Catch intent conflicts before code conflicts. The open-source coordination protocol for coding agents, built above Git.
コメント