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 { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const mcpServerTargetConfiguration = new bedrockagentcore.McpServerTargetConfiguration('endpoint');
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrockagentcore as bedrockagentcore
mcp_server_target_configuration = bedrockagentcore.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.bedrockagentcore.*;
McpServerTargetConfiguration mcpServerTargetConfiguration = new McpServerTargetConfiguration("endpoint");
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.BedrockAgentCore;
var mcpServerTargetConfiguration = new McpServerTargetConfiguration("endpoint");
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
mcpServerTargetConfiguration := awscdk.Aws_bedrockagentcore.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
The HTTPS endpoint URL of the MCP server.
targetTypeMcpTargetTypetarget_typeMcpTargetTypetargetTypeMcpTargetTypeTargetTypeMcpTargetTypeTargetTypeMcpTargetTyperequired#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