Make omitted Gateway protocolType mean unrestricted
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- aws, typescript
- 领域
- cli, infrastructure, release
调研方向
首先追踪旧的 CLI 编写和导入路径、基于项目的重构和 schema 副本,以及 AgentCore L3 Gateway 的合成与测试。在更改行为之前,先审查迁移和依赖版本固定要求。完成的标准是所有列出的验收标准都通过,包括能够证明现有 MCP 项目仍受到限制的回归覆盖。
由索引模型根据 Issue 内容生成。
描述
Description
Make an omitted Gateway protocolType consistently mean an unrestricted
Gateway across the old CLI, project schema, and L3 construct.
The current project contract has an unintuitive compatibility mapping:
agentcore.json value |
Current behavior |
|---|---|
| omitted | MCP-only |
"MCP" |
MCP-only |
"None" |
unrestricted; L3 omits the service field |
The AgentCore service itself uses omission for an unrestricted Gateway and
explicit "MCP" for an MCP-only Gateway. The CLI contract should align:
agentcore.json value |
Desired behavior |
|---|---|
| omitted | unrestricted |
"MCP" |
MCP-only |
"None" |
accepted as a legacy unrestricted value |
The command experience should be:
# Unrestricted; protocolType omitted
agentcore add gateway --name tools
# MCP-only
agentcore add gateway --name tools --protocol-type MCP
This needs a coordinated compatibility migration. Existing schema-v1 projects
with omitted protocolType historically mean MCP, and imported MCP Gateways are
currently persisted with the field omitted. Those projects must not silently
become unrestricted when the L3 default changes.
This was intentionally deferred from aws/agentcore-cli#2028 so that PR can
preserve the currently published schema and L3 behavior.
Acceptance Criteria
- Omitting
--protocol-typein the old CLI persists noprotocolTypefield and deploys an unrestricted Gateway. -
--protocol-type MCPpersists"protocolType": "MCP"and deploys an MCP-only Gateway. - The old CLI no longer needs customers to pass
--protocol-type None; existing"None"project values remain valid. - Importing an MCP Gateway persists explicit
"protocolType": "MCP". - Existing projects where omission historically meant MCP are migrated or normalized to explicit
"MCP"before consuming the new L3 behavior. - The L3 treats omitted
protocolTypeas unrestricted and explicit"MCP"as MCP-only. - Semantic-search protocol configuration remains usable on unrestricted Gateways when supported by the service.
- The old CLI, project-based refactor, schema copies, generated CDK, and L3 tests use the same contract.
- Release sequencing publishes the compatible L3 version before either CLI updates its exact L3 pin.
- Regression tests prove existing MCP projects do not silently widen to unrestricted access.
Additional Context
This is a cross-repository compatibility change involving:
- old CLI authoring, import, migration, generated CDK, and dependency pinning;
- project-based refactor command and schema behavior;
aws/agentcore-l3-cdk-constructsschema and Gateway synthesis.
- 主要语言
- TypeScript
- 星标
- 304
- 派生
- 105
- 平均合并
- 16 小时 14 分钟
- 30 天内合并 PR
- 186
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
aws/agentcore-cli 的其他 Issue
-
`agentcore dev` container fails with LoginTokenLoadError when using `aws login` credentials可能已有人在做 @proton0210 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 80/100
aws/agentcore-cli#2606 · 3 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
aws/agentcore-cli#2538 ·
维护者通常 1 天内回复
-
[Refactor] project add credentials payment does not match Connector regex可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
aws/agentcore-cli#2533 · 3 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 78/100
aws/agentcore-cli#2520 ·
维护者通常 1 天内回复
-
bug(policy): add policy --target generates an undeployable Cedar statement (wrong action id suffix, resource scope not narrowed)可能已有人在做 @rksharma-owg 于 20 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
aws/agentcore-cli#2395 ·
维护者通常 1 天内回复
查看 aws/agentcore-cli 的全部 Issue
相似的 Issue
-
freshness freshness:observed-only
难度 2/5 1-3 小时 新手友好度 68/100
thoroc/context-radar#280 ·
-
难度 2/5 1-3 小时 新手友好度 66/100
-
documentation story
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
bug category:billing priority:p3 track:fast
难度 2/5 1-3 小时 新手友好度 72/100
LanternOps/breeze#9223 ·
维护者通常 1 天内回复