Experimental
@aws-cdk/aws-bedrock-agentcore-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
McpProtocolConfiguration Class
MCP (Model Context Protocol) configuration implementation.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as bedrock_agentcore_alpha from '@aws-cdk/aws-bedrock-agentcore-alpha';
const mcpProtocolConfiguration = new bedrock_agentcore_alpha.McpProtocolConfiguration(/* all optional props */ {
instructions: 'instructions',
searchType: bedrock_agentcore_alpha.McpGatewaySearchType.SEMANTIC,
supportedVersions: [bedrock_agentcore_alpha.MCPProtocolVersion.MCP_2025_06_18],
});
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_bedrock_agentcore_alpha as bedrock_agentcore_alpha
mcp_protocol_configuration = bedrock_agentcore_alpha.McpProtocolConfiguration(
instructions="instructions",
search_type=bedrock_agentcore_alpha.McpGatewaySearchType.SEMANTIC,
supported_versions=[bedrock_agentcore_alpha.MCPProtocolVersion.MCP_2025_06_18]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.agentcore.alpha.*;
McpProtocolConfiguration mcpProtocolConfiguration = McpProtocolConfiguration.Builder.create()
.instructions("instructions")
.searchType(McpGatewaySearchType.SEMANTIC)
.supportedVersions(List.of(MCPProtocolVersion.MCP_2025_06_18))
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.Bedrock.Agentcore.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock.Agentcore.Alpha;
var mcpProtocolConfiguration = new McpProtocolConfiguration(new McpConfiguration {
Instructions = "instructions",
SearchType = McpGatewaySearchType.SEMANTIC,
SupportedVersions = new [] { MCPProtocolVersion.MCP_2025_06_18 }
});
go
// Install: go get github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awsbedrockagentcorealpha"
mcpProtocolConfiguration := bedrock_agentcore_alpha.NewMcpProtocolConfiguration(&McpConfiguration{
Instructions: jsii.String("instructions"),
SearchType: bedrock_agentcore_alpha.McpGatewaySearchType_SEMANTIC,
SupportedVersions: []MCPProtocolVersion{
bedrock_agentcore_alpha.MCPProtocolVersion_MCP_2025_06_18,
},
})
Initializer
ts
new McpProtocolConfiguration(props?: McpConfiguration)
python
McpProtocolConfiguration(props: typing.Optional[McpConfiguration] = None)
java
new McpProtocolConfiguration(McpConfiguration props)
csharp
new McpProtocolConfiguration(McpConfiguration? props = null)
go
NewMcpProtocolConfiguration(Props McpConfiguration)
Properties
instructionsmay be undefinedstringinstructionsmay be undefinedstrinstructionsmay be undefinedStringInstructionsmay be undefinedstringInstructionsmay be undefined*string#Instructions for using the MCP gateway.
The protocol type.
searchTypemay be undefinedstringsearch_typemay be undefinedstrsearchTypemay be undefinedStringSearchTypemay be undefinedstringSearchTypemay be undefined*string#The search type for the MCP gateway.
supportedVersionsmay be undefinedMCPProtocolVersion[]supported_versionsmay be undefinedtyping.List[MCPProtocolVersion]supportedVersionsmay be undefinedList<MCPProtocolVersion>SupportedVersionsmay be undefinedMCPProtocolVersion[]SupportedVersionsmay be undefined*[]MCPProtocolVersion#The supported MCP protocol versions.