Skip to content

classifyMcpConnectError

classifyMcpConnectError(error): McpConnectErrorKind

Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/utils/mcpAuthError.ts:59

Classify an MCP connect/tool-load failure as a credential problem (auth) or anything else (other). Detection is independent of the adapter (which only tags 401), so a 403 or an “expired token” surfaced by the upstream server is still recognised as auth.

unknown

McpConnectErrorKind