auth
The tracked changes tagged auth, newest release first. Every sentence is an item's summary.
Goes with
Changes
Claude Code v2.1.332
-
Self-hosted runner: CLAUDE_CODE_OAUTH_TOKEN prefixes can now end in oat02- as well as oat01-; update proxy rules and log scrubbers and mask the whole value.
-
Added the Cyber Verification Program access tier to the startup header, beside the model name when the tier applies to that model and the user is signed in with a claude.ai account.
-
claude auth login now exits 1 with guidance instead of reporting Login successful when a claude.ai login could not be saved.
-
awsCredentialExport now times out after 10 minutes instead of waiting forever.
-
VS Code: fixed a second Logout in the same window reporting success while the first was running, and added a Show logs button to logout errors.
Codex 0.172.0
-
App-server clients can select Amazon Bedrock Runtime during setup or sign-in.
Claude Code v2.1.331
-
Added oidc.groups_jsonpath to the Claude apps gateway to read groups from matching entries of a list of objects using a subset of JSONPath (RFC 9535).
-
Added CLAUDE_GATEWAY_IDP_CONNECT_BY_HOSTNAME=1 so that with oidc.use_proxy true, sign-in requests give the proxy an https IdP hostname even when NO_PROXY is set.
-
Improved the Console sign-in link shown by /login and claude auth login --console, which is now much shorter.
-
[VSCode] Added a warning and a link to the revoke page when logging out and the request to revoke the claude.ai login is not confirmed.
-
[VSCode] Fixed a broken sign-in image.
Claude Code v2.1.330
-
Claude Code can sign in to organizations managed in Anthropic's Enterprise Admin Console via claude auth login, then applies the organization's settings and uses its cloud provider or gateway.
-
Added the CLAUDE_CODE_FULL_SIGN_IN_LINK=1 environment variable to print the full sign-in link instead of the short one.
-
Fixed startup under forceLoginOrgUUID being refused after one temporary server error or dropped connection.
-
Fixed /install-github-app and /design-login showing a generic failure for an account on hold instead of the on-hold notice and appeal link.
-
The claude.ai sign-in link shown by /login, claude auth login and claude setup-token is now much shorter.
MCP registry v1.8.10
-
Fixes HTTP authentication retry.
-
Fixes multi-proof verification.
-
Adds publisher support for reading the private key from a file or from an environment variable.
Codex 0.171.0
-
Fixed enterprise MCP sign-in for identity providers that issue ID tokens without refresh tokens.
Claude Code v2.1.329
-
Fixed repeated sign-outs on macOS when the Keychain could be read but not written; the affected session now stops at expiry and says why, and other sessions stay signed in.
-
Fixed /usage-credits asking Pro and Max users to log in again after opening the browser, and the link disappearing after 8 seconds when the browser does not open and a task stops for usage credits.
-
Fixed an MCP server being signed in again after its authentication was cleared while a token refresh was running.
-
Fixed claude mcp login and /mcp saying a service rejects Claude Code sign-ins when its client registration was retired (HTTP 410 Gone).
-
Fixed pressing Esc twice to clear a mistyped code ending the sign-in in /install-github-app.
+3 more
-
Improved /tui and other in-place restarts to wait briefly for a login refresh, making sign-outs less likely.
-
macOS login renewal now tests the Keychain with a Claude Code-write-check item.
-
VS Code: fixed being signed out in every window and terminal when the sign-in server took 10 to 30 seconds to answer the token refresh.
Claude Code v2.1.328
-
Self-hosted runners no longer stop when their token runs out on a host whose clock is slow or was set back.
Codex 0.170.0
-
Fixed MCP OAuth credential races during cancellation, login, and logout.
Claude Code v2.1.327
-
Fixed a nested claude with its own token being refused by forceLoginOrgUUID; commands that do not get the session's token no longer receive its CLAUDE_CODE_OAUTH_SCOPES.
-
Fixed two sign-in error messages pointing to the Claude subscription option where forceLoginMethod is set to console.
-
Changed some pre-started background sessions to be discarded after an account change.
-
Changed a terminal-paused workflow at a usage limit to stay paused after a login until the earlier login returns or a prompt is typed.
authusage-limits
Claude Code v2.1.326
-
Sessions with --bare on an unapproved API key refuse most background moves, and claude --bare --bg exits with an error if the background service lacks the key.
-
Messages to a session on another machine are refused when the session uses an API key, auth token, profile or workload identity beside a saved claude.ai login.
-
Continue automatically at usage limit stops with a notice and sends nothing when the login changes or ends during the wait.
-
Edit and Write file tools refuse writes to Claude Code sign-in files such as .credentials.json.
-
Background sessions now stop before any model request when the LLM gateway exported by the shell is lost after a crash, reopen from another folder, or is missing from the background service.
+22 more
-
/login no longer replaces a Claude subscription login with a Console login when browser sign-in used a Claude plan.
-
/login now says requests still use ANTHROPIC_API_KEY when an approved key is in use, instead of showing Login successful.
-
Not logged in, /login and /status now name an unused ANTHROPIC_API_KEY, and the message no longer stays after the API key is turned on in /config.
-
claude auth logout no longer leaves credentials behind or breaks token refresh when a Console profile's credentials are on a drive that rejects folder timestamps.
-
Model requests in Claude Desktop's Code tab are retried once after a one-off 401 authentication error.
-
forceLoginOrgUUID and forceRemoteSettingsRefresh errors no longer tell you to sign in again when an HTTP 403 network block page was the cause.
-
claude auth login now shows a pasted sign-in code before Enter so it can be checked.
-
/login and claude setup-token show Finishing sign-in after a pasted code is submitted.
-
Esc during first-run sign-in now goes back one screen instead of doing nothing.
-
/logout in fullscreen keeps the logged-out message on screen when exiting.
-
/privacy-settings saves the choice to the correct account after signing in to a different account in another terminal.
-
claude self-hosted-runner no longer asks for new tokens nonstop when a refreshed token is already due.
-
/logout and claude auth logout retry revoking the login and say where to revoke it if the server does not confirm.
-
The error when the API refuses a Console sign-in now says to run /login instead of pointing to an admin setting.
-
Sign-in prompts say what to do when a verification code or web address is pasted, and the prompt stays open.
-
The /login screen uses a text field, says why a rejected code failed, and scrolls the field into view in short windows.
-
/design-login, /install-github-app and MCP sign-in screens match /login, and the first two mask the pasted code.
-
Claude apps gateway sign-in screens show the sign-in address as a link, and c copies it.
-
[VSCode] A saved sign-in is no longer lost on some networks.
-
[VSCode] Sign-in no longer ends when a verification code, web address or code from another attempt is pasted.
-
[VSCode] The sign-in screen no longer flashes when a panel opens while signed in to Console without an API key.
-
Claude's file tools refuse writes to sign-in files, and the Bash permission check asks before more commands reach them.
Google GenAI Python SDK v3.4.0
-
Resolves Vertex Live connect auth off the event loop and caches ADC credentials.
Claude Code v2.1.325
-
Fixed leftover .oauth_refresh.lock.owner.tmp.* files accumulating in the config directory.
-
Fixed /fast saying fast mode was disabled by the organization under keyless Console sign-in, where the server was never asked.
-
Fixed /model saying the organization restricts a model when Claude Code could not check that, such as with no network.
-
Fixed Console sign-in in /login replacing the existing login when Esc was pressed right after the browser step.
-
Fixed the browser showing the sign-in success page in some cases where sign-in failed or was canceled.
+17 more
-
Fixed claude auth status and other short commands leaving a lock on a Console profile, which made the next session hang for about a minute.
-
Fixed background sessions started on a claude.ai login using and billing an API key or token from the shell that started the background service.
-
Fixed more cases of a session moving to another sign-in in the background; such moves are now refused with a message explaining what works.
-
Fixed AWS credential_process helpers and Google Cloud default credentials failing when started without a HOME environment variable.
-
Fixed an MCP server staying in needs-authentication, and its mcp_tool hooks being skipped, after a token refresh that was briefly refused.
-
Improved startup with keyless Console sign-in or other Anthropic profile login by reading a still-valid token without waiting for the credentials lock.
-
Improved the account email check to also refuse the user's email as a client identity in scripts, file writes, web fetches, and MCP calls.
-
Improved the claude --desktop sign-in error to name the API key, provider, or setting that blocks a Claude account sign-in.
-
Improved the messages shown when a background session cannot use its session's API key or token; they no longer suggest adding the key to settings.
-
Changed /login to ask for permission before changing privacy settings.
-
Changed the programs the sandbox starts for its own use, such as its network bridge, to run without Claude Code sign-in tokens and API keys in their environment.
-
Changed ripgrep, local git commands, and sandbox runtime helper programs to run without the mTLS client key passphrase in their environment.
-
Changed claude -p with no cached account data to wait for that data before the first request, so a first run in a clean environment may start a few seconds later.
-
Added a Console sign-in in VS Code that creates no API key.
-
Fixed the VS Code sign-in screen offering sign-ins that the managed allowedProviders setting refuses.
-
Improved the VS Code sign-in card to say what to do when the browser shows a connection error for localhost.
-
Fixed Claude Tag artifact links pasted in Slack getting no card when the poster's Claude sign-in expired in an unmanaged workspace; a plain card now appears.
Claude Code v2.1.323
-
Changed ripgrep and most internal git commands to run without most sign-in tokens and API keys, so credential helpers or hooks under them no longer find them.
-
Fixed claude plugin commands and claude mcp list signing out of a Console profile when they ended during token renewal.
-
Fixed Claude Code failing to start, or failing to clear stored credentials at sign-out, when saving its configuration file failed with Out of memory.
-
Fixed a session on a named Anthropic profile moving to another sign-in when /fork, the Left arrow, or --bg continued it in the background; sessions open during the update must be reopened.
-
Fixed a background session sending a conversation under another sign-in when its named profile is missing, changed, or overridden; it now stops and reports this.
+19 more
-
Fixed a session on an API key, auth token, or workload identity from its shell moving to another sign-in in the background; it now stops and reports this.
-
Fixed MCP tool calls ending in the sign-in server's error, such as TOKEN_EXPIRED, instead of asking the user to sign in again.
-
Fixed an expired claude.ai login showing Credit balance too low when a saved Console key or ant auth login profile without credit was used instead.
-
Fixed a session on a named Anthropic profile being handed to an older background service that could not keep its sign-in; it now says to restart the service.
-
Fixed a background session's sign-in leaving the previous account's login or other credentials in place; it now clears them for every session on the computer.
-
Fixed background sessions moving between a profile and the stored login when an update restarted them.
-
Fixed sessions opened before a sign-in keeping signed-out feature flags after the sign-in.
-
Fixed sessions failing after a Claude apps gateway sign-in expired; they now continue at the next message once signed in again with /login in another terminal.
-
Fixed the billing notice naming the ant auth login organization when a custom X-Api-Key header is set.
-
Fixed a macOS error showing Not logged in right after a successful /login or token refresh when the keychain was slow to respond.
-
Fixed turns failing in Claude Desktop when an organization's gateway answers an expired token with 403; Claude Code now requests a fresh token from Desktop and retries.
-
Fixed awsAuthRefresh or gcpAuthRefresh sometimes running twice for one request when three or more sessions needed a fresh sign-in at once.
-
Fixed the claude -p warning about an ended claude.ai login to state that claude auth logout also removes saved MCP logins and plugin secrets.
-
Fixed /usage hiding limit bars for setup tokens and CLAUDE_CODE_OAUTH_TOKEN; it keeps session and weekly bars and says why the rest are missing.
-
Improved sign-in errors in /login and claude setup-token for rejected, unreachable, or timed-out requests so they say what happened and what to check.
-
Changed /logout in a background session, which had no effect, to sign out every session on the computer, delete stored MCP logins and plugin secrets, and end the session.
-
[VSCode] Fixed the sign-in screen showing login choices again after a pasted code; it now shows Signing in until sign-in finishes.
-
[VSCode] Improved sign-in errors behind TLS-inspecting proxies so certificate failures say what to do.
-
[Remote Control] Added a Try again button to the error shown when the computer running a session is signed out of Claude Code.
Claude Code v2.1.321
-
MCP OAuth requests no longer send secrets such as refresh tokens to another host when a server redirects them.
-
Sign-in, token refresh and logout no longer wait indefinitely when the network accepts a connection but never answers the TLS handshake.
-
Sign-in limit messages in Claude Code and on the /device page for the Claude apps gateway no longer name gateway settings.
-
Messages for an artifact in another organization offer /login only if it is yours, and say where a copy may be after an account move.
-
The session-feedback message and the allowedProviders setting description now name Ultra alongside Pro and Max, and forceLoginMethod now covers every paid Claude plan.
Claude Code v2.1.319
-
Added a warning when a claude.ai login ends and Claude Code continues on the sign-in from ant auth login, which bills usage to the Claude Console organization.
-
Added a startup line naming the Claude Console organization that is billed when Claude Code uses the sign-in from ant auth login.
-
Fixed a request that kept failing with a 401 refreshing the login on every retry and causing 401s in other sessions.
-
Fixed a roughly 0.5s hang after pressing Enter on the /login success screen; the dialog now dismisses immediately and the post-login refresh runs in the background.
-
Fixed a terminal with an expired Claude apps gateway sign-in sending telemetry and managed-settings requests that the gateway refused and logged as invalid_token.
Codex 0.167.0
-
API key and cloud provider options are available under "Sign in another way", and the gcp_setup_wizard flag sets up Google Cloud Vertex AI with Application Default Credentials or a credential file.
authonboarding -
Gateway OAuth credentials can be stored in a file.
-
Remote executor credentials reload safely across token rotation, and authentication timeout recovery is fixed.
-
Auth reload failures are treated as transient during token refresh.
-
Fallback token refreshes are preserved when the keyring is unreadable.
Claude Code v2.1.318
-
Adds the stored claude.ai sign-in end date as loginExpiresAt in claude auth status and as credential_expires_at in claude -p JSON results.
-
Adds a one-line stderr warning to claude -p text output starting 10 days before a stored claude.ai sign-in ends.
-
Fixes /logout, claude auth logout and claude mcp remove reporting success, and dropping trust, consent or MCP setting changes silently, when the config file cannot be updated on a shared network home directory.
-
Fixes jobs exiting with Not logged in when another terminal or host signs in again to the same account and organization on the same home.
-
Fixes claude plugin commands exiting before a slow token refresh was saved, which could sign the user out on the next run.
+8 more
-
Fixes sessions being refused at startup by an allowedProviders list stored by another login on the same machine.
-
Fixes the stored login being replaced by an empty file when a network home directory has no room for data but still accepts new files.
-
Fixes tokens from setup-token being refused at start on machines with forceLoginOrgUUID when the token belongs to a permitted organization.
-
Fixes the sign-in failure when a stored claude.ai login reaches its time limit; it now says so and, in claude -p, names claude auth login and claude setup-token.
-
Improves how ~/.claude.json, settings files and the stored login survive saves on shared network home directories, making deletion, emptying or replacement by a near-empty or older copy less frequent.
-
Adds a gateway log warning when the Google access token from a federation (external_account) credentials file is about to expire.
-
Fixes a window whose sign-in the organization's settings refuse from starting a new Claude Code process in the background every minute.
-
Improves the sign-in screen to show what Claude Code printed when its sign-in status check fails.
Claude Code v2.1.317
-
Fixes claude auth status exiting before a slow token refresh was saved, which could sign you out on the next run.
-
Fixes a region or network block (HTTP 403) being shown as a sign-in failure; the error now explains the block.
-
VSCode: fixes the sign-in screen opening when a request is blocked for its region or network.
OpenAI Python SDK v3.42.1
-
Validates beta WebSocket authentication profiles in the realtime API.
Claude Code v2.1.316
-
Fixed claude auth login refusing to run where managed settings require a Claude apps gateway; in a terminal it now shows the gateway sign-in.
OpenAI Python SDK v3.42.0
-
Keeps callable API keys scoped to each request.
-
Preserves refusal output and authentication in WebSocket helpers.
Claude Code v2.1.314
-
Fixed MCP servers that also work without sign-in showing "needs authentication" after stored sign-in stopped working; they are now used signed out.
-
Fixed claude mcp logout reporting success when the MCP sign-in was not removed, such as while the macOS keychain is locked over SSH.
-
Fixed extra sign-in renewals when several sessions share an Anthropic profile login and the credentials lock is busy.
-
Improved the cloud session error shown while a refused claude.ai login request is retried, which now also suggests claude auth login.
-
Improved how stored claude.ai, Team and Enterprise logins behave when MDM and remote settings differ on base URL or apiKeyHelper.
Codex 0.166.0
-
Enabled masked AWS credentials for local proxy signing.
-
Clarified config loader APIs and shared interactive login setup.
-
Integrated runtime authentication into model requests.
-
Integrated config-server policies with startup and authentication.
-
Routed FedRAMP API keys to government endpoints by default.
+9 more
-
Consolidated async header authentication in apply_auth_headers.
-
Added a credential file override for GCP provider authentication.
-
Prevented credential collisions in registry auth test fixtures.
-
Made login token-refresh tests wait for auth publication.
-
Surfaced refresh-token rejection errors during workspace routing.
-
Defaulted gateway OAuth delivery to Authorization bearer tokens.
-
Showed the selected ChatGPT workspace in /status.
-
Added experimental ChatGPT workspace switching to app-server.
-
Shared runtime authentication with model providers and catalogs.
Claude Code v2.1.312
-
Added oidc.user_id_claim to the Claude apps gateway to identify people by an id_token claim other than sub, such as Microsoft Entra ID's oid.
Codex 0.165.0
-
Decoupled managed configuration loading from ChatGPT authentication.
-
Cached decrypted Codex auth and managed secrets.
Claude Code v2.1.311
-
Improved the message shown when a pasted sign-in code is refused to say the code may have expired or been used and to sign in again.
MCP registry v1.8.5
-
Documented HTTP verification requirements for auth and pinned them with tests.
MCP TypeScript SDK 2.4.0
-
Adds an opt-in scopeForRefresh(tokens) method on OAuthClientProvider so token refresh can include scope for authorization servers that require it; the default refresh request is unchanged.
MCP TypeScript SDK @modelcontextprotocol/client@2.4.0
-
Adds an optional scopeForRefresh(tokens) method on OAuthClientProvider and an optional scope parameter on refreshAuthorization(), so a scope can be sent on refresh-token requests for authorization servers that require it; without either option, refresh requests and saved tokens are unchanged.
MCP registry v1.8.2
-
Device-flow slow_down responses from GitHub are treated as retriable by the publisher (PR #1290).
-
Transient device-flow failures are tolerated during login polling (PR #1588).
Codex 0.164.0
-
Enterprise MCP connections can authenticate using eligible Codex account grants or dedicated sign-in, including OAuth clients that require secrets.
-
Masks credentials during supported remote Bash commands and Zsh snapshot sessions, including credentials from custom providers.
-
The Amazon Bedrock setup wizard is enabled by default, and API key entry is grouped with other AWS sign-in methods when credentials are detected.
-
Enables enterprise-managed authorization for MCP connections.
-
Enables MCP OAuth refresh coordination by default.
Google GenAI Python SDK v2.33.0
-
Skips mTLS URL rewriting for multi-regional .rep.googleapis.com endpoints and honors GOOGLE_API_USE_MTLS_ENDPOINT in Google Auth sessions.
Claude Code v2.1.309
-
Features now appear in Claude Code sessions in the Claude desktop app when the terminal on the same computer is signed in to a different account or organization.
Claude Code v2.1.307
-
Fixed MCP servers showing 'needs authentication' in claude -p on macOS while the login keychain was locked; they now state the reason, and the next run after unlock connects without a new sign-in.
-
Improved browser sign-in so the success page appears as soon as sign-in completes, without waiting for the account profile to load.
Gemini CLI Release v0.65.0
-
Aligns OAuth callback iss parameter validation with RFC 9207 metadata.
-
Prevents infinite verification and OAuth retry loops.
-
Clears cached credentials when re-selecting Google login.
Claude Code v2.1.304
-
Fixed organization policy not refreshing until the hourly check after approving an ANTHROPIC_API_KEY at startup or switching "Use custom API key" in /config.
-
Fixed Remote Control permanently withholding a desktop conversation's history when a different account was signed in to the terminal.
-
Fixed OpenTelemetry settings delivered through server-managed settings being ignored for the whole session after signing in during first-run setup or the first start after /logout.
Claude Code v2.1.301
-
The login refresh error caused by a full disk now names the disk and says to delete files, instead of saying to run /login.
-
Switching to a model whose name contains application-inference-profile no longer runs the awsAuthRefresh command or delays model-switch hooks when the provider is not Bedrock.
-
Sign-in refresh timeouts and unexpected sign-outs no longer occur when a short command such as claude auth status or claude plugin list exits during a token refresh.
Claude Code v2.1.300
-
A login refused by forceLoginOrgUUID no longer leaves the refused organization's token stored or live after /login.
-
claude remote-control servers now retry renewing their connection after a brief sign-in error and warn when claude /login is needed, instead of giving up.
Claude Code v2.1.299
-
Added $.session.identity() for managed-settings mods, returning sign-in method and, when forceLoginOrgUUID lists the organization, its organization and email.
-
Fixed the error for a denied cloud session pointing to the wrong organization when a key from apiKeyHelper was in use.
-
Fixed sign-in, MCP servers and project trust appearing lost on Linux after a sandboxed command left an empty .config.json in the config directory.
-
Fixed feature flag, startup, fast mode, profile and feedback requests carrying the API key for a third-party gateway; Anthropic API keys are still sent.
-
Fixed managed settings and organization policy not being fetched when a stored login's plan was changed locally on machines whose managed settings set forceLoginOrgUUID.
+4 more
-
Fixed forceLoginOrgUUID and forceLoginMethod from MDM or the managed settings file being hidden or replaced by server-managed settings.
-
Fixed MCP OAuth sign-in, token refresh and sign-out not sending configured headers or headersHelper values, breaking servers behind an authenticating proxy.
-
Improved the error for a cloud session refused because the claude.ai login was rejected or expired; it now says to sign in again with claude auth login.
-
VSCode: Fixed the mic button showing an internal error when signed out of claude.ai; it now offers to sign in.
Gemini CLI Release v0.65.0-preview.0
-
OAuth callback iss parameter validation is aligned with RFC 9207 metadata.
-
Infinite verification and OAuth retry loops are prevented.
-
Cached credentials are cleared when Google login is re-selected.
Claude Code v2.1.296
-
Fixed a Claude apps gateway serving allowedProviders with "gateway" locking out laptops that name that gateway in user settings.
-
Fixed a saved Claude apps gateway sign-in being ignored on machines whose managed settings set forceLoginMethod to gateway without forceLoginGatewayUrl (regression in 2.1.295).
-
Improved the errors for a refused cloud session to say why the organization's policy couldn't be loaded and to name an API key or auth token that overrides the claude.ai login.
Claude Code v2.1.293
-
Fixed claude logs, stop, kill, rm, and claude daemon status, stop, and uninstall sometimes signing you out when your login had expired or was about to expire.
Claude Code v2.1.290
-
Fixed first launch asking for a login method after claude auth login or with existing credentials.
-
Fixed macOS /login reporting success when the keychain refused the new login.
-
The error for a cloud session without claude.ai sign-in now names claude auth login and /login.
MCP TypeScript SDK 2.3.1
-
requireBearerAuth in @modelcontextprotocol/server-legacy accepts an optional expectedResource parameter that restricts accepted tokens to those issued for this server (the token's audience); it is off unless set.
MCP TypeScript SDK @modelcontextprotocol/server-legacy@2.3.1
-
requireBearerAuth in @modelcontextprotocol/server-legacy accepts an optional expectedResource option; when set, a token is accepted only if the verifier reports that resource value in AuthInfo.resource, compared as strings ignoring a fragment and one trailing slash.
-
Tokens reported for a different resource, or for no resource, are answered with 401 invalid_token and the usual WWW-Authenticate challenge when expectedResource is set; behavior is unchanged when it is not set.
Claude Code v2.1.289
-
Reverted a 2.1.288 change to claude auth status in VSCode that may have made sign-outs more frequent.
MCP Python SDK v2.3.0
-
An interactive OAuth login no longer counts against request timeouts while waiting on redirect_handler and callback_handler; a login that never completes is no longer ended by a request timeout, so a limit must be set inside callback_handler if needed.
Claude Code v2.1.288
-
Added a re-authenticate prompt when an MCP server asks for more OAuth scope during a tool call.
-
Fixed /login reporting success when credentials could not be saved to secure storage; it now shows the failure and offers a retry when the new login didn't take effect.
-
Fixed a second gcpAuthRefresh/awsAuthRefresh browser sign-in opening on wake while another process was signing in.
-
Fixed /login in a --bare session running a sign-in the session never reads; it now says which credentials work.
MCP TypeScript SDK 2.3.0
-
Added expectedResource option on requireBearerAuth and verifyBearerToken to accept only tokens issued for this server (token audience); off unless set, and Express users should upgrade @modelcontextprotocol/express together with @modelcontextprotocol/server.
-
validateOriginHeader and the allowedOrigins option of the Express, Fastify and Hono app helpers accept <scheme>://* entries such as moz-extension://*.
-
SSEClientTransport refreshes once after a 401 on connect instead of retrying without limit.
MCP TypeScript SDK 1.32.0
-
Added an expectedResource option to requireBearerAuth that accepts only tokens whose audience is this server; it is off unless set.
Claude Code v2.1.287
-
Fixed a revoked claude.ai login showing a generic API Error: 401 instead of "OAuth token revoked"; in -p mode the error starts with "Failed to authenticate".
-
Fixed Bedrock, Vertex and Mantle model availability checks under CLAUDE_CODE_SKIP_*_AUTH sending a different Authorization header than real requests when ANTHROPIC_CUSTOM_HEADERS repeats it.
Google GenAI Python SDK v2.26.0
-
Reaps aiohttp sessions and auth locks that belong to closed event loops.
Claude Code v2.1.286
-
Fixed several Claude Code processes and IDE extensions each opening a login browser when gcpAuthRefresh or awsAuthRefresh credentials expire.
-
Fixed macOS sessions still showing "Not logged in" or "Login expired" after /login succeeds in another window when a leftover ~/.claude/.credentials.json exists.
-
Fixed claude auth status reporting a Console sign-in's stored API key as claude.ai; it now reports api_key, and the VS Code extension treats that session as an API key session.
-
Fixed /status listing an Anthropic profile beside an API key as if both were in effect; the profile is now marked as not in use.
-
Fixed a repeat MCP sign-in request replacing the pending sign-in link, which could stop that link from working.
Claude Code v2.1.285
-
Fixed sessions authenticating with ANTHROPIC_AUTH_TOKEN against the Anthropic API never loading the organization's policy.
-
Fixed a rare auth failure when two sessions recover a login refresh lock left by a crashed process at the same time.
-
Fixed sign-in that could wait forever after the browser showed success.
-
Fixed VS Code sign-in staying on the authorization-code step after going back and choosing the same method again.
Claude Code v2.1.284
-
Added private_key_jwt certificate client authentication between the Claude apps gateway and its identity provider.
-
Fixed the Claude apps gateway returning 431 for sign-ins with many identity provider groups; it now accepts request headers up to 256 KiB.
-
Improved the startup refusal under forceLoginMethod or forceLoginOrgUUID to name the configured credential, where it is set, and how to remove it.
-
Fixed VS Code sign-in waiting up to a minute for the Python extension after a window reload.
-
Changed Claude Tag to post its private sign-in notice at every @mention from unconnected users instead of only the first.
Claude Code v2.1.282
-
Fixed requests failing for up to a minute with a login refresh error after another Claude Code process was closed or killed mid-refresh.
-
Fixed sessions started while another window was refreshing sign-in not retrying their organization policy fetch.
-
Fixed a VS Code editor tab's sign-in screen hanging silently after the extension host restarts; it now shows the stopped-responding notice.
MCP Python SDK v2.2.0
-
For servers without protected resource metadata, the OAuth client now rejects authorization server metadata whose issuer is not the server's own origin with OAuthFlowError, returns non-insufficient_scope 403 responses to the caller instead of retrying, and stops the flow on 5xx/429 when fetching protected resource metadata instead of falling back to legacy endpoints.
-
Constructing ClientCredentialsOAuthProvider or PrivateKeyJWTOAuthProvider without issuer= emits MCPDeprecationWarning; issuer will be required in 3.0.
-
AuthSettings with resource_server_url set but validate_token_resource unset emits MCPDeprecationWarning; the default becomes True in 3.0.
-
Adds AuthSettings.validate_token_resource, which accepts only bearer tokens that the TokenVerifier reports as issued for this server.
-
Adds issuer= parameter to ClientCredentialsOAuthProvider and PrivateKeyJWTOAuthProvider.
MCP Python SDK v1.30.0
-
AuthSettings with resource_server_url set but validate_token_resource unset now emits a DeprecationWarning; set it to True or False.
-
Adds AuthSettings.validate_token_resource to accept only bearer tokens that the TokenVerifier reports as issued for this server.