Repair mechanical config problems
triage_fixRepair broken MCP configuration files by stripping JSON comments and trailing commas, with dry-run default and backup before writing.
Instructions
Repair MCP config files that fail to parse — mechanical repairs only (strip JSON comments and trailing commas). Dry-run by default: unless dry_run is explicitly false, nothing is written. A .mcp-triage.bak backup is kept before any write, and nothing is written unless the repaired copy parses cleanly.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "triage_fix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Directory whose project-level configs are included (default: the server process working directory). | |
| file | No | Fix this single config file instead of the standard locations. | |
| dry_run | No | When true (the default), report what would be fixed and write nothing. |