class McpServerTargetConfiguration
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.Agentcore.Alpha.McpServerTargetConfiguration |
Go | github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2#McpServerTargetConfiguration |
Java | software.amazon.awscdk.services.bedrock.agentcore.alpha.McpServerTargetConfiguration |
Python | aws_cdk.aws_bedrock_agentcore_alpha.McpServerTargetConfiguration |
TypeScript (source) | @aws-cdk/aws-bedrock-agentcore-alpha ยป 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 * as bedrock_agentcore_alpha from '@aws-cdk/aws-bedrock-agentcore-alpha';
const mcpServerTargetConfiguration = new bedrock_agentcore_alpha.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
- _scope
Constructโ The construct scope. - _gateway
IGatewayโ The gateway that will use this target.
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 (