MCPcopy
hub / github.com/coder/mux / shouldRecycleClientAfterToolError

Function shouldRecycleClientAfterToolError

src/node/services/mcpServerManager.ts:128–130  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

126}
127
128function shouldRecycleClientAfterToolError(error: unknown): boolean {
129 return isClosedClientError(error) || error instanceof MCPDeadlineError;
130}
131
132/**
133 * Wrap MCP tools to transform their results to AI SDK format.

Callers 1

wrapMCPToolsFunction · 0.85

Calls 1

isClosedClientErrorFunction · 0.85

Tested by

no test coverage detected