[DOCS] Agent SDK MCP docs omit `mcp_authenticate` `redirectUri` usage for custom schemes and Claude.ai connectors
Documentation Type
Incorrect/outdated documentation
Documentation Location
https://code.claude.com/docs/en/agent-sdk/mcp
Section/Topic
OAuth2 authentication in the Agent SDK MCP guide
Current Documentation
The docs currently say:
### OAuth2 authentication The MCP specification supports OAuth 2.1 for authorization. The SDK doesn't handle OAuth flows automatically, but you can pass access tokens via headers after completing the OAuth flow in your application:
The section then only shows examples that manually inject an already-acquired bearer token into MCP server headers.
What's Wrong or Missing?
Changelog v2.1.121 added: SDK: mcp_authenticate now supports redirectUri for custom scheme completion and claude.ai connectors.
The Agent SDK MCP docs do not explain that mcp_authenticate exists for MCP authentication flows, and they do not document the new redirectUri support for:
- custom scheme completion, or
- Claude.ai connectors.
As written, the page implies the only supported SDK pattern is completing OAuth outside the SDK and manually passing a bearer token in headers. That leaves users without guidance for the documented SDK auth helper behavior added in v2.1.121.
Suggested Improvement
Update the OAuth2 authentication section in the Agent SDK MCP guide to document the SDK-native authentication flow.
Suggested additions:
- Add a short subsection for
mcp_authenticate. - Document the
redirectUriparameter and when to use it. - Include an example for custom-scheme redirect completion.
- Explain how the same flow applies to Claude.ai connectors.
- Clarify when users should use
mcp_authenticateversus manually supplyingAuthorizationheaders.
Impact
Medium - Makes feature difficult to understand
Additional Context
Affected Pages:
| Page | Context |
|------|---------|
| https://code.claude.com/docs/en/agent-sdk/mcp | Primary Agent SDK MCP authentication documentation |
| https://platform.claude.com/docs/en/agent-sdk/mcp | Agent SDK cross-reference with the same OAuth2 authentication guidance |
Total scope: 2 pages affected
Source: Changelog v2.1.121
Exact changelog entry: SDK: mcp_authenticate now supports redirectUri for custom scheme completion and claude.ai connectors
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