CodeAtlas MCP.
A map of your Python code — for coding assistants. CodeAtlas reads a local Python repository, builds a structural index of symbols and possible calls, then lets an MCP-compatible coding assistant ask focused questions without repeatedly reading whole files.
What is it, really?
A coding assistant may need to know which function calls another or which tests could be relevant. Reading many full files creates extra context and noise. A structural index lets the assistant ask smaller, more targeted questions.
Think of a large codebase as a city. Before visiting every building, a map shows where roads connect. CodeAtlas makes a map of Python definitions and likely call relationships; it cannot tell you everything inside each building.
The practical use case
A coding assistant may need to know which function calls another or which tests could be relevant. Reading many full files creates extra context and noise. A structural index lets the assistant ask smaller, more targeted questions.
Local MCP server
Public source code, architecture documentation, tests and the labeled browser demo are linked below. The implementation boundaries are documented, not hidden.
Follow the architecture.
Select any stage below. The explanation shows what enters that part of the system, what it does and what comes out. This diagram explains real code architecture; it is not connected to the running backend.
Choose source
The user supplies a local Python repository that the tool is allowed to inspect. The indexer reads eligible .py files as text; it does not import or execute the application.
The visual flow is an educational representation. For the exact code paths, open the source and engineering documentation.
What does it look like?
These simplified examples are drawn from the repository's documented behavior. They explain what to expect; they do not execute an API request from this page.
What you provide
def add(a, b): return a + b def twice(x): return add(x, x) # test_maths.py # test_twice() calls twice(2)
What the system determines
Query: get_call_graph('maths.py:twice')
Candidate relationship: twice → add
Query: find_impacted_tests('maths.py:add')
Candidate test: test_maths.py:test_twiceIllustrative fixture from the repository README; the actual MCP server runs locally, not in this browser. Relationships are static candidates, not proof of runtime execution or test coverage.
Every component has a job.
Instead of a giant list of tools, these are the actual responsibilities each technology has in this project.
Parses syntax without executing the target source.
Stores a repeatable local symbol and candidate-call snapshot.
Lets a compatible tool client request index, graph and summary operations.
Make the indexing behavior inspectable and testable locally.
Show the working parts.
✓ Implemented
- Indexes Python classes, functions, nested and async definitions.
- Handles direct-name and some import-alias static call candidates.
- Offers five local MCP tools and a CLI; queries support edge/depth bounds.
- Reports possible test callers by walking reverse graph candidates.
- Has 15 indexing tests and one stdio protocol integration test.
○ Not claimed
- Python-only; uses standard-library AST rather than Tree-sitter.
- Static candidates cannot resolve arbitrary runtime dispatch, inheritance, reflection or wildcard imports.
- An impacted test is a possible caller, not confirmed test coverage.
- The public graph demo is a fixed fixture; private repositories are not uploaded.
- Token payload comparisons are real measurements of different information; no agent cost-saving percentage is proven.
Understand the trade-offs.
Does it read the code?
Yes. It reads eligible Python files while indexing, then returns focused structural summaries for later questions.
Does it generate answers with an LLM?
No. This repository is an indexing and MCP-tool project; it does not run a language model.
Are the call graphs exact?
No. The code creates static candidate relationships. Dynamic behavior can produce missed or incorrect edges.
Being clear about limitations is part of engineering: the project shows patterns and testable code, not a promise of production security, measured cost reduction or unconfigured model inference.
No jargon left behind.
- AST
- A tree describing the syntax of Python source code.
- Symbol
- A named item such as a function, method or class.
- Call graph
- A map of which functions may call other functions.
- MCP
- A standard way for AI clients to call tools and access structured context.