jsonaut

Repair malformed JSON from LLM/agent output; optional JSON Schema coercion. Free + x402 paid.

我该使用它吗

质量与安全性

A
描述质量
100%
模式完整度
100%
命名质量
85%
投毒风险
100%
权限匹配度
100%
协议合规性
100%

基于对工具定义和协议合规性的自动分析。

上下文开销

~528token 数(工具定义)
~845 B典型响应大小
对注意力的影响极小(占 128k 上下文窗口的 0.41%)

这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。

安装

一键安装

将以下内容添加到你的 `claude_desktop_config.json` 文件中:

{
  "mcpServers": {
    "jsonaut": {
      "url": "https://jsonaut.jsonaut-shaurya.workers.dev/mcp"
    }
  }
}

远程端点

https://jsonaut.jsonaut-shaurya.workers.dev/mcpstreamable-http

它能做什么

工具清单

工具(4)

🟢 只读🟡 写入🔴 删除⚪ 未知
⚪repair_json(input, schema, allow_llm_fallback)

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",
  "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"
    }
  },
  "required": [
    "input"
  ]
}
🟢validate_json(input, schema)

Validate a JSON string against a JSON Schema. Free. Returns validity and a list of violations.

输入模式

{
  "type": "object",
  "properties": {
    "input": {
      "type": "string",
      "description": "The JSON text to validate"
    },
    "schema": {
      "type": "object",
      "description": "The JSON Schema to validate against"
    }
  },
  "required": [
    "input",
    "schema"
  ]
}
🟢extract_json(input, schema, allow_llm_fallback)

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",
  "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"
    }
  },
  "required": [
    "input"
  ]
}
🟡infer_schema(input, as_samples)

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",
  "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"
    }
  },
  "required": [
    "input"
  ]
}

社区

评价此服务器

证据

最近观测

已验证未记录版本4 个工具
已验证未记录版本4 个工具
已验证未记录版本4 个工具