symbolPriority() — mcp Function Reference
Architecture documentation for the symbolPriority() function in symbol-context.ts from the mcp codebase.
Entity Profile
Dependency Diagram
graph TD e6e8f6cc_e451_ac08_e133_7303f1745598["symbolPriority()"] 2d87a17c_e46f_9198_c263_81d7c3c3054e["findSymbol()"] 2d87a17c_e46f_9198_c263_81d7c3c3054e -->|calls| e6e8f6cc_e451_ac08_e133_7303f1745598 style e6e8f6cc_e451_ac08_e133_7303f1745598 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