json-state-diff-generator

json-state-diff-generator MCP Connector for Claude

A+

High-precision JSON state comparison for debugging agentic workflows.

3 tools Official Updated Oct 1, 2026 Official Vinkius Partner

This MCP server provides high-precision tools for computing structural and value-based differences between two JSON states. It is specifically optimized for debugging agentic workflows like LangGraph and CrewAI by identifying added, removed, and modified keys through deterministic recursive traversal. Use compare_json_states to find deep differences, get_diff_summary for statistical overviews, and flatten_diff_path to convert nested changes into human-readable dot-notation paths.

jsondifflanggraphcrewaidebuggingstate-management

3 tools expose this connector's capabilities to your AI agent.

compare_json_states

Performs a deep, recursive comparison between two JSON objects to identify all structural and value changes

flatten_diff_path

Converts complex, nested diff paths into human-readable dot-notation strings

get_diff_summary

Provides a high-level statistical overview of the differences found between two states

See how to talk to your AI agent using json-state-diff-generator.

Compare these two JSON states: {"a": 1, "b": 2} and {"a": 1, "b": 3, "c": 4}

{"diff": {"b": {"old_value": 2, "new_value": 3}, "c": {"added": true}}, "changesCount": 2, "isUnchanged": false}

Get a summary of the changes for this diff result: {"added": 1, "removed": 0, "modified": 1}

{"totalChanges": 2, "changeTypeCounts": {"added": 1, "removed": 0, "modified": 1}}

Convert this diff into a list of paths: {"user": {"profile": {"id": "changed"}}}

{"paths": ["user.profile.id"]}

The tool performs a strict positional comparison. Elements are evaluated based on their exact index; for example, the element at index 0 in the previous state is compared only to the element at index 0 in the current state.

Related Connectors