# McpProtocolConfiguration

MCP (Model Context Protocol) configuration implementation.

Implements: [IGatewayProtocolConfig](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.IGatewayProtocolConfig.html)

- Source: [`lib/gateway/protocol.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-bedrock-agentcore-alpha/lib/gateway/protocol.ts#L122)

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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 }
});
```

Golang:

```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

TypeScript:

```ts
new McpProtocolConfiguration(props?: McpConfiguration)
```

Python:

```python
McpProtocolConfiguration(props: typing.Optional[McpConfiguration] = None)
```

Java:

```java
new McpProtocolConfiguration(McpConfiguration props)
```

C# / .NET:

```csharp
new McpProtocolConfiguration(McpConfiguration? props = null)
```

Golang:

```go
NewMcpProtocolConfiguration(Props McpConfiguration)
```

## Properties

- `instructions`: string — Instructions for using the MCP gateway.

- `protocolType`: string — The protocol type.

- `searchType`: string — The search type for the MCP gateway.

- `supportedVersions`: [MCPProtocolVersion](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.MCPProtocolVersion.html)[] — The supported MCP protocol versions.
