search_code
Grep-like text search within indexed project files.
How to use it
search_code is exposed by the Codebase Memory MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the search_code tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
FULL CODEBASE MEMORY MCP LISTINGOther tools in Codebase Memory MCP (13)
Remove a project and all its graph data.
Map git diff to affected symbols + blast radius with risk classification.
Codebase overview: languages, packages, routes, hotspots, clusters, ADR.
Read source code for a function by qualified name.
Node/edge counts, relationship patterns, property definitions per label. Run this first.
Index a repository into the graph. Auto-sync keeps it fresh after that.
Check indexing status of a project.
Ingest runtime traces to validate HTTPCALLS edges.
List all indexed projects with node/edge counts.
CRUD for Architecture Decision Records. Query modes do not wait behind a same-project reindex; writes remain serialized.
Execute Cypher-like graph queries (read-only).
Structured search by label, name pattern, file pattern, degree filters. Pagination via limit/offset.
BFS traversal — who calls a function and what it calls (alias: tracecallpath). Depth 1-5.