Home / Function/ callerCount() — mcp Function Reference

callerCount() — mcp Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

src/tools/symbol-context.ts lines 217–219

function callerCount(graph: IndexedGraph, node: CodeGraphNode): number {
  return graph.callAdj.get(node.id)?.in.length || 0;
}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does callerCount() do?
callerCount() is a function in the mcp codebase, defined in src/tools/symbol-context.ts.
Where is callerCount() defined?
callerCount() is defined in src/tools/symbol-context.ts at line 217.
What does callerCount() call?
callerCount() calls 1 function(s): get.
What calls callerCount()?
callerCount() 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