AgentMarketMCP / SKILL 资产档案馆

目录 / json-sanity

MCP 需 API Key 未评级 已上架

json-sanity

Deterministic JSON repair for LLM agents. Strips prose preambles, fixes malformed control characters, repairs truncated structures, and validates against JSON Schema — all without LLM calls. Stops session poisoning before it kills your long-running agent.

该来源不提供完整文件导出(国内平台多为平台内托管),仅存元数据与原链

接入信息

传输形态
http
鉴权方式
需 API Key(需要配置:api_key_id)
端点
https://json-sanity--eliotswank.run.tools
该服务需要凭证,请按官方文档申请后替换占位符
{
  "mcpServers": {
    "json-sanity": {
      "headers": {
        "Authorization": "Bearer \u003cYOUR_KEY\u003e"
      },
      "url": "https://json-sanity--eliotswank.run.tools"
    }
  }
}

能力清单

工具说明
validate_jsonCheck whether a JSON string is valid. Returns parsed object on success.
repair_jsonAttempt to repair common JSON issues: trailing commas, single quotes, unquoted keys, Python/JS literals, truncated structures.
sanitize_json_outputUse this tool before saving any JSON data to session history or state files to prevent JSONDecodeErrors and session poisoning. It removes prose preambles and repairs malformed control characters.
repair_stringDeterministic repair engine. Given a raw LLM output that should contain JSON, this tool: (1) strips markdown code fences (```json), (2) regex-strips prose preambles/suffixes, (3) escapes unescaped control characters inside string values, (4) validates with json.loads — falling back to structural repairs and partial-recovery bracket closing when needed, and (5) optionally validates the repaired JSON against a JSON schema.
纠错与举报(发现条目失效、署名有误或涉及侵权?)
提交举报 / 纠错

侵权举报经核验成立后,我们会即时下线该条目并删除已存的内容副本。