MCP server connection failures now report a specific error code explaining why
When a connection to an MCP server (Model Context Protocol, used to connect Claude Code to external tools and data) fails, the status output now includes an error_code field giving a specific reason, such as a rejected claude.ai login token, a rejected first-party Anthropic credential, or a connection that's pending approval.
This makes it clear why an MCP connection is failing, such as needing to sign in again, instead of just showing a generic failure with no explanation.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
| MCP server connect or failure | `mcp_server_connection` | `status`, `server_name`, `is_plugin`, `error_code` |monitoring-usage see the edit
Anthropic's documentation has since written up error_code, on Monitoring.