-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Closed as duplicate of#12589
Labels
CLIIssues related to the Codex CLIIssues related to the Codex CLIauthIssues related to authentication and accountsIssues related to authentication and accountsenhancementNew feature or requestNew feature or requestmcpIssues related to the use of model context protocol (MCP) serversIssues related to the use of model context protocol (MCP) servers
Description
Summary
OAuth login for MCP servers does not provide a way to include the RFC 8707 resource parameter in the authorization request. Some OAuth providers require resource, so the login flow fails even though the user completes authorization in the browser.
Repro
- Configure a streamable HTTP MCP server that uses OAuth and requires
resourceon the authorization request. - Run
codex mcp login <server-name>. - The browser flow completes, but the token exchange fails (no
access_token), because the authorization URL never includedresource.
Expected
Codex should allow specifying an OAuth resource value per MCP server and append it to the authorization URL when starting the login flow.
Notes
The current flow only passes scope, redirect_uri, and client_name. There is no config/CLI way to pass an OAuth resource value.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
CLIIssues related to the Codex CLIIssues related to the Codex CLIauthIssues related to authentication and accountsIssues related to authentication and accountsenhancementNew feature or requestNew feature or requestmcpIssues related to the use of model context protocol (MCP) serversIssues related to the use of model context protocol (MCP) servers