getKeyFilesForDomain() — mcp Function Reference
Architecture documentation for the getKeyFilesForDomain() function in overview.ts from the mcp codebase.
Entity Profile
Dependency Diagram
graph TD 88e2bfd3_c9cd_c8ac_4c2b_2911435fbb08["getKeyFilesForDomain()"] 242ec636_ba33_547c_5cb6_5f619c73d099["overview.ts"] 88e2bfd3_c9cd_c8ac_4c2b_2911435fbb08 -->|defined in| 242ec636_ba33_547c_5cb6_5f619c73d099 aea9c930_f1b1_d4dc_72c2_803aeb181aad["renderOverview()"] aea9c930_f1b1_d4dc_72c2_803aeb181aad -->|calls| 88e2bfd3_c9cd_c8ac_4c2b_2911435fbb08 2ef71e67_fa6d_b33f_d005_85a400698718["get()"] 88e2bfd3_c9cd_c8ac_4c2b_2911435fbb08 -->|calls| 2ef71e67_fa6d_b33f_d005_85a400698718 59a82797_f6a2_36aa_02bd_7b2f22d1bc50["normalizePath()"] 88e2bfd3_c9cd_c8ac_4c2b_2911435fbb08 -->|calls| 59a82797_f6a2_36aa_02bd_7b2f22d1bc50 4e1e5a38_002c_8f16_1767_0260a7001d5e["set()"] 88e2bfd3_c9cd_c8ac_4c2b_2911435fbb08 -->|calls| 4e1e5a38_002c_8f16_1767_0260a7001d5e style 88e2bfd3_c9cd_c8ac_4c2b_2911435fbb08 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/tools/overview.ts lines 132–149
function getKeyFilesForDomain(graph: IndexedGraph, memberIds: string[]): string[] {
// Return top 3 most common file paths
const pathCounts = new Map<string, number>();
for (const id of memberIds) {
const node = graph.nodeById.get(id);
if (!node) continue;
const fp = node.properties?.filePath as string;
if (fp) {
const normalized = normalizePath(fp);
pathCounts.set(normalized, (pathCounts.get(normalized) || 0) + 1);
}
}
return [...pathCounts.entries()]
.sort((a, b) => b[1] - a[1])
.slice(0, 3)
.map(([p]) => p);
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does getKeyFilesForDomain() do?
getKeyFilesForDomain() is a function in the mcp codebase, defined in src/tools/overview.ts.
Where is getKeyFilesForDomain() defined?
getKeyFilesForDomain() is defined in src/tools/overview.ts at line 132.
What does getKeyFilesForDomain() call?
getKeyFilesForDomain() calls 3 function(s): get, normalizePath, set.
What calls getKeyFilesForDomain()?
getKeyFilesForDomain() is called by 1 function(s): renderOverview.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free