github / github/copilot-cli

MCP Authorization successful messages are confusing / misleading for failed MCP authentication flows

Offen
#3,269 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
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

When I authenticate to an MCP server included in one of my plugins, a browser pops up and shows an "Authorization successful" message:
Image

Similarly, when I navigate back to the CLI, it shows me a message saying I have "successfully authenticated" to my MCP server.
Image

However, the MCP connection failed in this case, and it is easy to miss - only shows up in the `/mcp show` command output which is easy to miss.
Image

Is it possible to show the error message earlier in the flow, either in the browser or when navigating back to the CLI after the browser interactive authentication? This is confusing for the user and may lead them to easily miss that they have not been authenticated properly.

### Affected version

GitHub Copilot CLI 1.0.46

### Steps to reproduce the behavior

1. Install a plugin that bundles an MCP server via `/plugin install `
2. If authorization popup in browser doesn't happen automatically, run `/mcp show` and navigate to the MCP server under the plugin
3. Press "r" to re-authenticate and complete the browser-based auth flow with an account that is not authorized to simulate a failure case
4. Navigate back to the CLI and observe a successful authentication message
5. Press "enter" to notice a red X next to the MCP server, indicating MCP connection was unsuccessful despite the previous messages

### Expected behavior

I expected an error message earlier in the flow to make it clear that MCP connection failed

### Additional context

_No response_

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Reproduziere den Ablauf mit `/plugin install`, `/mcp show` und der Aktion `r` zur erneuten Authentifizierung mit einem nicht autorisierten Konto. Verfolge die Rückkehr aus der Browser-Authentifizierung und die CLI-Meldung, die vor dem Ergebnis der MCP-Verbindung angezeigt wird; erledigt ist es, wenn eine fehlgeschlagene Authentifizierung klar angezeigt wird, bevor das rote X leicht zu übersehen ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
shell
Bereich
authentication, cli
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
48/100

Neue Issues direkt in Ihr Postfach

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