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。

  • 授權條款不適用

    託管服務按其提供方的條款使用,因此這裡不要求授權條款。此檢查項不計入百分比。