Skip to content

Allow locally-defined stdio MCP servers to run when the MCP registry policy fetch fails (no managed policy in force) #4512

Description

@dochollidayxx

Summary

When the MCP registry policy fetch fails, Copilot CLI fails closed and blocks all non-default MCP servers — including local stdio servers that the user defined themselves in their own ~/.copilot/mcp-config.json and launches as local child processes.

There is currently no way for a user to say "these are my own servers, run them regardless of registry reachability." I'd like a supported mechanism for that.

Environment

  • Copilot CLI 1.0.81-0
  • Windows (win32-x64)
  • Individual account, no managed/enterprise policy in effect

What happens

https://api.github.com/copilot/mcp_registry is currently returning 503:

HTTP/2.0 503 Service Unavailable
No server is currently available to service your request.

Which produces this in the CLI logs:

[MDM] No managed settings found at C:\Program Files\GitHubCopilot\managed-settings.json
[managedSettings] device MDM: no policy present on this device
[managedSettings] server policy: none for this account (404/empty) from https://github.com
[managedSettings] effective policy resolved: source=none, bypassDisabled=false, serverFetchFailed=false
[WARNING] Failed to fetch MCP registry policy: Failed to fetch MCP registry policy: 503 Service
          Unavailable. Non-default MCP servers will be blocked until the policy can be fetched.

Note the combination: the CLI explicitly resolves source=none — there is no device policy and no server policy for this account — and then still blocks every user-configured server because a separate registry endpoint is unavailable.

Result: 4 locally-defined stdio servers (meshy, blender, game-image-creator, playwright) silently disappear from the session. Only the built-in github-mcp-server remains. The session is unusable for the work it was opened to do, and the only remedy is to wait for a GitHub-side outage to clear.

Why this is the wrong default for local servers

The gate appears to be transport-blind. A stdio server is a local executable that the user already:

  1. wrote into their own config file,
  2. pointed at a binary on their own disk,
  3. runs as a child process under their own uid, with their own env vars.

That is strictly less privileged than the !-shell and arbitrary file-write tools the CLI already grants. Gating it on the reachability of a remote registry doesn't add a meaningful security property for a user with no managed policy — it just converts a GitHub availability blip into a local outage.

Remote/HTTP servers are a different story, and I have no objection to those staying gated.

Requested change

Any one of these would resolve it. Roughly in order of preference:

  1. Exempt locally-defined stdio servers from registry-policy gating when no managed policy is in force (source=none). The registry is a supply-chain control for servers the user didn't author; it shouldn't govern a local process the user already fully controls.
  2. A user-level trust list, e.g. "trustedMcpServers": ["blender", "playwright"] in settings.json, mirroring the existing disabledMcpServers key. Ignored/overridden whenever a real managed policy is present, so enterprise control is unaffected.
  3. Fail open on transient fetch failures specifically (5xx, timeouts, connection errors) when source=none, while continuing to fail closed on an actual policy that denies a server. A 503 is "we don't know", not "denied".

Current config surface

As far as I can tell from the shipped build, the only MCP-related keys accepted are mcpServers (in mcp-config.json) and disabledMcpServers (in settings.json). There's no positive-trust counterpart to disabledMcpServers, and the enforcement itself lives in the native runtime, so there's no user-side escape hatch at all today.

Related

The recurring theme across all of these is that a fetch failure for an absent or irrelevant policy takes down user-owned servers. This issue is the feature-side ask rather than another instance report.

