[TypeScript] Support A2A protocol in AgentCore CLI + serve_a2a equivalent in TS SDK
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 38/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Ruhig
- Tech-Stack
- typescript
- Bereich
- backend-api-design, cli, documentation
Rechercherichtung
Beginne damit, die Auswahl des TypeScript-Protokolls und das A2A-Gate der CLI nachzuverfolgen, und untersuche anschließend die Laufzeit des TypeScript SDK sowie das bestehende Python-A2A-Verhalten. Verwende den A2A-Protokollvertrag und die Referenzen auf @a2a-js/sdk, um das Gerüst und den Helper zu definieren. Als abgeschlossen gilt die Aufgabe, wenn die CLI einen TypeScript-Agenten als Gerüst erzeugt und deployed, der die erforderlichen Endpunkte bereitstellt, message/send verarbeitet und im devguide dokumentiert ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Description
Summary
The AgentCore CLI (@aws/agentcore) and the TypeScript SDK (bedrock-agentcore)
do not currently support the A2A (Agent-to-Agent) protocol, while the Python
tooling does. This forces TypeScript users into a manual workaround to deploy
an A2A agent.
Environment
- CLI:
@aws/agentcore(npm) - SDK:
bedrock-agentcore(npm, TypeScript) - Language: TypeScript
- Protocol: A2A
Current behavior
- Running
agentcoreand selecting TypeScript offers only the default
HTTP protocol — there is no option to select A2A. - Selecting Python does offer the A2A protocol option.
- The Python SDK exposes
serve_a2afrombedrock_agentcore.runtime, but the
npm packagebedrock-agentcore/runtimehas noserve_a2aequivalent. - Attempting
--language TypeScript --protocol A2Ais gated at the CLI level
(per the CLI CHANGELOG: "gate MCP and A2A protocols behind Python-only until
TS templates land").
Expected behavior
TypeScript should have parity with Python for A2A:
agentcoreCLI should allow selecting the A2A protocol for TypeScript
agents and scaffold an appropriate template.- The TypeScript SDK should provide a
serve_a2aequivalent (or documented
helper) that satisfies the A2A protocol contract (port 9000,POST /,
GET /ping,GET /.well-known/agent-card.json).
Current workaround
A2A works with TypeScript today, but only manually:
- Implement the A2A contract using the official
@a2a-js/sdkon port 9000. - Register the agent as HTTP, then edit
agentcore/agentcore.jsonto set
protocol: A2A. - Provide a custom ARM64 Dockerfile (base
node:22-slim,EXPOSE 9000). - Deploy via
agentcore deploy(CodeBuild handles the ECR push), or bypass the
CLI entirely with CDK (protocolConfiguration: ProtocolType.A2A).
This confirms the gap is a tooling/SDK limitation, not an architectural one —
AgentCore's A2A support is a transparent JSON-RPC proxy that is language-agnostic.
Requests
- Add A2A protocol support (CLI scaffolding + template) for TypeScript.
- Add a
serve_a2aequivalent to the TypeScript SDK. - Document the TypeScript A2A path in the AgentCore devguide.
References
- Deploy A2A servers in AgentCore Runtime: https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/runtime-a2a.html
- A2A protocol contract: https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/runtime-a2a-protocol-contract.html
- A2A JS SDK: https://github.com/a2aproject/a2a-js
Acceptance Criteria
Acceptance Criteria
- Running the
agentcoreCLI with--language TypeScriptoffers A2A
as a selectable protocol (not just HTTP). -
agentcore ... --language TypeScript --protocol A2Ano longer errors out
(the Python-only gate is removed for A2A). - The CLI scaffolds a working TypeScript A2A template that satisfies the
A2A protocol contract (port 9000,POST /,GET /ping,
GET /.well-known/agent-card.json). - The TypeScript SDK (
bedrock-agentcore) exposes aserve_a2aequivalent
(or a documented helper) so users don't have to wire up@a2a-js/sdk
manually. - A scaffolded TypeScript A2A agent can be deployed via
agentcore deploy
and successfully responds to a JSON-RPCmessage/sendrequest. - The AgentCore devguide documents the TypeScript A2A path end-to-end.
Additional Context
No response
- 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
-
triage
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 64/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
ranxianglei/billion-context#7860 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
-
agent-oc-find-bugs api complexity → simple payment-methods recurring contributions reviewed stripe
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
opencollective/opencollective#9177 ·