Mend
Repair broken JSON without changing values, find the exact error, outline or query big payloads.
使うべきか
品質と安全性
ツール定義とプロトコルへの準拠に関する自動分析に基づいています。
コンテキストコスト
これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。
インストール
ワンクリックインストール
これを `claude_desktop_config.json` ファイルに追加してください:
{
"mcpServers": {
"mend": {
"url": "https://mend.clawhard.com/mcp"
}
}
}リモートエンドポイント
https://mend.clawhard.com/mcpstreamable-httpできること
ツール一覧
ツール(3)
🟢mend_repair_json(text, indent, sort_keys)
Use when JSON from an LLM, API, log, config or copy-paste fails to parse (JSON.parse error, "Unexpected token", "Expecting property name"), or the user pastes JSON with trailing commas, single quotes, unquoted keys, comments, Python True/False/None, NaN, missing commas or brackets, a ```json fence, text around it, or output that was cut off. Deterministic repair: returns valid, formatted JSON plus a list of every fix with line and column. Values are never rewritten, so big numbers, number formatting and key order stay exactly as written. If the text is already valid it says so. Up to 100,000 characters.
入力スキーマ
{
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100000,
"description": "The broken JSON, or any text that contains JSON (a chat reply, a log line, a code block)."
},
"indent": {
"type": "integer",
"minimum": 0,
"maximum": 8,
"description": "Spaces per indent level in the output. Default 2. Use 0 for one minified line."
},
"sort_keys": {
"type": "boolean",
"description": "Sort object keys alphabetically. Default false (keep the original order)."
}
},
"required": [
"text"
]
}🟢mend_outline_json(text, max_depth, max_items)
Use when you are about to read a big JSON response, log or export into context, before loading it: returns a compact outline of the structure (keys, types, array lengths, one example per repeated shape) so you can plan a query without spending tokens on the whole document. Repairs the JSON first if needed. Follow with mend_query_json to pull only the values you need. Up to 100,000 characters.
入力スキーマ
{
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100000,
"description": "The JSON (or JSON-ish text)."
},
"max_depth": {
"type": "integer",
"minimum": 1,
"maximum": 10,
"description": "How many levels to expand. Default 4."
},
"max_items": {
"type": "integer",
"minimum": 1,
"maximum": 20,
"description": "How many array items to show when items differ. Default 6."
}
},
"required": [
"text"
]
}🟢mend_query_json(text, path, max)
Use when you need specific fields from a JSON document without reading all of it: $.users[0].name, $.items[*].id, $.a.b[-1], $.list[1:3], $..email (recursive). Returns each match with its exact path, type and value. Repairs the JSON first if needed, so broken input still works. Up to 100,000 characters.
入力スキーマ
{
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100000,
"description": "The JSON (or JSON-ish text)."
},
"path": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"description": "Path such as $.users[*].email, data.items[0], $..id, $.list[-1], $.list[1:3]."
},
"max": {
"type": "integer",
"minimum": 1,
"maximum": 200,
"description": "Maximum matches to return. Default 50."
}
},
"required": [
"text",
"path"
]
}コミュニティ
エビデンス