Skip to content

[MCP] Prompt mcp login when adding a streamable HTTP server that supports oauth - #5193

Merged
gpeal merged 2 commits into
mainfrom
gpeal/prompt-mcp-login
Oct 15, 2025
Merged

gpeal merged 2 commits into
mainfrom
gpeal/prompt-mcp-login

Conversation

@gpeal

@gpeal gpeal commented Oct 15, 2025

Copy link
Copy Markdown
Contributor
  1. If Codex detects that a codex mcp add -url … server supports oauth, it will auto-initiate the login flow.
  2. If the TUI starts and a MCP server supports oauth but isn't logged in, it will give the user an explicit warning telling them to log in.

Some(McpAuthStatus::NotLoggedIn)
) {
format!(
"The {server_name} MCP server is not logged in. Run `codex mcp login {server_name}` to log in."

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for a followup, but it would be nice if we could do /mcp login {server_name} to avoid having to quit / reopen.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed!

@gpeal
gpeal merged commit 8a281cd into main Oct 15, 2025
20 checks passed
@gpeal
gpeal deleted the gpeal/prompt-mcp-login branch October 15, 2025 16:27
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants