Skip to content
LangChain

AgentDiet Deterministic A2A Broken-JSON Repair & Schema Validator for LangChain

dev.agentdiet/json-repair

Repairs truncated or malformed LLM JSON outputs (trailing commas, markdown fences, single quotes).

client:LangChain transport:streamable-http tools:2

Install AgentDiet Deterministic A2A Broken-JSON Repair & Schema Validator in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "json-repair": {
            "transport": "streamable_http",
            "url": "https://json-repair.agentdiet.dev/mcp",
        }
})

tools = await client.get_tools()

get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs

What LangChain can do once it is connected

AgentDiet Deterministic A2A Broken-JSON Repair & Schema Validator in other clients