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.
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. |