dev.workers.mike-tusa.jsonmend/jsonmend·Utilities

JsonMend

Repair broken JSON from LLM output and validate it against a JSON Schema.

Stars
—
Version
0.1.3
License
—
Review
Passed
Registry update
Oct 15, 2026

Connect

remote
Terminal
$claude mcp add --transport http jsonmend https://jsonmend.mike-tusa.workers.dev/mcp \  --header "Authorization: <authorization>"

Headers

  • Authorizationsecret

    Optional. 'Bearer <key>' (free jm_ key) for higher limits. Works without a key.

Security review

Review passed

Reviewed just now.

tools
2 tools scanned
metadata
scanned

No findings.

Tools

2
  • 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.

  • validate_json

    Check JSON against a JSON Schema and get every error with its JSON Pointer path. Send the JSON either as text ("input"; broken text is repaired first, and the fixes are listed) or as an already-parsed value ("data"). Optional coerce converts "42" → 42, "true" → true, etc. toward the schema's types before validating and lists each change. A schema mismatch is a normal result (valid: false), not an error. Drafts 2020-12 (default), 2019-09, 7, 4; only local $refs. Pure computation: read-only, no network access, inputs not stored. Same engine and limits as POST /api/v1/validate.

More in Utilities

Listing from the official MCP Registry.