mcp_doctor_repair_json
Repairs malformed MCP configuration JSON by fixing trailing commas, removing invalid comments, and converting single quotes to ensure a valid root mcpServers key.
Instructions
Auto-repairs malformed MCP configuration JSON (fixes trailing commas, removes invalid comments, converts single quotes, ensures root mcpServers key).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"raw_json": "<raw_json>"
},
"name": "mcp_doctor_repair_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw_json | Yes | The broken or unformatted JSON text |