[TypeScript] Support A2A protocol in AgentCore CLI + serve_a2a equivalent in TS SDK
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 38/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- typescript
调研方向
首先跟踪 CLI 的 TypeScript 协议选择和 A2A gate,然后检查 TypeScript SDK runtime 以及现有的 Python A2A 行为。使用 A2A 协议契约和 @a2a-js/sdk 参考来定义 scaffold 和 helper。当 CLI 能够 scaffold 并部署一个提供所需端点、处理 message/send 且在 devguide 中有文档说明的 TypeScript agent 时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- TypeScript
- 星标
- 339
- 派生
- 129
- 平均合并
- 19 小时 21 分钟
- 30 天内合并 PR
- 125
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
aws/agentcore-cli 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
aws/agentcore-cli#2940 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
aws/agentcore-cli#2939 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
aws/agentcore-cli#2938 ·
维护者通常 1 天内回复
-
invoke: CUSTOM_JWT runtime errors discard the response body and error type (e.g. "Token has expired")可能已有人在做 @n1dhruv 于 6 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 82/100
aws/agentcore-cli#2875 · 1 条评论 ·
维护者通常 1 天内回复
-
--debug has no effect; service error name, HTTP status and request ID never reach the terminal可能已有人在做 @abhiramshaji-cyber 于 3 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 78/100
aws/agentcore-cli#2874 ·
维护者通常 1 天内回复
查看 aws/agentcore-cli 的全部 Issue
相似的 Issue
-
triage
难度 1/5 1 小时以内 新手友好度 64/100
-
难度 2/5 1-3 小时 新手友好度 86/100
-
bug
难度 2/5 1-3 小时 新手友好度 77/100
ranxianglei/billion-context#7860 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
-
agent-oc-find-bugs api complexity → simple payment-methods recurring contributions reviewed stripe
难度 2/5 1-3 小时 新手友好度 78/100
opencollective/opencollective#9177 ·