buildGraph() — mcp Function Reference
Architecture documentation for the buildGraph() function in symbol-context.test.ts from the mcp codebase.
Entity Profile
Dependency Diagram
graph TD 6108b80d_55ab_127a_5edd_034a115a2c42["buildGraph()"] 4e8cb5f6_f6f3_2b7d_9300_e8877f606de7["symbol-context.test.ts"] 6108b80d_55ab_127a_5edd_034a115a2c42 -->|defined in| 4e8cb5f6_f6f3_2b7d_9300_e8877f606de7 f20c71b7_2411_d98b_88ba_3ebc36bdd1f5["buildIndexes()"] 6108b80d_55ab_127a_5edd_034a115a2c42 -->|calls| f20c71b7_2411_d98b_88ba_3ebc36bdd1f5 style 6108b80d_55ab_127a_5edd_034a115a2c42 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/tools/symbol-context.test.ts lines 12–21
function buildGraph(
nodes: Array<{ id: string; labels: string[]; properties: Record<string, unknown> }>,
relationships: Array<{ id: string; type: string; startNode: string; endNode: string; properties?: Record<string, unknown> }> = [],
) {
const raw: any = {
repo: 'test-repo',
graph: { nodes, relationships: relationships.map(r => ({ ...r, properties: r.properties ?? {} })) },
};
return buildIndexes(raw, 'test-key');
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does buildGraph() do?
buildGraph() is a function in the mcp codebase, defined in src/tools/symbol-context.test.ts.
Where is buildGraph() defined?
buildGraph() is defined in src/tools/symbol-context.test.ts at line 12.
What does buildGraph() call?
buildGraph() calls 1 function(s): buildIndexes.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free