sanitizeFileName() — mcp Function Reference
Architecture documentation for the sanitizeFileName() function in graph-cache.ts from the mcp codebase.
Entity Profile
Dependency Diagram
graph TD 098e27e8_edd6_969f_2706_abc15ad03a87["sanitizeFileName()"] 108c9ff4_bdb8_518a_9256_9ff4cd9d39a7["graph-cache.ts"] 098e27e8_edd6_969f_2706_abc15ad03a87 -->|defined in| 108c9ff4_bdb8_518a_9256_9ff4cd9d39a7 73dde66b_f154_e1ab_4ee7_11f3162fb96d["saveCacheToDisk()"] 73dde66b_f154_e1ab_4ee7_11f3162fb96d -->|calls| 098e27e8_edd6_969f_2706_abc15ad03a87 style 098e27e8_edd6_969f_2706_abc15ad03a87 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/cache/graph-cache.ts lines 540–542
export function sanitizeFileName(name: string): string {
return name.replace(/[^a-zA-Z0-9_\-]/g, '_');
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does sanitizeFileName() do?
sanitizeFileName() is a function in the mcp codebase, defined in src/cache/graph-cache.ts.
Where is sanitizeFileName() defined?
sanitizeFileName() is defined in src/cache/graph-cache.ts at line 540.
What calls sanitizeFileName()?
sanitizeFileName() is called by 1 function(s): saveCacheToDisk.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free