Activity

  1. added
    area:enterprise
    area:mcp
    on Aug 18, 2026
  2. SamanthaJohnsonMWA commented on Sep 23, 2026

    @SamanthaJohnsonMWA

    Confirming this is still happening on 1.0.86, 1.0.87, and 1.0.88.

    Environment

    • Copilot CLI versions tested: 1.0.86, 1.0.87, 1.0.88 — identical failure on all three
    • Windows 11 (win32-x64), Entra ID domain-joined machine (silent SSO auth, no browser prompt)
    • GitHub Enterprise Cloud account, individual license under an org
    • Servers affected: one custom remote HTTP MCP server (azure-devops-remote-mcp, OAuth-protected) and one custom local stdio MCP server (azure-devops-local-mcp, npx-based) — both get blocked simultaneously
    • Only the built-in github-mcp-server remains available every time

    What happens

    Every single launch (100% reproducible, interactive and -p prompt mode alike):

    1. managedSettings correctly resolves source=none (no device policy, no server policy) — confirming there is no actual managed policy in force:
      [managedSettings] effective policy resolved: source=none, bypassDisabled=false, serverFetchFailed=false, policyHelperFailed=false, policyHelperFailClosed=false
      
    2. Almost immediately, a separate check contradicts that and fails closed anyway:
      [managedSettings] applied: bypass-permissions mode DISABLED by enterprise policy (fail-closed: policy could not be determined) — /allow-all and permission escalation are now blocked
      
    3. The remote MCP server (azure-devops-remote-mcp) does successfully authenticate once:
      [ERROR] Successfully authenticated with azure-devops-remote-mcp
      
    4. ...but is torn down almost immediately afterward:
      [rust:rmcp::service] serve finished {"quit_reason":"Closed"}
      [rust:rmcp::service] task cancelled
      [rust:rmcp::service] serve finished {"quit_reason":"Cancelled"}
      
    5. On retry, it hits a 401 OAuth challenge and this time never completes re-auth, so it's dropped for the rest of the session:
      [ERROR] [rust:rmcp::transport::worker] worker quit with fatal: Transport channel closed, when Client(OAuthChallenge { www_authenticate_header: "\"https://mcp.dev.azure.com/.well-known/oauth-protected-resource/<org-name>\"", response: McpOAuthHttpResponse { status_code: 401, header_count: 10, has_body: true } })
      [WARNING] [rust:copilot_runtime::session::mcp::agent_host] HTTP 401 challenge (WWW-Authenticate: "https://mcp.dev.azure.com/.well-known/oauth-protected-resource/<org-name>") {"server":"azure-devops-remote-mcp"}
      
    6. The local stdio server (azure-devops-local-mcp) is even more affected — it never even attempts to spawn a process. No npx/child-process log lines appear for it at all; it's blocked before any connection attempt is made.
    7. The user-facing result is: 1 MCP server was blocked by policy: 'azure-devops-remote-mcp' (or 2 MCP servers were blocked by policy when both are configured), even though the logs show source=none (no managed policy at all).

    Why I believe this matches this issue

    Same core symptom as reported here: source=none / no actual managed policy in force, yet all non-default (custom) MCP servers are blocked at startup, both remote/HTTP and local/stdio alike. In our case it's not a registry 503 — it looks more like a race between the "no policy" resolution and a "policy could not be determined, fail-closed" bypass-permissions check that runs in parallel, plus a genuine OAuth re-auth failure on server retry.

    Additional data points

    • Confirmed the underlying https://api.github.com/copilot/mcp_registry endpoint (and network path to mcp.dev.azure.com) are both reachable from this machine — ruled out network/proxy/firewall causes.
    • Cleared MCP OAuth token cache (~/.copilot/mcp-oauth-config/*) and MCP tool cache (~/AppData/Local/copilot/mcp-tools/*) — no change.
    • Ran /login and /logout + fresh /login across separate sessions — no change; still fails identically afterward.
    • This was working reliably as recently as 2026-09-11, then began failing consistently after being idle for about 6 business days, with no config or environment changes on my end.

    Impact

    This blocks all custom/organizational MCP servers (both remote and local) for our team, which we rely on daily for pulling Azure DevOps work item/test case data directly into Copilot CLI sessions. Currently there is no working client-side fallback.

    Happy to provide full redacted logs or reproduce with additional diagnostics if useful.

  3. hstaudacher commented on Nov 18, 2026

    @hstaudacher
    Collaborator

    Thanks for the detailed report — this is still the current behavior: when the MCP registry policy request fails, the CLI blocks every non-default MCP server, including local stdio servers, even when no managed policy applies. A recent change makes the warning say the policy could not be fetched (rather than implying your organization rejected the server), but there is no carve-out or retry yet. We've moved this to the backlog as a feature request.

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:enterprisearea:mcp

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions