Skip to content
v2.278.0

GatewayTargetMcpServerProps Struct ​

Properties for creating an MCP Server-based Gateway Target.

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';

declare const credentialProviderConfig: bedrock_agentcore_alpha.ICredentialProviderConfig;
declare const gateway: bedrock_agentcore_alpha.Gateway;
const gatewayTargetMcpServerProps: bedrock_agentcore_alpha.GatewayTargetMcpServerProps = {
  credentialProviderConfigurations: [credentialProviderConfig],
  endpoint: 'endpoint',
  gateway: gateway,

  // the properties below are optional
  description: 'description',
  gatewayTargetName: 'gatewayTargetName',
};
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

# credential_provider_config: bedrock_agentcore_alpha.ICredentialProviderConfig
# gateway: bedrock_agentcore_alpha.Gateway

gateway_target_mcp_server_props = bedrock_agentcore_alpha.GatewayTargetMcpServerProps(
    credential_provider_configurations=[credential_provider_config],
    endpoint="endpoint",
    gateway=gateway,

    # the properties below are optional
    description="description",
    gateway_target_name="gatewayTargetName"
)
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.*;

ICredentialProviderConfig credentialProviderConfig;
Gateway gateway;

GatewayTargetMcpServerProps gatewayTargetMcpServerProps = GatewayTargetMcpServerProps.builder()
        .credentialProviderConfigurations(List.of(credentialProviderConfig))
        .endpoint("endpoint")
        .gateway(gateway)

        // the properties below are optional
        .description("description")
        .gatewayTargetName("gatewayTargetName")
        .build();
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;

ICredentialProviderConfig credentialProviderConfig;
Gateway gateway;

var gatewayTargetMcpServerProps = new GatewayTargetMcpServerProps {
    CredentialProviderConfigurations = new [] { credentialProviderConfig },
    Endpoint = "endpoint",
    Gateway = gateway,

    // the properties below are optional
    Description = "description",
    GatewayTargetName = "gatewayTargetName"
};
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"

var credentialProviderConfig ICredentialProviderConfig
var gateway Gateway

gatewayTargetMcpServerProps := &GatewayTargetMcpServerProps{
	CredentialProviderConfigurations: []ICredentialProviderConfig{
		credentialProviderConfig,
	},
	Endpoint: jsii.String("endpoint"),
	Gateway: gateway,

	// the properties below are optional
	Description: jsii.String("description"),
	GatewayTargetName: jsii.String("gatewayTargetName"),
}

Properties ​

credentialProviderConfigurationsICredentialProviderConfig[]credential_provider_configurationstyping.List[ICredentialProviderConfig]credentialProviderConfigurationsList<ICredentialProviderConfig>CredentialProviderConfigurationsICredentialProviderConfig[]CredentialProviderConfigurations*[]ICredentialProviderConfig required #
Credential providers for authentication.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
Optional description for the gateway target The description can have up to 200 characters.

Default: No description

endpointstringendpointstrendpointStringEndpointstringEndpoint*string required #
The HTTPS endpoint URL of the MCP server.

The endpoint must:

  • Use HTTPS protocol
  • Be properly URL-encoded
  • Point to an MCP server that implements tool capabilities
gatewayIGatewaygatewayIGatewaygatewayIGatewayGatewayIGatewayGatewayIGateway required #
The gateway this target belongs to.
gatewayTargetNameoptionalstringgateway_target_nameoptionalstrgatewayTargetNameoptionalStringGatewayTargetNameoptionalstringGatewayTargetNameoptional*string #
The name of the gateway target The name must be unique within the gateway Pattern: ^([0-9a-zA-Z][-]?){1,100}$.

Default: auto generate