Home / Function/ normalizePath() — mcp Function Reference

normalizePath() — mcp Function Reference

Architecture documentation for the normalizePath() function in graph-cache.ts from the mcp codebase.

Entity Profile

Dependency Diagram

graph TD
  59a82797_f6a2_36aa_02bd_7b2f22d1bc50["normalizePath()"]
  108c9ff4_bdb8_518a_9256_9ff4cd9d39a7["graph-cache.ts"]
  59a82797_f6a2_36aa_02bd_7b2f22d1bc50 -->|defined in| 108c9ff4_bdb8_518a_9256_9ff4cd9d39a7
  f20c71b7_2411_d98b_88ba_3ebc36bdd1f5["buildIndexes()"]
  f20c71b7_2411_d98b_88ba_3ebc36bdd1f5 -->|calls| 59a82797_f6a2_36aa_02bd_7b2f22d1bc50
  88e2bfd3_c9cd_c8ac_4c2b_2911435fbb08["getKeyFilesForDomain()"]
  88e2bfd3_c9cd_c8ac_4c2b_2911435fbb08 -->|calls| 59a82797_f6a2_36aa_02bd_7b2f22d1bc50
  ff178654_5fa6_94e9_c0b1_04b8c002c018["getHubFunctions()"]
  ff178654_5fa6_94e9_c0b1_04b8c002c018 -->|calls| 59a82797_f6a2_36aa_02bd_7b2f22d1bc50
  fd98a844_5daf_fa4c_d573_003b6d89b6be["renderSymbolContext()"]
  fd98a844_5daf_fa4c_d573_003b6d89b6be -->|calls| 59a82797_f6a2_36aa_02bd_7b2f22d1bc50
  style 59a82797_f6a2_36aa_02bd_7b2f22d1bc50 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/cache/graph-cache.ts lines 255–257

export function normalizePath(path: string): string {
  return path.replace(/\\/g, '/');
}

Domain

Subdomains

Frequently Asked Questions

What does normalizePath() do?
normalizePath() is a function in the mcp codebase, defined in src/cache/graph-cache.ts.
Where is normalizePath() defined?
normalizePath() is defined in src/cache/graph-cache.ts at line 255.
What calls normalizePath()?
normalizePath() is called by 4 function(s): buildIndexes, getHubFunctions, getKeyFilesForDomain, renderSymbolContext.

Analyze Your Own Codebase

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

Try Supermodel Free