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
  23115e73_71da_67e0_3f49_9af5167f6a1b["findDomain()"]
  f0435cd0_6489_6dfd_b2b4_5d96d9d44fe2["renderBriefSymbolContext()"]
  f0435cd0_6489_6dfd_b2b4_5d96d9d44fe2 -->|calls| 23115e73_71da_67e0_3f49_9af5167f6a1b
  bfdd214c_fac6_5f6d_06d3_1828e172d91d["renderSymbolContext()"]
  bfdd214c_fac6_5f6d_06d3_1828e172d91d -->|calls| 23115e73_71da_67e0_3f49_9af5167f6a1b
  style 23115e73_71da_67e0_3f49_9af5167f6a1b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/tools/symbol-context.ts lines 509–516

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

Frequently Asked Questions

What does findDomain() do?
findDomain() is a function in the mcp codebase.
What calls findDomain()?
findDomain() is called by 2 function(s): renderBriefSymbolContext, renderSymbolContext.

Analyze Your Own Codebase

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

Try Supermodel Free