Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Make omitted Gateway protocolType mean unrestricted

オープン
#2,084 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
aws, typescript

調査の方向性

まず、古い CLI の作成およびインポートパス、プロジェクトベースのリファクタリングとスキーマのコピー、さらに AgentCore L3 Gateway の統合とテストを追跡します。動作を変更する前に、移行と依存関係のバージョン固定に関する要件を確認します。完了とは、既存の MCP プロジェクトが引き続き制限されたままであることを証明する回帰テストのカバレッジを含め、列挙されたすべての受け入れ基準に合格することです。

索引モデルが issue の本文から書いたものです。

説明

enhancement
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-type in the old CLI persists no protocolType field and deploys an unrestricted Gateway.
  • --protocol-type MCP persists "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 protocolType as 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-constructs schema and Gateway synthesis.
主要言語
TypeScript
スター
291
フォーク
96
平均マージ
20時間 50分
マージ済み PR(30日)
214

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aws/agentcore-cli のほかの issue

aws/agentcore-cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。