Description
AWS::BedrockAgentCore::GatewayTarget.TargetConfiguration.Mcp.ApiGateway.ApiGatewayToolConfiguration exposes two arrays customers use to control which tools are generated from an upstream API Gateway target:
ToolFilters — array of ApiGatewayToolFilter (FilterPath + Methods) — restricts which routes become tools.
ToolOverrides — array of ApiGatewayToolOverride — explicit tool definitions with custom names/descriptions/method/path overrides.
Source: ApiGatewayToolConfiguration CFN docs.
CLI status today (verified in this codebase):
- The schema in
src/schema/schemas/mcp.ts:72–86 defines both ApiGatewayToolFilterSchema and ApiGatewayToolOverrideSchema.
- The L3 construct (
@aws/agentcore-cdk — src/cdk/constructs/components/mcp/Gateway.ts:324–336) passes both through to CFN.
agentcore add gateway-target exposes --tool-filter-path and --tool-filter-methods (single filter only; see src/cli/commands/add/types.ts:83–84 and validate.ts:503–506).
- There is no CLI flag for
toolOverrides — customers can only set them by hand-editing agentcore.json or by importing from another project.
- The TUI does not surface either filters or overrides as a first-class step.
Acceptance Criteria
Additional Context
- CFN support: YES — both
ToolFilters and ToolOverrides are in CFN.
- L3 surface: already complete — this issue is purely CLI/TUI.
- Existing import path covers them (
src/cli/commands/import/import-gateway.ts:76–82); reuse the mapping helper for the new add flow.
- Existing single-filter flag pair:
--tool-filter-path, --tool-filter-methods — needs to become repeatable.
Description
AWS::BedrockAgentCore::GatewayTarget.TargetConfiguration.Mcp.ApiGateway.ApiGatewayToolConfigurationexposes two arrays customers use to control which tools are generated from an upstream API Gateway target:ToolFilters— array ofApiGatewayToolFilter(FilterPath+Methods) — restricts which routes become tools.ToolOverrides— array ofApiGatewayToolOverride— explicit tool definitions with custom names/descriptions/method/path overrides.Source: ApiGatewayToolConfiguration CFN docs.
CLI status today (verified in this codebase):
src/schema/schemas/mcp.ts:72–86defines bothApiGatewayToolFilterSchemaandApiGatewayToolOverrideSchema.@aws/agentcore-cdk—src/cdk/constructs/components/mcp/Gateway.ts:324–336) passes both through to CFN.agentcore add gateway-targetexposes--tool-filter-pathand--tool-filter-methods(single filter only; seesrc/cli/commands/add/types.ts:83–84andvalidate.ts:503–506).toolOverrides— customers can only set them by hand-editingagentcore.jsonor by importing from another project.Acceptance Criteria
--tool-filter-path/--tool-filter-methodspairs on a single command (today only one filter is accepted).toolOverrides— either repeatable--tool-overrideJSON args or a--tool-overrides-file <path>flag pointing to a JSON file.AddGatewayTargetFlow.tsxTUI, gated behind an "Advanced API Gateway options" sub-screen.agentcore deploy --diffif possible.Additional Context
ToolFiltersandToolOverridesare in CFN.src/cli/commands/import/import-gateway.ts:76–82); reuse the mapping helper for the newaddflow.--tool-filter-path,--tool-filter-methods— needs to become repeatable.