feat(doctor): add Claude Code and project .mcp.json config paths

Add ~/.claude.json (Claude Code user-scoped MCP config) and
.mcp.json (Claude Code project-scoped MCP config) to the
default config scan list.
This commit is contained in:
jackwener committed 2026-03-16 13:43:03 +08:00
1 parent 8e84145ccc
commit 1ff184e24d
1 file changed
+2
+2
View File
@@ -82,12 +82,14 @@ export function getDefaultMcpConfigPaths(cwd: string = process.cwd()): string[]
path.join(home, '.codex', 'config.toml'),
path.join(home, '.codex', 'mcp.json'),
path.join(home, '.cursor', 'mcp.json'),
path.join(home, '.claude.json'),
path.join(home, '.config', 'opencode', 'opencode.json'),
path.join(home, 'Library', 'Application Support', 'Claude', 'claude_desktop_config.json'),
path.join(home, '.config', 'Claude', 'claude_desktop_config.json'),
path.join(cwd, '.cursor', 'mcp.json'),
path.join(cwd, '.vscode', 'mcp.json'),
path.join(cwd, '.opencode', 'opencode.json'),
path.join(cwd, '.mcp.json'),
];
return [...new Set(candidates)];
}