Class McpProtocolConfiguration

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.bedrockagentcore.McpProtocolConfiguration
All Implemented Interfaces:
IGatewayProtocolConfig, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.129.0 (build eaca441)", date="2026-05-19T08:18:44.459Z") @Stability(Stable) public class McpProtocolConfiguration extends software.amazon.jsii.JsiiObject implements IGatewayProtocolConfig
MCP (Model Context Protocol) configuration implementation.

Example:

 // Create a KMS key for encryption
 Key encryptionKey = Key.Builder.create(this, "GatewayEncryptionKey")
         .enableKeyRotation(true)
         .description("KMS key for gateway encryption")
         .build();
 // Create gateway with KMS encryption
 Gateway gateway = Gateway.Builder.create(this, "MyGateway")
         .gatewayName("my-encrypted-gateway")
         .description("Gateway with KMS encryption")
         .protocolConfiguration(McpProtocolConfiguration.Builder.create()
                 .instructions("Use this gateway to connect to external MCP tools")
                 .searchType(McpGatewaySearchType.SEMANTIC)
                 .supportedVersions(List.of(MCPProtocolVersion.MCP_2025_03_26))
                 .build())
         .authorizerConfiguration(GatewayAuthorizer.usingCustomJwt(CustomJwtConfiguration.builder()
                 .discoveryUrl("https://auth.example.com/.well-known/openid-configuration")
                 .allowedAudience(List.of("my-app"))
                 .allowedClients(List.of("my-client-id"))
                 .allowedScopes(List.of("read", "write"))
                 .build()))
         .kmsKey(encryptionKey)
         .exceptionLevel(GatewayExceptionLevel.DEBUG)
         .build();
 
  • Constructor Details

    • McpProtocolConfiguration

      protected McpProtocolConfiguration(software.amazon.jsii.JsiiObjectRef objRef)
    • McpProtocolConfiguration

      protected McpProtocolConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • McpProtocolConfiguration

      @Stability(Stable) public McpProtocolConfiguration(@Nullable McpConfiguration props)
      Parameters:
      props -
    • McpProtocolConfiguration

      @Stability(Stable) public McpProtocolConfiguration()
  • Method Details

    • getProtocolType

      @Stability(Stable) @NotNull public String getProtocolType()
      The protocol type.
      Specified by:
      getProtocolType in interface IGatewayProtocolConfig
    • getInstructions

      @Stability(Stable) @Nullable public String getInstructions()
      Instructions for using the MCP gateway.
    • getSearchType

      @Stability(Stable) @Nullable public String getSearchType()
      The search type for the MCP gateway.
    • getSupportedVersions

      @Stability(Stable) @Nullable public List<MCPProtocolVersion> getSupportedVersions()
      The supported MCP protocol versions.