Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.30 ·

MCP OAuth Configuration Options

Entry
JSON All of v2.1.30
EntryKind: in v2.1.30,
ChangesSection of the release
What

New CLI flags for configuring OAuth authentication on HTTP/SSE MCP servers.

Usage
claude mcp add --client-id <clientId> --client-secret --callback-port <port> <server-name> <url>
Details
  • --client-id <clientId>: OAuth client ID for HTTP/SSE servers
  • --client-secret: Prompts for OAuth client secret (or reads from MCP_CLIENT_SECRET env var)
  • --callback-port <port>: Fixed port for OAuth callback, for servers requiring pre-registered redirect URIs
  • Warning displayed when these flags are used with stdio transports (only supported for HTTP/SSE)
  • Falls back gracefully: "No TTY available to prompt for client secret. Set MCP_CLIENT_SECRET env var instead."
Evidence

OAuth CLI options (search for "--callback-port" and "MCP_CLIENT_SECRET")

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agreeAdded pre-configured OAuth client credentials for MCP servers that don't support Dynamic Client Registration (e.g., Slack). Use --client-id…

See this entry in the whole of v2.1.30 →

Feedback