Skip to content

macOS: Azure DevOps MCP sign-in times out without an account picker #6163

Backlog

Description

@JoffrayBillon

Short summary

On macOS, signing in to the remote Azure DevOps MCP server in GitHub Copilot Desktop times out without displaying a Microsoft account picker or browser. The same server works in VS Code on the same Mac after selecting an account.

Affected version or release

GitHub Copilot Desktop 1.5.0 (stamped build); macOS 26.7.2. The desktop runtime logs identify MSAL.xplat.macOS 12.1.0.

Installation context

Locally installed desktop app, global MCP configuration (~/.copilot/mcp-config.json), remote Azure DevOps MCP using streamable HTTP at https://mcp.dev.azure.com/<organization>. Multiple Microsoft accounts are present; one is a B2B guest in the organization's tenant. The exact account used by the desktop broker was not established.

What happened?

Selecting Sign in for azure-devops produces no visible Microsoft account picker or browser. After 30 seconds the app displays:

Authentication failed
azure-devops: operation timed out: MCP OAuth login did not respond within 30s

The problem persisted across repeated attempts. It is not clear whether the underlying failure is in the app, its runtime, the native broker, or their interaction.

Steps to reproduce

  1. Configure the remote Azure DevOps MCP server at https://mcp.dev.azure.com/<organization> in the global MCP configuration.
  2. In GitHub Copilot Desktop, select Sign in for the server.
  3. Wait for the sign-in flow.

Expected behavior

The app should complete sign-in, present an interactive Microsoft sign-in or account choice when needed, or report a useful actionable error rather than timing out without a visible prompt.

Additional context

Control: In VS Code 1.147.0 on the same Mac, using the same remote server URL, an account can be selected and a request to list Azure DevOps projects succeeds. VS Code's Microsoft Authentication logs also show an AADSTS50020 / interaction_required silent acquisition failure for one cached account, which VS Code skips; they also report a returned session. This does not establish that the exact same broker request or account was used by both clients.

Desktop diagnostics: The desktop app starts start_mcp_oauth_login. During the attempt the runtime reports the following (identifiers and account details omitted):

[oneauth] OID claim is missing for home account ((pii))
[MSAL] Received error from SSO extension: MaskedError(com.apple.AuthenticationServices.AuthorizationError, -6000)
[MSAL] StatusInternal::InteractionRequired, Error Code -50002, Context 'AADSTS50020 ...', sourceArea: Broker
[OneAuth] (Code:1200) The credential is invalid.

The UI then times out, without a visible prompt. Subsequent reconnect attempts report cached OAuth refresh refused: no cached tokens. The logs alone do not prove why the prompt was not shown or which component is responsible.

Earlier Keychain prompts: While using the MCP, I saw repeated macOS Keychain password dialogs that did not make clear which password was expected. I entered my Mac password and selected Always Allow. A colleague reported a similar experience and was later able to use the MCP in VS Code. The sign-in failure followed, but I do not know whether the prompts or the permission choice caused it, or which Keychain item was involved.

During troubleshooting, I removed Microsoft Credentials and OneAuthAccount Keychain items after receiving advice to do so; the issue persisted. This is not a recommended workaround.

Related reports: #3785 describes a similar timeout; its macOS comment reports broker-key error -34018, which did not appear in the logs examined here. #4894 describes a similar Azure DevOps MCP symptom on Windows and is closed. #3304 concerns B2B tenant selection for the separate Azure DevOps canvas.

Could the team help identify why the interactive sign-in is not presented and advise on a supported workaround or what additional sanitized diagnostics would be useful?

Activity

  1. added
    intake-done
    azure-devops
    and removed on Nov 25, 2026
  2. github-app-releaser commented on Nov 25, 2026

    @github-app-releaser
    Thank you for the report. The team is evaluating this request.

    Xref: github/github-app#31535

  3. xXxDriplexXx commented on Nov 25, 2026

    @xXxDriplexXx

    I am experiencing the same issue on Windows 11 since updating the GitHub Copilot app to version 1.5.0. The Azure DevOps MCP integration worked without any issues before the update, and the configuration has not been changed.

    Authentication now consistently fails with:

    Authentication failed
    azure-devops: operation timed out:
    MCP OAuth login did not respond within 30s
    

    Diagnostics

    1. The MCP endpoint is reachable

    curl.exe -i --connect-timeout 10 "https://mcp.dev.azure.com/<organization>"

    Result:

    HTTP/1.1 405 Method Not Allowed
    Allow: POST
    

    This is the expected response for a GET request and confirms that the MCP endpoint is reachable.

    2. The OAuth protected-resource metadata endpoint is reachable

    curl.exe -i --connect-timeout 10 "https://mcp.dev.azure.com/.well-known/oauth-protected-resource/<organization>"

    Result:

    HTTP/1.1 200 OK
    

    The response contains the expected resource, authorization server, bearer authentication method, and scope.

    3. Organization-independent URL

    The same 30-second timeout occurs when using the organization-independent URL:

    https://mcp.dev.azure.com/
    

    4. Troubleshooting already performed

    I have already tried the following without success:

    • Removing and re-adding the Microsoft account
    • Completely restarting the GitHub Copilot app
    • Removing and recreating the MCP configuration
    • Verifying access to the browser and the Microsoft Entra endpoints
    • Testing the MCP URL both with and without the organization name

    Temporary workaround

    There is a temporary workaround using the GitHub Copilot CLI:

    1. Start the GitHub Copilot CLI.
    2. Open the MCP management interface using /mcp.
    3. Select the Azure DevOps MCP server.
    4. Trigger reauthentication using r: reauth.
    5. Complete the authentication flow in the browser.

    After reauthentication through the GitHub Copilot CLI, the Azure DevOps MCP integration also starts working again in the GitHub Copilot app.

    This suggests that the GitHub Copilot app retains an invalid MCP OAuth state after the update and currently does not provide a way to trigger a fresh authentication flow directly from the app.

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

    Bugazure-devopsintake-doneos:macos

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions