Problem
When using CodeGraph MCP tools without specifying the projectPath parameter, the tools fail with the error:
Error: Tool execution failed: CodeGraph not initialized for this project. Run 'codegraph init' first.
However, the CodeGraph index does exist in the project directory at .codegraph/codegraph.db (49.46 MB), and codegraph status command works correctly.
Environment
- Project Directory: /Users/20250310/IdeaProjects/test1
- Working Directory: Same as project directory
- CodeGraph Index: Exists at .codegraph/codegraph.db
- Index Status: Valid (1,152 files, 15,420 nodes, 26,260 edges)
Problem
When using CodeGraph MCP tools without specifying the projectPath parameter, the tools fail with the error:
Error: Tool execution failed: CodeGraph not initialized for this project. Run 'codegraph init' first.
However, the CodeGraph index does exist in the project directory at .codegraph/codegraph.db (49.46 MB), and codegraph status command works correctly.
Environment