repair_mcp_configs
Detects and rewrites fragile npx -y @latest MCP server configs to direct local node script paths, creating .fixmcp.bak backups to eliminate -32001 startup timeouts. Preview changes with dryRun first.
Instructions
Detect and optionally rewrite fragile 'npx -y @latest' MCP server configs to direct local node script paths (with automatic .fixmcp.bak backups) to eliminate -32001 startup timeouts. When to use: Call after 'diagnose_mcp_configs' identifies unpinned '@latest' packages in Claude Code, Claude Desktop, Cursor, or VS Code configs. When NOT to use: Do NOT use on JSONC or TOML configs (opencode, Codex CLI) which are report-only. Always run with dryRun: true first to preview the exact diff before applying changes.
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": "repair_mcp_configs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | If true, compute and return the rewrite plan without modifying files on disk (default: true). Set to false only after verifying the dry-run diff. | |
| homeDir | No | Optional custom home directory path to scan instead of default user home. |