IndexedGraph Type — mcp Architecture
Architecture documentation for the IndexedGraph type/interface in graph-cache.ts from the mcp codebase.
Entity Profile
Dependency Diagram
graph TD 1e5728cd_d35b_2e55_1a1e_fbf2decd1090["IndexedGraph"] 108c9ff4_bdb8_518a_9256_9ff4cd9d39a7["graph-cache.ts"] 1e5728cd_d35b_2e55_1a1e_fbf2decd1090 -->|defined in| 108c9ff4_bdb8_518a_9256_9ff4cd9d39a7 style 1e5728cd_d35b_2e55_1a1e_fbf2decd1090 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/cache/graph-cache.ts lines 32–61
export interface IndexedGraph {
// Raw data
raw: SupermodelIR;
// Indexes
nodeById: Map<string, CodeGraphNode>;
labelIndex: Map<string, string[]>; // label -> node ids
pathIndex: Map<string, PathIndexEntry>; // filePath -> entities
dirIndex: Map<string, string[]>; // dir path -> child file/dir ids
nameIndex: Map<string, string[]>; // lowercase name -> node ids
callAdj: Map<string, AdjacencyList>; // function id -> callers/callees
importAdj: Map<string, AdjacencyList>; // file/module id -> imports/importers
domainIndex: Map<string, { memberIds: string[], relationships: CodeGraphRelationship[] }>;
// Precomputed
summary: {
filesProcessed: number;
classes: number;
functions: number;
types: number;
domains: number;
primaryLanguage: string;
nodeCount: number;
relationshipCount: number;
};
// Metadata
cachedAt: string;
cacheKey: string;
}
Defined In
Source
Frequently Asked Questions
What is the IndexedGraph type?
IndexedGraph is a type/interface in the mcp codebase, defined in src/cache/graph-cache.ts.
Where is IndexedGraph defined?
IndexedGraph is defined in src/cache/graph-cache.ts at line 32.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free