class McpProtocolConfiguration
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.Agentcore.Alpha.McpProtocolConfiguration |
Go | github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2#McpProtocolConfiguration |
Java | software.amazon.awscdk.services.bedrock.agentcore.alpha.McpProtocolConfiguration |
Python | aws_cdk.aws_bedrock_agentcore_alpha.McpProtocolConfiguration |
TypeScript (source) | @aws-cdk/aws-bedrock-agentcore-alpha ยป McpProtocolConfiguration |
Implements
IGateway
MCP (Model Context Protocol) configuration implementation.
Example
// Create a KMS key for encryption
const encryptionKey = new kms.Key(this, "GatewayEncryptionKey", {
enableKeyRotation: true,
description: "KMS key for gateway encryption",
});
// Create gateway with KMS encryption
const gateway = new agentcore.Gateway(this, "MyGateway", {
gatewayName: "my-encrypted-gateway",
description: "Gateway with KMS encryption",
protocolConfiguration: new agentcore.McpProtocolConfiguration({
instructions: "Use this gateway to connect to external MCP tools",
searchType: agentcore.McpGatewaySearchType.SEMANTIC,
supportedVersions: [agentcore.MCPProtocolVersion.MCP_2025_03_26],
}),
authorizerConfiguration: agentcore.GatewayAuthorizer.usingCustomJwt({
discoveryUrl: "https://auth.example.com/.well-known/openid-configuration",
allowedAudience: ["my-app"],
allowedClients: ["my-client-id"],
}),
kmsKey: encryptionKey,
exceptionLevel: agentcore.GatewayExceptionLevel.DEBUG,
});
Initializer
new McpProtocolConfiguration(props?: McpConfiguration)
Parameters
- props
McpConfiguration
Properties
| Name | Type | Description |
|---|---|---|
| protocol | string | The protocol type. |
| instructions? | string | Instructions for using the MCP gateway. |
| search | string | The search type for the MCP gateway. |
| supported | MCPProtocol[] | The supported MCP protocol versions. |
protocolType
Type:
string
The protocol type.
instructions?
Type:
string
(optional)
Instructions for using the MCP gateway.
searchType?
Type:
string
(optional)
The search type for the MCP gateway.
supportedVersions?
Type:
MCPProtocol[]
(optional)
The supported MCP protocol versions.

.NET
Go
Java
Python
TypeScript (