Bug
The MCP server fails to start every time Claude Code launches because src/cli/commands/mcp.js imports from a non-existent path.
Line 10:
const { startMCPServer } = await import('../../mcp.js');
src/mcp.js no longer exists — it was moved to src/mcp/index.js during the directory reorganization in commit 62d87f5 (refactor: move remaining flat src/ files into subdirectories #458).
Expected
const { startMCPServer } = await import('../../mcp/index.js');
Impact
- MCP server cannot start at all —
codegraph mcp throws ERR_MODULE_NOT_FOUND
- Claude Code MCP integration fails on every launch
- Affects both single-repo and multi-repo modes
Fix
One-line change in src/cli/commands/mcp.js line 10: update the import path from '../../mcp.js' to '../../mcp/index.js'.
Bug
The MCP server fails to start every time Claude Code launches because
src/cli/commands/mcp.jsimports from a non-existent path.Line 10:
src/mcp.jsno longer exists — it was moved tosrc/mcp/index.jsduring the directory reorganization in commit62d87f5(refactor: move remaining flat src/ files into subdirectories #458).Expected
Impact
codegraph mcpthrowsERR_MODULE_NOT_FOUNDFix
One-line change in
src/cli/commands/mcp.jsline 10: update the import path from'../../mcp.js'to'../../mcp/index.js'.