McpConfiguration

class aws_cdk.aws_bedrock_agentcore_alpha.McpConfiguration(*, instructions=None, search_type=None, supported_versions=None)

Bases: object

(experimental) MCP protocol configuration The configuration for the Model Context Protocol (MCP).

This protocol enables communication between Amazon Bedrock Agent and external tools.

Parameters:
  • instructions (Optional[str]) – (experimental) The instructions for using the Model Context Protocol gateway. These instructions provide guidance on how to interact with the gateway. Default: - No instructions provided

  • search_type (Optional[McpGatewaySearchType]) – (experimental) The search type for the Model Context Protocol gateway. This field specifies how the gateway handles search operations. Default: - No search type specified

  • supported_versions (Optional[Sequence[MCPProtocolVersion]]) – (experimental) The supported versions of the Model Context Protocol. This field specifies which versions of the protocol the gateway can use. Default: - No specific versions specified

Stability:

experimental

ExampleMetadata:

fixture=_generated

Example:

# 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_configuration = bedrock_agentcore_alpha.McpConfiguration(
    instructions="instructions",
    search_type=bedrock_agentcore_alpha.McpGatewaySearchType.SEMANTIC,
    supported_versions=[bedrock_agentcore_alpha.MCPProtocolVersion.MCP_2025_06_18]
)

Attributes

instructions

(experimental) The instructions for using the Model Context Protocol gateway.

These instructions provide guidance on how to interact with the gateway.

Default:
  • No instructions provided

Stability:

experimental

search_type

(experimental) The search type for the Model Context Protocol gateway.

This field specifies how the gateway handles search operations.

Default:
  • No search type specified

Stability:

experimental

supported_versions

(experimental) The supported versions of the Model Context Protocol.

This field specifies which versions of the protocol the gateway can use.

Default:
  • No specific versions specified

Stability:

experimental