JsonMend

dev.workers.mike-tusa.jsonmend由 jsonmend.mike-tusa.workers.dev 发布官方发布者v0.1.3更新于 Oct 25, 2026

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

已验证Streamable HTTP可网页运行开发者工具

概览

AI 生成的概览

一个远程 MCP 服务器,可修复格式错误的 JSON 并按 JSON Schema 校验,返回带 JSON Pointer 路径的错误。

可以做什么
将损坏或杂乱的 JSON 文本修复为有效 JSON,去除代码围栏、前后文字、注释和尾随逗号,并补全被截断的结构。按 JSON Schema 校验 JSON,返回每个错误及其 JSON Pointer 路径。可接收原始文本(先修复并列出修复项)或已解析的值。可选地按 schema 类型进行强制转换,例如把字符串转为数字或布尔值。
适用场景
适合助手处理由 LLM 或其他不可靠来源生成的 JSON,需要在使用前清理或按 schema 检查时使用。也适合借助精确路径诊断 schema 校验错误。
运行要求
通过 streamable HTTP 访问的远程端点,无需本地运行时或安装包。无需账号,但可选的 Authorization 请求头携带 Bearer 密钥(免费密钥)可提高速率限制。
安装前请注意
可选的 Authorization 请求头包含密钥,只有在你愿意将其提供给远程服务时才发送。提交修复或校验的 JSON 内容会发送到第三方服务器,请避免发送敏感数据。

安装

在 SourceWeft 中

  1. 打开 控制台中的 JsonMend,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/dev.workers.mike-tusa.jsonmend%2Fjsonmend/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "jsonmend": {
      "type": "http",
      "url": "https://jsonmend.mike-tusa.workers.dev/mcp"
    }
  }
}

工具

2

repair_json

Repair broken JSON (LLM output) and list the fixes

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.

输入参数draftinput必填coerceformatschema

validate_json

Validate JSON against a JSON Schema (repairs broken input first)

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.

输入参数datadraftinputcoerceschema必填

版本历史

1
  1. v0.1.3最新Oct 15, 2026

评分

已满足适用检查项的 83%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分

    请声明包含 README 的 GitHub 仓库,或在 OAuth 受保护资源元数据中提供 resource_documentation。

  • 许可证不适用

    托管服务按其提供方的条款使用,因此这里不要求许可证。此检查项不计入百分比。