mcp-repo-graph
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| REPO_GRAPH_REPO | No | The path to the repository to analyze |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| generateA | Scan the codebase and (re)build the structural graph. Auto-detects languages and frameworks. Call on first use, after major refactors, or when graph data feels stale. |
| statusB | Repo overview: git state, feature coverage, available flows. Cheap orientation. |
| flowC | End-to-end flow for a feature: entry point through service layer to data, rendered as layered tiers (ENTRY -> SERVICE -> HANDLER -> DATA). |
| traceA | Shortest path between two nodes. Accepts exact IDs or fuzzy name matches. Shows tier transitions along the path. |
| impactC | Blast radius: fan out from a node to see what it affects (downstream) or depends on (upstream). Groups results by architectural tier. |
| neighboursB | All direct connections to and from a node — one hop in each direction, with edge types. |
| costA | Total context cost (lines) for a feature's flow. Shows per-file line counts. Use before starting work to know if the feature fits in context. |
| hotspotsC | Files ranked by size x connection count — the biggest maintenance risks. High-coupling large files are the worst context hogs. |
| minimal_readC | Smallest file set needed for a task. Filters by sub_task keywords if given, otherwise returns the full feature file set ranked by relevance. |
| bloat_reportB | Internal structure of a file: functions/methods ranked by size, class counts, injected services. Use to understand what's inside before splitting. |
| split_planB | Concrete split suggestions for an oversized file, grouped by responsibility and cohesion. Works with any supported language. |
| graph_viewB | Visual ASCII graph map. With feature: layered flow diagram. With node: tree of children, connections, and flows. Without args: full graph overview with node/edge type counts. |
| reloadB | Reload graph data from disk after a regeneration. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/James-Chahwan/repo-graph'
If you have feedback or need assistance with the MCP directory API, please join our Discord server