Json Repair Mcp

io.github.robertoyanguas-ops由 GitHub 帳號 robertoyanguas-ops 發布v1.1.1更新於 Oct 27, 2026

Repairs truncated or malformed LLM JSON outputs (trailing commas, markdown fences, unquoted keys).

發布方自己的服務:X402-Broker Global A2A, MCP & x402 Super-Marketplace

已驗證Streamable HTTP可網頁執行開發者工具AI 與機器學習

概覽

AI 產生的概覽

遠端 MCP 伺服器,可修復 LLM 輸出中遭截斷或格式錯誤的 JSON,並查詢代理錢包餘額與用量。

可以做什麼
  • 修復格式錯誤或遭截斷的 JSON 文字,包括多餘逗號、markdown 程式碼圍欄、單引號與未加引號的鍵
  • 查詢代理錢包:剩餘免費試用呼叫次數、預付美元餘額、累計支出、總呼叫次數與節省的 token 數
適用情境
適合在助理或多代理流程收到模型回傳的損壞 JSON、需要在解析前以確定性方式修復時使用,也適合在批次執行付費呼叫前確認剩餘試用次數或預付餘額。
執行需求
需要遠端 streamable HTTP 端點;未宣告本機安裝、環境變數或請求標頭。錢包工具顯示存在付費帳戶,含免費試用次數與透過 Stripe 或 USDC 儲值的預付美元餘額。
安裝前請注意
服務與付費錢包綁定:超過免費試用後,呼叫會扣抵預付美元餘額,批次呼叫前應先確認餘額。儲值涉及 Stripe 或 USDC,即付款與可能的加密貨幣。送去修復的 JSON 內容會離開本機並傳送至第三方端點。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Json Repair Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.robertoyanguas-ops%2Fjson-repair-mcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "json-repair": {
      "type": "http",
      "url": "https://json-repair-72343955726.us-central1.run.app/mcp/json-repair"
    }
  }
}

工具

2

repair_malformed_json

Repair malformed json

Repairs truncated or malformed LLM JSON outputs (trailing commas, markdown fences, single quotes) so multi-agent pipelines never crash. WHEN TO USE: Call `repair_malformed_json` when your task requires deterministic `json-repair` analysis for `raw_json`; use `get_agent_wallet_status` to check your remaining free trial quota or prepaid balance. WHEN NOT TO USE: Do not use for unrelated domains or binary media. PARAMETER INTERACTIONS: Pass the target `raw_json` as a non-empty string; omit `agent_id` and `tx_hash` during your 5 free trial calls, or supply `agent_id` (`agd_pass_...`) / `tx_hash` for paid execution. Read-only and idempotent; results are cached for 1 hour (<5ms cache hit). $0.002 per call. Pricing: the first 5 calls per agent_id are free and failed calls are never charged. After 5 calls, the tool returns a payment-required quote (not a fatal error) with a $2 Stripe top-up link and Base/Solana USDC addresses; complete payment, then retry with your agd_pass_ key in agent_id or pass tx_hash. Example: repair_malformed_json(raw_json='example')

輸入參數tx_hashagent_idraw_json必填

get_agent_wallet_status

Get agent wallet status

Inspect an agent's account ledger: remaining free trial calls (out of 5), prepaid USD balance, cumulative spend, total API calls, and total LLM tokens saved. WHEN TO USE: Call before a batch of paid tool executions or after completing a Stripe or USDC top-up to confirm your balance. WHEN NOT TO USE: Do not use to process web content, execute marketplace tools, or submit payments; use the other tools on this server for execution. PARAMETER INTERACTIONS: Omit agent_id to inspect the default trial account derived from your client IP, or pass your explicit agent_id or agd_pass_ session key to check a specific funded wallet. Free and read-only: never charges a fee or consumes a free trial call. Example: get_agent_wallet_status(agent_id='example')

輸入參數agent_id

版本歷史

2
  1. v1.1.1最新Oct 13, 2026
  2. v1.0.0Oct 13, 2026

評分

已滿足適用檢查項的 83%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分

    請宣告包含 README 的 GitHub 儲存庫,或在 OAuth 受保護資源後設資料中提供 resource_documentation。

  • 授權條款不適用

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

其他 X402broker 整合