github / github/copilot-cli

MCP server 'blocked by policy'

Offen
#3,934 2 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
area:enterprise area:mcp
Vorherrschende Sprache
Shell
Sterne
11.2k
Forks
1.9k
Ø Merge
14 Std. 16 Min.
Gemergte PRs (30 T.)
6

Beschreibung

### Describe the bug

We have a custom MCP registry which is checked when local MCP servers are configured. Although the local MCP configuration is correct and works just fine within VSCode and IntelliJ plugin, an error message 'MCP server is blocked by policy' is shown.

It is unclear what causes this. The process log mentions the following:
```
2026-06-25T11:40:36.761Z [ERROR] MCP server "io.github.sooperset/mcp-atlassian" filtered: Server "io.github.sooperset/mcp-atlassian" found in registry but local configuration does not match the registered server identity
```

### Affected version

GitHub Copilot CLI 1.0.65

### Steps to reproduce the behavior

1. Configure an MCP server in the mcp-config.json in the ~/.copilot directory or just install it from within the Copilot CLI with `/mcp add`
2. The MCP server is blocked

### Expected behavior

_No response_

### Additional context

_No response_

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Reproduziere den Block mithilfe von mcp-config.json in ~/.copilot oder über den Einstiegspunkt /mcp add und prüfe anschließend das Prozessprotokoll auf die Nichtübereinstimmung der Registry-Identität. Als erledigt gilt die Aufgabe, wenn ein korrekt konfigurierter lokaler MCP-Server akzeptiert wird, anstatt als durch eine Richtlinie blockiert gemeldet zu werden.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Bereich
cli, security
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Ruhig
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
38/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.