Skip to content

Commit 5c8d1b4

Browse files
aidandaly24claude
andauthored
feat: unhide gateway and gateway-target CLI commands (#562)
Remove { hidden: true } from gateway and gateway-target Commander subcommand registrations so they appear in `agentcore add --help` and `agentcore remove --help`. Update AGENTS.md to reflect that these primitives are no longer hidden/coming soon. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3aaa062 commit 5c8d1b4

3 files changed

Lines changed: 6 additions & 10 deletions

File tree

AGENTS.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ Note: CDK L3 constructs are in a separate package `@aws/agentcore-cdk`.
4747
- **Container**: Agent is built as a Docker container image, deployed via ECR and CodeBuild. Requires a `Dockerfile` in
4848
the agent's code directory. Supported container runtimes: Docker, Podman, Finch.
4949

50-
### Coming Soon
51-
52-
- MCP gateway and tool support (`add gateway`, `add mcp-tool`) - currently hidden
53-
5450
## Primitives Architecture
5551

5652
All resource types (agent, memory, identity, gateway, mcp-tool) are modeled as **primitives** — self-contained classes
@@ -64,8 +60,8 @@ Current primitives:
6460
- `AgentPrimitive` — agent creation (template + BYO), removal, credential resolution
6561
- `MemoryPrimitive` — memory creation with strategies, removal
6662
- `CredentialPrimitive` — credential/identity creation, .env management, removal
67-
- `GatewayPrimitive` — MCP gateway creation/removal (hidden, coming soon)
68-
- `GatewayTargetPrimitive` — MCP tool creation/removal with code generation (hidden, coming soon)
63+
- `GatewayPrimitive` — MCP gateway creation/removal
64+
- `GatewayTargetPrimitive` — MCP tool creation/removal with code generation
6965

7066
Singletons are created in `registry.ts` and wired into CLI commands via `cli.ts`. See `src/cli/AGENTS.md` for details on
7167
adding new primitives.

src/cli/primitives/GatewayPrimitive.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export class GatewayPrimitive extends BasePrimitive<AddGatewayOptions, Removable
146146

147147
registerCommands(addCmd: Command, removeCmd: Command): void {
148148
addCmd
149-
.command('gateway', { hidden: true })
149+
.command('gateway')
150150
.description('Add a gateway to the project')
151151
.option('--name <name>', 'Gateway name')
152152
.option('--description <desc>', 'Gateway description')
@@ -214,7 +214,7 @@ export class GatewayPrimitive extends BasePrimitive<AddGatewayOptions, Removable
214214
});
215215

216216
removeCmd
217-
.command('gateway', { hidden: true })
217+
.command('gateway')
218218
.description('Remove a gateway from the project')
219219
.option('--name <name>', 'Name of resource to remove')
220220
.option('--force', 'Skip confirmation prompt')

src/cli/primitives/GatewayTargetPrimitive.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export class GatewayTargetPrimitive extends BasePrimitive<AddGatewayTargetOption
239239

240240
registerCommands(addCmd: Command, removeCmd: Command): void {
241241
addCmd
242-
.command('gateway-target', { hidden: true })
242+
.command('gateway-target')
243243
.description('Add a gateway target to the project')
244244
.option('--name <name>', 'Target name')
245245
.option('--description <desc>', 'Target description')
@@ -457,7 +457,7 @@ export class GatewayTargetPrimitive extends BasePrimitive<AddGatewayTargetOption
457457
});
458458

459459
removeCmd
460-
.command('gateway-target', { hidden: true })
460+
.command('gateway-target')
461461
.description('Remove a gateway target from the project')
462462
.option('--name <name>', 'Name of resource to remove')
463463
.option('--force', 'Skip confirmation prompt')

0 commit comments

Comments
 (0)