code_switch_project
code_switch_project changes which indexed project all subsequent graph tool calls operate against. Use it when working across multiple codebases in the same session.
code_switch_project(name="dashboard")code_switch_project(name="api")Parameters
Section titled “Parameters”| Parameter | Type | Default | Description |
|---|---|---|---|
name | string | required | Project name as shown in code_projects() |
When to use
Section titled “When to use”- Monorepo or multi-project work — switch between services without restarting the MCP server
- Cross-service debugging — trace a call from an API project to a shared library project
- Confirming behavior in multiple codebases
Workflow
Section titled “Workflow”# See available projectscode_projects()
# Switch to the dashboard projectcode_switch_project(name="dashboard")
# All queries now target the dashboard graphcode_search(query="UserTable component")