@@ -245,35 +245,50 @@ export class GatewayTargetPrimitive extends BasePrimitive<AddGatewayTargetOption
245245 registerCommands ( addCmd : Command , removeCmd : Command ) : void {
246246 addCmd
247247 . command ( 'gateway-target' )
248- . description ( 'Add a gateway target to the project' )
249- . option ( '--name <name>' , 'Target name' )
250- . option ( '--description <desc>' , 'Target description' )
248+ . description ( 'Add a target (API, MCP server, Lambda) to a gateway for tool routing' )
249+ . option ( '--name <name>' , 'Target name [non-interactive]' )
250+ . option ( '--description <desc>' , 'Target description [non-interactive]' )
251+ . option ( '--gateway <name>' , 'Gateway to attach this target to [non-interactive]' )
251252 . option (
252253 '--type <type>' ,
253- 'Target type (required): mcp-server, api-gateway, open-api-schema, smithy-model, lambda-function-arn'
254+ 'Target type (required): mcp-server, api-gateway, open-api-schema, smithy-model, lambda-function-arn [non-interactive] '
254255 )
255- . option ( '--endpoint <url>' , 'MCP server endpoint URL' )
256- . option ( '--language <lang>' , 'Language: Python, TypeScript, Other' )
257- . option ( '--gateway <name>' , 'Gateway name' )
258- . option ( '--host <host>' , 'Compute host: Lambda or AgentCoreRuntime' )
259- . option ( '--outbound-auth <type>' , 'Outbound auth type: oauth, api-key, or none' )
260- . option ( '--credential-name <name>' , 'Existing credential name for outbound auth' )
261- . option ( '--oauth-client-id <id>' , 'OAuth client ID (creates credential inline)' )
262- . option ( '--oauth-client-secret <secret>' , 'OAuth client secret (creates credential inline)' )
263- . option ( '--oauth-discovery-url <url>' , 'OAuth discovery URL (creates credential inline)' )
264- . option ( '--oauth-scopes <scopes>' , 'OAuth scopes, comma-separated' )
265- . option ( '--rest-api-id <id>' , 'API Gateway REST API ID (required for api-gateway type)' )
266- . option ( '--stage <stage>' , 'API Gateway deployment stage (required for api-gateway type)' )
267- . option ( '--tool-filter-path <path>' , 'Tool filter path pattern, e.g. /pets/*' )
268- . option ( '--tool-filter-methods <methods>' , 'Comma-separated HTTP methods, e.g. GET,POST' )
256+ . option ( '--endpoint <url>' , 'Server endpoint URL (for mcp-server type) [non-interactive]' )
257+ . option ( '--language <lang>' , 'Language of target code: Python, TypeScript, Other [non-interactive]' )
258+ . option ( '--host <host>' , 'Where to run the target: Lambda or AgentCoreRuntime [non-interactive]' )
259+ . option ( '--outbound-auth <type>' , 'Outbound auth type: oauth, api-key, or none [non-interactive]' )
260+ . option ( '--credential-name <name>' , 'Existing credential name for outbound auth [non-interactive]' )
261+ . option (
262+ '--oauth-client-id <id>' ,
263+ 'OAuth client ID — creates credential inline (for oauth auth) [non-interactive]'
264+ )
265+ . option (
266+ '--oauth-client-secret <secret>' ,
267+ 'OAuth client secret — creates credential inline (for oauth auth) [non-interactive]'
268+ )
269+ . option (
270+ '--oauth-discovery-url <url>' ,
271+ 'OAuth discovery URL — creates credential inline (for oauth auth) [non-interactive]'
272+ )
273+ . option ( '--oauth-scopes <scopes>' , 'OAuth scopes, comma-separated (for oauth auth) [non-interactive]' )
274+ . option ( '--rest-api-id <id>' , 'REST API ID (for api-gateway type) [non-interactive]' )
275+ . option ( '--stage <stage>' , 'Deployment stage (for api-gateway type) [non-interactive]' )
276+ . option ( '--tool-filter-path <path>' , 'Tool filter path pattern, e.g. /pets/* [non-interactive]' )
277+ . option ( '--tool-filter-methods <methods>' , 'Comma-separated HTTP methods, e.g. GET,POST [non-interactive]' )
269278 . option (
270279 '--schema <path>' ,
271- 'Path to schema file (relative to project root) or S3 URI (for open-api-schema / smithy-model)'
280+ 'Schema file path or S3 URI (for open-api-schema / smithy-model type) [non-interactive]'
281+ )
282+ . option (
283+ '--schema-s3-account <id>' ,
284+ 'S3 bucket owner account ID for cross-account access (for schema on S3) [non-interactive]'
285+ )
286+ . option ( '--lambda-arn <arn>' , 'Lambda function ARN (for lambda-function-arn type) [non-interactive]' )
287+ . option (
288+ '--tool-schema-file <path>' ,
289+ 'Tool schema JSON file path (for lambda-function-arn type) [non-interactive]'
272290 )
273- . option ( '--schema-s3-account <id>' , 'S3 bucket owner account ID (for cross-account access)' )
274- . option ( '--lambda-arn <arn>' , 'Lambda function ARN (required for lambda-function-arn type)' )
275- . option ( '--tool-schema-file <path>' , 'Path to tool schema JSON file (required for lambda-function-arn type)' )
276- . option ( '--json' , 'Output as JSON' )
291+ . option ( '--json' , 'Output as JSON [non-interactive]' )
277292 . action ( async ( rawOptions : Record < string , string | boolean | undefined > ) => {
278293 // Commander camelCases --outbound-auth to outboundAuth, but our types use outboundAuthType
279294 if ( rawOptions . outboundAuth && ! rawOptions . outboundAuthType ) {
@@ -464,9 +479,9 @@ export class GatewayTargetPrimitive extends BasePrimitive<AddGatewayTargetOption
464479 removeCmd
465480 . command ( 'gateway-target' )
466481 . description ( 'Remove a gateway target from the project' )
467- . option ( '--name <name>' , 'Name of resource to remove' )
468- . option ( '--force' , 'Skip confirmation prompt' )
469- . option ( '--json' , 'Output as JSON' )
482+ . option ( '--name <name>' , 'Name of resource to remove [non-interactive] ' )
483+ . option ( '--force' , 'Skip confirmation prompt [non-interactive] ' )
484+ . option ( '--json' , 'Output as JSON [non-interactive] ' )
470485 . action ( async ( cliOptions : { name ?: string ; force ?: boolean ; json ?: boolean } ) => {
471486 try {
472487 if ( ! findConfigRoot ( ) ) {
0 commit comments