{"version":"2.1.337","anchor":"sdk-result-gains-errors-field-control-response-gains-error","canonical_anchor":"sdk-result-gains-errors-field-control-response-gains-error","heading":"MCP server failures report more specific error codes to SDK apps","tier":"notice","area":"SDK","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/sdk-result-gains-errors-field-control-response-gains-error","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### MCP server failures report more specific error codes to SDK apps\n\nSDK apps now get error codes for MCP server failures, including policy blocks and timeout, DNS, proxy and TLS problems\n\n**What**\n\nMCP 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.\n\n- The `mcp_set_servers` reply can include `error_codes` next to `errors`, one per failed server, including `POLICY_BLOCKED` and `CONNECTOR_LIST_UNREAD`. The codes are left out when a redaction condition is on.\n\n- The `error_code` on a 'failed' server row now covers connection problems: `CONNECT_TIMEOUT`, `NETWORK_UNREACHABLE`, `NAME_LOOKUP_FAILED`, `PROXY_REFUSED`, `NETWORK_ERROR` and `TLS_FAILED`. Before, it covered sign-in, approval and policy problems and `CLIENT_REGISTRATION_UNAVAILABLE`.\n\n- The SDK result message gains an internal `errors` field, set when auto mode could not check some actions.\n\n**Why**\n\nAn 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.\n\n- Area: SDK\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}