AgentCore Gateway: tools/call fails on any credentialed outbound target (mcpServer and OpenAPI), no-auth forward works
Maintainer antworten meist innerhalb von 1 Tag
@tejaskash arbeitet bereits daran.
Seit 19.10.2026.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 63/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- aws, typescript
Rechercherichtung
Start from the outbound tools/call forwarding path for both mcpServer and OpenAPI targets, and locate where a target's credential provider (the API_KEY path) is resolved and injected into the upstream request — the no-auth OpenAPI forward that succeeds is the working baseline to diff against. Then inspect the error handling that collapses all credentialed failures into 'An internal error occurred. Please retry later.', since the identical text for valid and invalid tokens suggests the injection leg throws before reaching upstream. Done means a credentialed forward returns the upstream response (or a faithful upstream error) and is covered by a test exercising API_KEY injection.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Summary
Outbound tools/call forwards fail whenever a credential provider is attached — regardless of target type (mcpServer, OpenAPI) or credential validity. The same calls succeed direct (no gateway). tools/list works in all cases.
Repro (us-west-2, 2026-10-07)
Gateway: CreateGateway (protocol MCP, AWS_IAM authorizer). All calls via SigV4 POST to the gateway /mcp endpoint.
| Target | Credential provider | tools/list via GW | tools/call via GW | Same call, direct (no GW) |
|---|---|---|---|---|
mcpServer → https://api.githubcopilot.com/mcp (static schema, 46 tools) |
API_KEY (valid GitHub PAT, Authorization: Bearer header) |
200, 30 tools | isError: true, "An internal error occurred. Please retry later." |
200, success |
| Same | API_KEY (fresh GitHub App installation token, ghs_) |
200 | identical error | 200, success |
| Same | API_KEY (deliberately invalid token) |
200 | identical error | 401-class error (different text) |
OpenAPI → https://api.github.com (3 REST ops) |
same API_KEY (valid PAT) |
200, ops served as tools | identical error | 200, success |
OpenAPI → https://httpbin.org/get |
none | 200 | 200, success | — |
Observations
- The failure text is identical for valid, rotated, and invalid credentials → the credential does not appear to reach the upstream request (or the injection leg throws before it does).
- No-auth OpenAPI forward works end-to-end → the outbound network path itself is fine; the failure is isolated to the credential-injection leg.
- No CloudWatch log group is created for the gateway (only runtime log groups exist), so we could not find server-side diagnostics.
- Also fails after
update-api-key-credential-providerwith a freshly rotated key.
Ask
- Fix the credentialed outbound forward (API_KEY provider path).
- Longer term: a credential provider that mints/refreshes GitHub App installation tokens (JWT →
POST /app/installations/{id}/access_tokens, 1h TTL). Current provider set (staticAPI_KEY, 3-legged OAuth,GATEWAY_IAM_ROLE) can't express it — GitHub's OAuth server is authorization-code-only, so there's no gateway-native bot credential for GitHub.
Happy to share exact CLI invocations / account details privately if useful.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 339
- Forks
- 129
- Ø Merge
- 19 Std. 21 Min.
- Gemergte PRs (30 T.)
- 125
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus aws/agentcore-cli
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
aws/agentcore-cli#2940 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
aws/agentcore-cli#2939 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
aws/agentcore-cli#2938 ·
Maintainer antworten meist innerhalb von 1 Tag
-
invoke: CUSTOM_JWT runtime errors discard the response body and error type (e.g. "Token has expired")Evtl. vergeben @n1dhruv hat das vor 6 Tagen übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
aws/agentcore-cli#2875 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
--debug has no effect; service error name, HTTP status and request ID never reach the terminalEvtl. vergeben @abhiramshaji-cyber hat das vor 3 Tagen übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
aws/agentcore-cli#2874 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in aws/agentcore-cli
Ähnliche Issues
-
manually bump balena-preload to ^19.0.6Evtl. vergeben @shaunmulligan hat das heute übernommen. Offen
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 66/100
balena-io/balena-cli#3200 ·
Maintainer antworten meist innerhalb von 1 Tag
-
`MaterializedChatMessage._text` is quadratic in the number of text chunks (`+=` followed by `endsWith`), driving the extension host to heap OOMEvtl. vergeben @olegius88 hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 79/100
microsoft/vscode-prompt-tsx#205 ·
-
triage
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 64/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
melgarafael/DeskcommCRM#5340 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
ehmpathy/rhachet-roles-ehmpathy#1529 ·
Maintainer antworten meist innerhalb von 1 Tag