{"name":"json-repair-mcp-server","version":"0.1.0","description":"Pay-per-call MCP server for deterministic JSON repair + JSON Schema validation, settled in USDC on Base via x402.","mcpEndpoint":"http://x402.agentfund.net/mcp","transport":"streamable-http (stateless JSON)","payment":{"protocol":"x402","asset":"USDC","network":"eip155:8453","payTo":"0xe22F691ed420143BfdAB022A14e7d6873b33EEf9","mode":"production"},"tools":[{"name":"structured_json_repair","title":"Structured JSON Repair","price":"$0.01","description":"Repair messy or invalid JSON (the kind LLMs and tools often emit) into clean, valid JSON, and optionally validate/coerce it against a JSON Schema. Pure deterministic compute — no network or model calls.\n\nWhat it fixes: trailing commas, single-quoted strings, unquoted keys, Python literals (None/True/False), NaN/Infinity, Markdown code-fence wrappers, and truncated/garbled tails.\n\nWhen to use: you received text that should be JSON but JSON.parse fails, or you have JSON that must conform to a specific schema and want types coerced (e.g. \"36\" -> 36, \"true\" -> true).\n\nWhen NOT to use: the input is already known-valid JSON and no schema check is needed.\n\nArgs:\n  - input (string, required): the raw/malformed JSON text.\n  - schema (object, optional): a JSON Schema (draft 2020-12) to validate and coerce against.\n  - coerce (boolean, optional, default true): coerce primitive types to satisfy the schema before validating.\n\nReturns structuredContent:\n  {\n    \"ok\": boolean,        // true if valid JSON (and schema-valid when a schema was given)\n    \"data\": any,          // the repaired/validated JSON value; null if unfixable\n    \"changed\": boolean,   // true if any repair or coercion modified the input\n    \"errors\": string[],   // actionable messages when ok is false\n    \"repairs\": string[]   // description of each fix applied\n  }"}],"discovery":"http://x402.agentfund.net/.well-known/x402"}