class MCPProtocolVersion
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.BedrockAgentCore.MCPProtocolVersion |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrockagentcore#MCPProtocolVersion |
Java | software.amazon.awscdk.services.bedrockagentcore.MCPProtocolVersion |
Python | aws_cdk.aws_bedrockagentcore.MCPProtocolVersion |
TypeScript (source) | aws-cdk-lib » aws_bedrockagentcore » MCPProtocolVersion |
MCP protocol versions.
The Model Context Protocol uses string-based version identifiers following the format YYYY-MM-DD, to indicate the last date backwards incompatible changes were made. Versions are available at https://github.com/modelcontextprotocol/modelcontextprotocol/releases
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"],
allowedScopes: ["read", "write"],
}),
kmsKey: encryptionKey,
exceptionLevel: agentcore.GatewayExceptionLevel.DEBUG,
});
Properties
| Name | Type | Description |
|---|---|---|
| value | string | The version string value. |
| static MCP_2025_03_26 | MCPProtocol | MCP version 2025-03-26. |
| static MCP_2025_06_18 | MCPProtocol | The latest version of the MCP protocol. |
value
Type:
string
The version string value.
static MCP_2025_03_26
Type:
MCPProtocol
MCP version 2025-03-26.
static MCP_2025_06_18
Type:
MCPProtocol
The latest version of the MCP protocol.
Methods
| Name | Description |
|---|---|
| to | Returns the string value. |
| static of(value) | Use a custom MCP protocol version not yet defined in this class. |
toString()
public toString(): string
Returns
string
Returns the string value.
static of(value)
public static of(value: string): MCPProtocolVersion
Parameters
- value
string— The version string (YYYY-MM-DD format).
Returns
Use a custom MCP protocol version not yet defined in this class.

.NET
Go
Java
Python
TypeScript (