Home / Function/ findDomain() — mcp Function Reference

findDomain() — mcp Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  695dacd2_046b_a108_405d_763a2f0a13aa["findDomain()"]
  ca77ccf4_30df_6b5c_22dc_f7ba42fd0765["symbol-context.ts"]
  695dacd2_046b_a108_405d_763a2f0a13aa -->|defined in| ca77ccf4_30df_6b5c_22dc_f7ba42fd0765
  fd98a844_5daf_fa4c_d573_003b6d89b6be["renderSymbolContext()"]
  fd98a844_5daf_fa4c_d573_003b6d89b6be -->|calls| 695dacd2_046b_a108_405d_763a2f0a13aa
  style 695dacd2_046b_a108_405d_763a2f0a13aa fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/tools/symbol-context.ts lines 424–431

function findDomain(graph: IndexedGraph, nodeId: string): string | null {
  for (const [domainName, data] of graph.domainIndex) {
    if (data.memberIds.includes(nodeId)) {
      return domainName;
    }
  }
  return null;
}

Domain

Subdomains

Frequently Asked Questions

What does findDomain() do?
findDomain() is a function in the mcp codebase, defined in src/tools/symbol-context.ts.
Where is findDomain() defined?
findDomain() is defined in src/tools/symbol-context.ts at line 424.
What calls findDomain()?
findDomain() is called by 1 function(s): renderSymbolContext.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free