Skip to content

MCP OAuth in headless session times out #3039

Open

Description

@petercort

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

Activity

  1. added theissue type on Apr 29, 2026
  2. added
    area:mcpMCP server configuration, discovery, connectivity, OAuth, policy, and registry
    area:authenticationLogin, OAuth, device auth, token management, and keychain integration
    and removed on Apr 30, 2026
  3. patniko commented on Oct 26, 2026

    @patniko
    Collaborator

    Thanks for the report. We've shipped fixes in this area since this was filed (most recently in Copilot CLI v1.0.69), and we believe this may now be resolved. Could you retest on the latest release (Copilot CLI v1.0.103) and let us know whether you still see it? If we don't hear back in a couple of weeks, we may close this issue — you can always reopen it.

    Triaged as part of a Copilot SDK backlog review, with help from GitHub Copilot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:authenticationLogin, OAuth, device auth, token management, and keychain integrationarea:mcpMCP server configuration, discovery, connectivity, OAuth, policy, and registrymore-info-needed

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions