Skip to content

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")
ParameterTypeDefaultDescription
namestringrequiredProject name as shown in code_projects()
  • 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
# See available projects
code_projects()
# Switch to the dashboard project
code_switch_project(name="dashboard")
# All queries now target the dashboard graph
code_search(query="UserTable component")