Skip to content
v2.275.0

Experimental

@aws-cdk/aws-bedrock-agentcore-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

McpServerTargetConfiguration Class ​

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 ​

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 mcpServerTargetConfiguration = new bedrock_agentcore_alpha.McpServerTargetConfiguration('endpoint');
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_server_target_configuration = bedrock_agentcore_alpha.McpServerTargetConfiguration("endpoint")
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.*;

McpServerTargetConfiguration mcpServerTargetConfiguration = new McpServerTargetConfiguration("endpoint");
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 mcpServerTargetConfiguration = new McpServerTargetConfiguration("endpoint");
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 bedrock_agentcore_alpha "github.com/aws/aws-cdk-go/awsbedrockagentcorealpha"

mcpServerTargetConfiguration := bedrock_agentcore_alpha.NewMcpServerTargetConfiguration(jsii.String("endpoint"))

Initializer ​

ts
new McpServerTargetConfiguration(endpoint: string)
python
McpServerTargetConfiguration(endpoint: str)
java
new McpServerTargetConfiguration(String endpoint)
csharp
new McpServerTargetConfiguration(string endpoint)
go
NewMcpServerTargetConfiguration(Endpoint *string)

Properties ​

endpointstringendpointstrendpointStringEndpointstringEndpoint*string#
The HTTPS endpoint URL of the MCP server.
targetTypeMcpTargetTypetarget_typeMcpTargetTypetargetTypeMcpTargetTypeTargetTypeMcpTargetTypeTargetTypeMcpTargetType#
The target type.

Methods ​

bind(_scope: Construct, _gateway: IGateway): TargetConfigurationConfigdef bind(self, _scope: Construct, _gateway: IGateway) -> TargetConfigurationConfigpublic TargetConfigurationConfig bind(Construct _scope, IGateway _gateway)public TargetConfigurationConfig Bind(Construct _scope, IGateway _gateway)func Bind(_scope Construct, _gateway IGateway) TargetConfigurationConfig#
Binds this configuration to a construct scope No additional permissions are needed for MCP server targets.
2 parameters

Parameters

  • _scope_scope_scope_scope_scope — The construct scope.
  • _gateway_gateway_gateway_gateway_gateway — The gateway that will use this target.
create(endpoint: string): McpServerTargetConfiguration // chainable@staticmethod def create(endpoint: str) -> McpServerTargetConfigurationpublic static McpServerTargetConfiguration create(String endpoint)public static McpServerTargetConfiguration Create(string endpoint)func Create(Endpoint *string) McpServerTargetConfigurationstatic#
Create an MCP server target configuration.
1 parameter · returns

Parameters

  • endpointendpointendpointendpointEndpoint — The HTTPS endpoint URL of the MCP server.

Returns: A new McpServerTargetConfiguration instance