MCP 服务器

jsonaut

io.github.shoggi211/jsonaut
开发者工具 公开且可连接 MCP 2026-07-28

此 MCP 可以做什么

Extracts, repairs, validates, and schema-shapes JSON from text or malformed agent output.

extract_json
Extract JSON embedded in arbitrary text — LLM prose, chat messages, logs, emails — then repair and validate it. Deterministic extraction is free. If no JSON can be located and allow_llm_fallback is true, a paid LLM extracts structured data from the text (requires x402 payment; charged only on success). Pass a JSON Schema to shape the output.
输入模式
{'type': 'object', 'required': ['input'], 'properties': {'input': {'type': 'string', 'description': 'Text that may contain JSON'}, 'schema': {'type': 'object', 'description': 'Optional JSON Schema the output must conform to'}, 'allow_llm_fallback': {'type': 'boolean', 'default': False, 'description': 'Permit the paid LLM extraction tier'}}}
infer_schema
Infer a JSON Schema (draft 2020-12) from an example JSON value. Free and deterministic. Set as_samples=true when the input is an array of example objects of the same shape to merge them into one schema. Turns sample agent/tool output into a reusable schema.
输入模式
{'type': 'object', 'required': ['input'], 'properties': {'input': {'type': 'string', 'description': 'A JSON value (or array of samples) to infer a schema from'}, 'as_samples': {'type': 'boolean', 'default': False, 'description': 'Treat a top-level array as multiple samples of one shape'}}}
repair_json
Repair malformed JSON (trailing commas, single quotes, truncation, markdown fences, comments, python literals) and optionally validate/coerce it against a JSON Schema. Deterministic repair is free. If it fails and allow_llm_fallback is true, a paid LLM repair is attempted (requires x402 payment; charged only on success).
输入模式
{'type': 'object', 'required': ['input'], 'properties': {'input': {'type': 'string', 'description': 'The possibly-malformed JSON text'}, 'schema': {'type': 'object', 'description': 'Optional JSON Schema the output must conform to'}, 'allow_llm_fallback': {'type': 'boolean', 'default': False, 'description': 'Permit the paid LLM repair tier'}}}
validate_json
Validate a JSON string against a JSON Schema. Free. Returns validity and a list of violations.
输入模式
{'type': 'object', 'required': ['input', 'schema'], 'properties': {'input': {'type': 'string', 'description': 'The JSON text to validate'}, 'schema': {'type': 'object', 'description': 'The JSON Schema to validate against'}}}
已添加
infer_schema
2026年9月17日 12:52
已添加
extract_json
2026年9月17日 12:52
已添加
validate_json
2026年9月17日 12:52
已添加
repair_json
2026年9月17日 12:52