Skip to content

Bedrock AgentCore Control  >  Structures  >  MCPGatewayConfiguration

MCPGatewayConfiguration

Structure Class

MCPGatewayConfiguration dataclass

The configuration for a Model Context Protocol (MCP) gateway. This structure defines how the gateway implements the MCP protocol.

Attributes

disable_mcp_list_tools_pagination class-attribute instance-attribute
disable_mcp_list_tools_pagination: bool | None = None

Specifies whether pagination is disabled for the Model Context Protocol (MCP) tools/list operation. When set to true, the gateway returns the complete list of tools in a single response without a pagination cursor. When set to false or omitted, the gateway returns tools in paginated responses.

instructions class-attribute instance-attribute
instructions: str | None = field(repr=False, default=None)

The instructions for using the Model Context Protocol gateway. These instructions provide guidance on how to interact with the gateway.

search_type class-attribute instance-attribute
search_type: str | None = None

The search type for the Model Context Protocol gateway. This field specifies how the gateway handles search operations.

session_configuration class-attribute instance-attribute
session_configuration: SessionConfiguration | None = None

The session configuration for the MCP gateway. This configuration controls session behavior, including session timeout settings.

streaming_configuration class-attribute instance-attribute
streaming_configuration: StreamingConfiguration | None = None

The streaming configuration for the MCP gateway. This configuration controls whether response streaming is enabled for the gateway.

supported_versions class-attribute instance-attribute
supported_versions: list[str] | None = None

The supported versions of the Model Context Protocol. This field specifies which versions of the protocol the gateway can use.