truncate() — mcp Function Reference
Architecture documentation for the truncate() function in overview.ts from the mcp codebase.
Entity Profile
Dependency Diagram
graph TD 26491aee_5a7e_1ba9_ffd3_b9c82ef3aa52["truncate()"] d8e22e5c_06d6_3c1a_d1ff_f9f562d53e5d["renderOverview()"] d8e22e5c_06d6_3c1a_d1ff_f9f562d53e5d -->|calls| 26491aee_5a7e_1ba9_ffd3_b9c82ef3aa52 style 26491aee_5a7e_1ba9_ffd3_b9c82ef3aa52 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/tools/overview.ts lines 175–178
function truncate(s: string, maxLen: number): string {
if (s.length <= maxLen) return s;
return s.substring(0, maxLen - 3) + '...';
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does truncate() do?
truncate() is a function in the mcp codebase.
What calls truncate()?
truncate() 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