Documentation / @agentick/mcp / stripMcpErrorPrefix
Function: stripMcpErrorPrefix()
stripMcpErrorPrefix(
message):string
Defined in: protocol/errors.ts:142
Strip the SDK's "MCP error {code}: " prefix from a message if present. Used to defensively handle handler-thrown McpError values so they don't inflict the double-prefix on the client either.
Parameters
message
string
Returns
string