Home / Function/ sanitizeFileName() — mcp Function Reference

sanitizeFileName() — mcp Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  02005c31_96d4_6bb0_c689_f819a2d29a5f["sanitizeFileName()"]
  f6ef4bf8_5f3b_59ae_5ea0_00f1b9b2468e["saveCacheToDisk()"]
  f6ef4bf8_5f3b_59ae_5ea0_00f1b9b2468e -->|calls| 02005c31_96d4_6bb0_c689_f819a2d29a5f
  style 02005c31_96d4_6bb0_c689_f819a2d29a5f 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

Called By

Frequently Asked Questions

What does sanitizeFileName() do?
sanitizeFileName() is a function in the mcp codebase.
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