Summary
Call graphs instead of grep, for the three languages it covers.
What calls this function is a structural question, and text search answers it badly. The graph comes from an index step, so it reflects the code as of when you indexed it: re-run the index after a substantial change.
What it is
A server that builds a graph of the entities in a repository, functions, classes and imports, and answers relationship queries against it.
What you get
- An index built over the directory you point it at
- Every entity defined in one file, by relative path (list_file_entities)
- The relationships of a named entity, given its file and name (list_entity_relationships)
- Relationships covering function calls, inheritance and implementations
- Python, JavaScript and Rust
Requirements
Npx, and the directory to index passed as an argument: @cartographai/mcp-server-codegraph /path/to/directory.
Setup effort
One command — npx @cartographai/mcp-server-codegraph /path/to/directory
