MCPcopy Index your code
hub / github.com/codeaashu/claude-code / truncateMcpContentIfNeeded

Function truncateMcpContentIfNeeded

src/utils/mcpValidation.ts:200–208  ·  view source on GitHub ↗
(
  content: MCPToolResult,
)

Source from the content-addressed store, hash-verified

198}
199
200export async function truncateMcpContentIfNeeded(
201 content: MCPToolResult,
202): Promise<MCPToolResult> {
203 if (!(await mcpContentNeedsTruncation(content))) {
204 return content
205 }
206
207 return await truncateMcpContent(content)
208}
209

Callers 1

processMCPResultFunction · 0.85

Calls 2

truncateMcpContentFunction · 0.85

Tested by

no test coverage detected