mcp icon indicating copy to clipboard operation
mcp copied to clipboard

[BUG] Github Copilot can't Connect to Fabric MCP Server Due to Registry Policy Issue

Open ckcampbell248 opened this issue 8 months ago • 1 comments

Describe the bug

Issue: Custom MCP servers are blocked from connecting in Copilot CLI despite org admin confirming no MCP servers are blocked. The same MCP server connects and functions correctly in VS Code with the same GitHub account.

Error from logs:

[WARNING] Failed to fetch MCP registry policy: GitHubApiError: Failed to fetch MCP registry policy: 404 Non-default MCP servers will be blocked until the policy can be fetched. [ERROR] MCP server "fabric-mcp-server" filtered: Could not verify server against any configured registry

Feature flags from session: MCP_POLICY: true, MCP_ALLOWLIST: true

Expected behavior

When the registry policy endpoint returns 404 (not configured), custom MCP servers should be allowed — matching VS Code's behavior.

Actual behavior

CLI treats a missing/404 policy as "block all non-default MCP servers."

Reproduction Steps

1. Add a custom MCP server to ~/.copilot/mcp-config.json: { "mcpServers": { "fabric-mcp-server": { "command": "npx", "args": ["-y", "@microsoft/fabric-mcp@latest", "server", "start", "--mode", "all"] } } } 2. Launch Copilot CLI (copilot) 3. Run /mcp — server shows status "Connecting" indefinitely, never reaches "Connected" 4. Attempt to use any MCP tool — no tools are available

Log output (~/.copilot/logs/):

[WARNING] Failed to fetch MCP registry policy: GitHubApiError: Failed to fetch MCP registry policy: 404 Non-default MCP servers will be blocked until the policy can be fetched. [ERROR] MCP server "fabric-mcp-server" filtered: Could not verify server against any configured registry

Additional context:

  • The same MCP server connects and works correctly in VS Code with the same GitHub account
  • The server binary works correctly when invoked directly from the command line (fabmcp onelake list_workspaces returns results)
  • Org admin confirms no MCP servers are blocked
  • The issue appears to be that when the registry policy endpoint returns 404 (policy not configured), the CLI blocks all non-default MCP servers rather than allowing them

Environment

Copilot CLI │ 1.0.11-1
Copilot Plan │ Enterprise OS │ Ubuntu 24.04.4 LTS (WSL2, kernel 6.6.87.2-microsoft-standard-WSL2) Node.js │ v18.19.1 .NET SDK │ 10.0.201 Azure CLI │ 2.84.0

MCP Server Config (~/.copilot/mcp-config.json):

{ "mcpServers": { "fabric-mcp-server": { "command": "npx", "args": ["-y", "@microsoft/fabric-mcp@latest", "server", "start", "--mode", "all"] } } }

ckcampbell248 avatar Mar 23 '26 21:03 ckcampbell248

Updating the Copilot CLI to 1.0.11-1 seems to have resolved the issue.

ckcampbell248 avatar Mar 23 '26 21:03 ckcampbell248