Home / Function/ symbolPriority() — mcp Function Reference

symbolPriority() — mcp Function Reference

Architecture documentation for the symbolPriority() function in symbol-context.ts from the mcp codebase.

Entity Profile

Dependency Diagram

graph TD
  eb291dfa_2490_34b0_4e00_f48c5ed83b89["symbolPriority()"]
  ca77ccf4_30df_6b5c_22dc_f7ba42fd0765["symbol-context.ts"]
  eb291dfa_2490_34b0_4e00_f48c5ed83b89 -->|defined in| ca77ccf4_30df_6b5c_22dc_f7ba42fd0765
  acad5452_c49c_a5b9_12f1_5263dd556260["findSymbol()"]
  acad5452_c49c_a5b9_12f1_5263dd556260 -->|calls| eb291dfa_2490_34b0_4e00_f48c5ed83b89
  style eb291dfa_2490_34b0_4e00_f48c5ed83b89 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/tools/symbol-context.ts lines 209–215

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

Frequently Asked Questions

What does symbolPriority() do?
symbolPriority() is a function in the mcp codebase, defined in src/tools/symbol-context.ts.
Where is symbolPriority() defined?
symbolPriority() is defined in src/tools/symbol-context.ts at line 209.
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