class McpServerTargetConfiguration
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.BedrockAgentCore.McpServerTargetConfiguration |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrockagentcore#McpServerTargetConfiguration |
Java | software.amazon.awscdk.services.bedrockagentcore.McpServerTargetConfiguration |
Python | aws_cdk.aws_bedrockagentcore.McpServerTargetConfiguration |
TypeScript (source) | aws-cdk-lib » aws_bedrockagentcore » McpServerTargetConfiguration |
Implements
ITarget
Extends
Mcp
Configuration for MCP Server-based targets.
MCP (Model Context Protocol) servers provide tools, data access, and custom functions for AI agents. When you configure an MCP server as a gateway target, the gateway automatically discovers and indexes available tools through synchronization.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const mcpServerTargetConfiguration = new bedrockagentcore.McpServerTargetConfiguration('endpoint');
Initializer
new McpServerTargetConfiguration(endpoint: string)
Parameters
- endpoint
string
Properties
| Name | Type | Description |
|---|---|---|
| endpoint | string | The HTTPS endpoint URL of the MCP server. |
| target | Mcp | The target type. |
endpoint
Type:
string
The HTTPS endpoint URL of the MCP server.
targetType
Type:
Mcp
The target type.
Methods
| Name | Description |
|---|---|
| bind(_scope, _gateway) | Binds this configuration to a construct scope No additional permissions are needed for MCP server targets. |
| protected render | Renders the MCP-specific configuration. |
| static create(endpoint) | Create an MCP server target configuration. |
bind(_scope, _gateway)
public bind(_scope: Construct, _gateway: IGateway): TargetConfigurationConfig
Parameters
Returns
Binds this configuration to a construct scope No additional permissions are needed for MCP server targets.
protected renderMcpConfiguration()
protected renderMcpConfiguration(): any
Returns
any
Renders the MCP-specific configuration.
static create(endpoint)
public static create(endpoint: string): McpServerTargetConfiguration
Parameters
- endpoint
string— The HTTPS endpoint URL of the MCP server.
Returns
Create an MCP server target configuration.

.NET
Go
Java
Python
TypeScript (