[TypeScript] Support A2A protocol in AgentCore CLI + serve_a2a equivalent in TS SDK

未关闭
#1,743 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 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 内容生成。

描述

enhancement
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
  1. Running agentcore and selecting TypeScript offers only the default
    HTTP protocol — there is no option to select A2A.
  2. Selecting Python does offer the A2A protocol option.
  3. The Python SDK exposes serve_a2a from bedrock_agentcore.runtime, but the
    npm package bedrock-agentcore/runtime has no serve_a2a equivalent.
  4. Attempting --language TypeScript --protocol A2A is 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:

  • agentcore CLI should allow selecting the A2A protocol for TypeScript
    agents and scaffold an appropriate template.
  • The TypeScript SDK should provide a serve_a2a equivalent (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/sdk on port 9000.
  • Register the agent as HTTP, then edit agentcore/agentcore.json to 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
  1. Add A2A protocol support (CLI scaffolding + template) for TypeScript.
  2. Add a serve_a2a equivalent to the TypeScript SDK.
  3. Document the TypeScript A2A path in the AgentCore devguide.
References
Acceptance Criteria
Acceptance Criteria
  • Running the agentcore CLI with --language TypeScript offers A2A
    as a selectable protocol (not just HTTP).
  • agentcore ... --language TypeScript --protocol A2A no 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 a serve_a2a equivalent
    (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-RPC message/send request.
  • The AgentCore devguide documents the TypeScript A2A path end-to-end.
Additional Context

No response

主要语言
TypeScript
星标
339
派生
129
平均合并
19 小时 21 分钟
30 天内合并 PR
125

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

aws/agentcore-cli 的其他 Issue

查看 aws/agentcore-cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。