Claude Code v2.1.30 ·
MCP OAuth Configuration Options
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 →