find_references
Find all references to a symbol (callers, importers, inheritors, implementors, value/type references). Supports compact mode
How to use it
find_references is exposed by the Code Graph MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the find_references tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Code Graph MCP
claude mcp add code-graph-mcp -- npx -y @sdsrs/code-graphOther tools in Code Graph MCP (6)
Search AST nodes by text and/or structural filters (type, return type, params)
One symbol with signature, body and relations. includeimpact adds the blast radius, includesimilar embedding-similar nodes, includereferences callers/callees. Supports compact mode
Trace upstream/downstream call chains for a function. Pass routepath='GET /api/x' to trace an HTTP route → handler → downstream instead
Symbols in a directory or file, grouped by type and caller count. includedead lists unreferenced symbols under the path; includedeps adds the file dependency graph (single-file paths only)
Full project architecture: modules, dependencies, entry points, hot functions. includecentrality adds architectural chokepoints
Hybrid BM25 + vector search (RRF) for AST nodes. Supports compact mode