-
Notifications
You must be signed in to change notification settings - Fork 1.5k
MCP OAuth in headless session times out #3039
Copy link
Copy link
Open
Labels
area:authenticationLogin, OAuth, device auth, token management, and keychain integrationLogin, OAuth, device auth, token management, and keychain integrationarea:mcpMCP server configuration, discovery, connectivity, OAuth, policy, and registryMCP server configuration, discovery, connectivity, OAuth, policy, and registry
Metadata
Metadata
Assignees
Labels
area:authenticationLogin, OAuth, device auth, token management, and keychain integrationLogin, OAuth, device auth, token management, and keychain integrationarea:mcpMCP server configuration, discovery, connectivity, OAuth, policy, and registryMCP server configuration, discovery, connectivity, OAuth, policy, and registry
Type
Fields
Give feedbackNo fields configured for Bug.
Describe the bug
When performing OAuth authentication against a remote https mcp server on a machine without browser, it spins waiting to open a browser and eventually times out and fails.
Affected version
v1.0.40-0
Steps to reproduce the behavior
Created a basic ubuntu 24 docker image with no UI elements that I can ssh into, install copilot cli, and run through the /mcp add flow. It will fail during the authentication step.
Expected behavior
Ideally would like a fast fail if it can't identify a browser, and then device flow for oauth (assuming it's supported by the mcp)
Additional context
No response