What
MCP servers are outside programs that give Claude Code extra tools. Apps that control Claude Code through its SDK, the library for building on Claude Code, now get clearer codes when a server fails.
- The
mcp_set_serversreply can includeerror_codesnext toerrors, one per failed server, includingPOLICY_BLOCKEDandCONNECTOR_LIST_UNREAD. The codes are left out when a redaction condition is on. - The
error_codeon a 'failed' server row now covers connection problems:CONNECT_TIMEOUT,NETWORK_UNREACHABLE,NAME_LOOKUP_FAILED,PROXY_REFUSED,NETWORK_ERRORandTLS_FAILED. Before, it covered sign-in, approval and policy problems andCLIENT_REGISTRATION_UNAVAILABLE. - The SDK result message gains an internal
errorsfield, set when auto mode could not check some actions.
Why
An app can tell a timeout, a name lookup failure, a proxy refusal or a TLS problem apart from a policy block, and show you the right fix.