getKeyFilesForDomain() — mcp Function Reference
Architecture documentation for the getKeyFilesForDomain() function in overview.ts from the mcp codebase.
Entity Profile
Dependency Diagram
graph TD fbeba3a0_8168_dd12_bca3_885bafcb50b5["getKeyFilesForDomain()"] 82b72c82_f107_1ece_5ba4_a66ed36389be["renderOverview()"] 82b72c82_f107_1ece_5ba4_a66ed36389be -->|calls| fbeba3a0_8168_dd12_bca3_885bafcb50b5 55bde18a_7860_173e_f211_5874970475e3["get()"] fbeba3a0_8168_dd12_bca3_885bafcb50b5 -->|calls| 55bde18a_7860_173e_f211_5874970475e3 d16dc47a_bbc0_2745_401a_8a4d3b67257e["normalizePath()"] fbeba3a0_8168_dd12_bca3_885bafcb50b5 -->|calls| d16dc47a_bbc0_2745_401a_8a4d3b67257e b965d3cf_dacd_81fc_77e7_dbe9bdef8bbc["set()"] fbeba3a0_8168_dd12_bca3_885bafcb50b5 -->|calls| b965d3cf_dacd_81fc_77e7_dbe9bdef8bbc style fbeba3a0_8168_dd12_bca3_885bafcb50b5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/tools/overview.ts lines 135–152
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
Called By
Source
Frequently Asked Questions
What does getKeyFilesForDomain() do?
getKeyFilesForDomain() is a function in the mcp codebase.
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