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 個工具