jsondiff-mcp

v1.0.1
io.github.mrfentmen/jsondiff-mcp Checked 22 hours ago Published 1 month ago

Compare two JSON documents and apply RFC 6902 JSON Patch offline, with canonical output

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

diff_json

Structural diff between two JSON documents: added, removed and changed paths.

ParameterTypeDescription
left *stringFirst JSON document as text
right *stringSecond JSON document as text

apply_json_patch

Apply an RFC 6902 JSON Patch (add, remove, replace, move, copy, test) to a document.

ParameterTypeDescription
patch *stringJSON array of patch operations
target *stringJSON document as text

canonical_json

Re-serialise JSON deterministically, sorting keys so equal values compare byte-for-byte.

ParameterTypeDescription
text *stringJSON text
indentintegerIndent, 0 for compact, default 2
sortKeysbooleanSort object keys, default true