symbolPriority() — mcp Function Reference
Architecture documentation for the symbolPriority() function in symbol-context.ts from the mcp codebase.
Entity Profile
Dependency Diagram
graph TD 49a89c8e_8dc3_6de5_6ff0_1662ee08c876["symbolPriority()"] ad473066_969b_8fc8_45fe_f01051030d72["findSymbol()"] ad473066_969b_8fc8_45fe_f01051030d72 -->|calls| 49a89c8e_8dc3_6de5_6ff0_1662ee08c876 style 49a89c8e_8dc3_6de5_6ff0_1662ee08c876 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/tools/symbol-context.ts lines 248–254
function symbolPriority(node: CodeGraphNode): number {
const label = node.labels?.[0];
if (label === 'Function') return 0;
if (label === 'Class') return 1;
if (label === 'Type') return 2;
return 3;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does symbolPriority() do?
symbolPriority() is a function in the mcp codebase.
What calls symbolPriority()?
symbolPriority() is called by 1 function(s): findSymbol.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free