AgentCore Gateway: tools/call fails on any credentialed outbound target (mcpServer and OpenAPI), no-auth forward works
Los mantenedores suelen responder en 1 día
@tejaskash ya está trabajando en esto.
Desde el 19/10/2026.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 63/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- aws, typescript
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 339
- Forks
- 129
- Merge medio
- 19 h 21 min
- PR fusionados (30 d)
- 125
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de aws/agentcore-cli
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
aws/agentcore-cli#2940 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
aws/agentcore-cli#2939 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
aws/agentcore-cli#2938 ·
Los mantenedores suelen responder en 1 día
-
invoke: CUSTOM_JWT runtime errors discard the response body and error type (e.g. "Token has expired")Posiblemente ocupada @n1dhruv la tomó hace 6 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
aws/agentcore-cli#2875 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
--debug has no effect; service error name, HTTP status and request ID never reach the terminalPosiblemente ocupada @abhiramshaji-cyber la tomó hace 3 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
aws/agentcore-cli#2874 ·
Los mantenedores suelen responder en 1 día
Todos los issues de aws/agentcore-cli
Issues similares
-
triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 64/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
ranxianglei/billion-context#7860 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
-
agent-oc-find-bugs api complexity → simple payment-methods recurring contributions reviewed stripe
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
opencollective/opencollective#9177 ·