truncate() — mcp Function Reference
Architecture documentation for the truncate() function in overview.ts from the mcp codebase.
Entity Profile
Dependency Diagram
graph TD 907aa672_168a_bb3a_80dd_ab8d5314cfb2["truncate()"] 82b72c82_f107_1ece_5ba4_a66ed36389be["renderOverview()"] 82b72c82_f107_1ece_5ba4_a66ed36389be -->|calls| 907aa672_168a_bb3a_80dd_ab8d5314cfb2 style 907aa672_168a_bb3a_80dd_ab8d5314cfb2 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