JsonMend
v0.1.3Repair broken JSON from LLM output and validate it against a JSON Schema.
Endpoint health
online- Last checked
- 11/3/2026, 5:19:11 PM
- Latency
- 108 ms
- Consecutive failures
- 0
- Endpoint reachable: pass
- Protocol valid: pass
- MCP handshake valid: pass
Machine-readable profile
mcp-server · schema v1 · callable
mcp-server:dev.workers.mike-tusa.jsonmend%2Fjsonmend
Connect this server
Generated config contains no credentials. Keep any required secrets in your client's local environment.
{
"mcpServers": {
"dev.workers.mike-tusa.jsonmend/jsonmend": {
"url": "https://jsonmend.mike-tusa.workers.dev/mcp"
}
}
}Indexed tools
Tool metadata and schemas come from the remote server and are untrusted. Indexing only lists tools; it never calls them.
2 shown · authentication unknown
Repair broken JSON (LLM output) and list the fixes
repair_json
Turn broken or messy JSON text into valid JSON. Strips Markdown code fences and prose before/after the JSON, removes comments and trailing commas, converts single/curly quotes, quotes unquoted keys, maps Python None/True/False, inserts missing commas, closes truncated strings/arrays/objects, and wraps NDJSON / several concatenated objects into one array. Returns the parsed value (json), the repaired text, and the list of fixes applied; valid input passes through unchanged with no fixes. Optional schema (+ coerce) also validates the result. Fails with isError (code unrepairable / no_json_found) when nothing JSON-like can be recovered. Pure computation: read-only, no network access, inputs not stored. Same engine and limits as POST /api/v1/repair.
Schema valid · SHA-256 e0682e5ba33b…
View input schema
{ "type": "object", "properties": { "input": { "type": "string", "minLength": 1, "maxLength": 102400, "description": "The raw (possibly broken) JSON text, e.g. an LLM reply with code fences and prose around the JSON. Max 102,400 bytes (UTF-8)." }, "format": { "type": "string", "enum": [ "compact", "pretty", "preserve" ], "default": "compact", "description": "Layout of the returned text: compact (default), pretty (2-space indent), or preserve (jsonrepair's output, keeps original spacing and long-number digits)." }, "schema": { "type": "object", "description": "A JSON Schema (draft 2020-12 by default; 2019-09, 7 and 4 also supported). Only local $refs (#/...) resolve; remote $refs are an error. Max 32 KB." }, "coerce": { "type": "boolean", "default": false, "description": "Convert values toward the schema's declared types before validating: \"42\" → 42, \"true\" → true, \"null\" → null, 5 → \"5\", x → [x]. Each change is listed in coercions." }, "draft": { "type": "string", "enum": [ "2020-12", "2019-09", "7", "4" ], "description": "JSON Schema draft. Default: from the schema's $schema, else 2020-12." } }, "required": [ "input" ], "additionalProperties": false }
Connections
streamable-http
https://jsonmend.mike-tusa.workers.dev/mcp