aws / aws/amazon-q-developer-cli

GitHub MCP authentication fails with valid token after restart

Offen
#3,780 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Rust
Sterne
2k
Forks
439
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

## Description

The GitHub MCP integration was previously working but now reports
"Authentication Failed: Bad credentials" even when the token configured in
`~/.kiro/settings/mcp.json` is valid and has the correct scopes
(`repo`, `workflow`, `read:org`, `gist`).

## Steps to Reproduce

1. Configure GitHub MCP server in `~/.kiro/settings/mcp.json` with a valid classic PAT
2. Launch Kiro — GitHub MCP reports authentication error
3. Verified token is valid via `curl https://api.github.com/user` — returns correct user
4. Verified token has `repo` scope and can access private org repos
5. Removing and re-adding the config, or replacing with a fresh token, does not resolve it
6. The MCP server process itself starts correctly (`npx @modelcontextprotocol/server-github`
runs fine with the same token outside of Kiro)

## Environment

- kiro-cli version: 2.1.1
- OS: macOS Darwin 24.6.0
- MCP server: `@modelcontextprotocol/server-github` (stdio type)

## Expected Behavior

GitHub MCP authenticates successfully with the configured token, as it did before.

## Actual Behavior

`Mcp error: -32603: Authentication Failed: Bad credentials`

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit, den Fehler mit der Konfiguration `~/.kiro/settings/mcp.json` und dem stdio-Server `@modelcontextprotocol/server-github` zu reproduzieren, und vergleiche dabei Kiros Startverhalten mit dem erfolgreichen eigenständigen `npx`-Lauf. Verfolge den MCP-Authentifizierungsfehler der CLI und die Behandlung des Neustarts; als abgeschlossen gilt die Untersuchung, wenn ein gültiges Token nach dem erneuten Start erfolgreich authentifiziert wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
github, node.js, rust
Bereich
api, authentication, cli
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Ruhig
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
42/100

Neue Issues direkt in Ihr Postfach

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