{"version":"2.1.248","anchor":"mcp-and-oauth-errors-are-redacted-when-the-session-persists-","canonical_anchor":"mcp-and-oauth-errors-are-redacted-when-the-session-persists-","heading":"MCP and OAuth errors are redacted when the session persists off your machine","tier":"notice","area":"MCP","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248\/e\/mcp-and-oauth-errors-are-redacted-when-the-session-persists-","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248","markdown":"### MCP and OAuth errors are redacted when the session persists off your machine\n\nMCP and OAuth error text is redacted when your session runs off your machine.\n\n**What**\n\nFailures from MCP servers and OAuth flows no longer echo raw exception text when the session lives off your machine. Reconnect, enable and disable actions in the `\/mcp` server views, MCP calls, MCP authentication, MCP OAuth callback URLs and the Claude OAuth callback all return a redacted message instead, and the real error text is written to the local debug log. A normal local run is unchanged and still shows the full error.\n\n**Details**\n\n- Covers the stdio and remote server detail views and the reconnect action, which reports `Error reconnecting to ${St(o)} (detail withheld on this connection).`\n- Control-channel responses substitute `(detail withheld)` for the underlying message.\n- Redaction over the control channel is gated on the environment variable `CLAUDE_CODE_ENVIRONMENT_KIND` being set to `bridge` and on the connection persisting off the machine; otherwise the raw error is passed through as before.\n- The `\/mcp` view redaction has no flag of its own and follows solely from whether the session persists off-box.\n- Server names, messages and modes are sanitized before being interpolated into any response.\n- MCP and OAuth failures are routed through one shared error responder rather than stringifying the exception at each call site.\n\n**Evidence**\n\n`Error reconnecting to ${St(o)} (detail withheld on this connection).`, `(detail withheld)`\n\n- Area: MCP\n- Names: `\/mcp`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 3\/5"}