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 4794a7fe_68a8_cd2a_1c48_0b495eb9c67b["buildGraph()"] 2f679171_fd3f_3cd5_48b2_587cc9ec01fd["buildIndexes()"] 4794a7fe_68a8_cd2a_1c48_0b495eb9c67b -->|calls| 2f679171_fd3f_3cd5_48b2_587cc9ec01fd style 4794a7fe_68a8_cd2a_1c48_0b495eb9c67b 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
Calls
Source
Frequently Asked Questions
What does buildGraph() do?
buildGraph() is a function in the mcp codebase.
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