interface AddMcpServerTargetOptions
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.Agentcore.Alpha.AddMcpServerTargetOptions |
Go | github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2#AddMcpServerTargetOptions |
Java | software.amazon.awscdk.services.bedrock.agentcore.alpha.AddMcpServerTargetOptions |
Python | aws_cdk.aws_bedrock_agentcore_alpha.AddMcpServerTargetOptions |
TypeScript (source) | @aws-cdk/aws-bedrock-agentcore-alpha ยป AddMcpServerTargetOptions |
Options for adding an MCP Server target to a gateway.
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';
declare const credentialProviderConfig: bedrock_agentcore_alpha.ICredentialProviderConfig;
const addMcpServerTargetOptions: bedrock_agentcore_alpha.AddMcpServerTargetOptions = {
credentialProviderConfigurations: [credentialProviderConfig],
endpoint: 'endpoint',
// the properties below are optional
description: 'description',
gatewayTargetName: 'gatewayTargetName',
};
Properties
| Name | Type | Description |
|---|---|---|
| credential | ICredential[] | Credential providers for authentication. |
| endpoint | string | The HTTPS endpoint URL of the MCP server. |
| description? | string | Optional description for the gateway target. |
| gateway | string | The name of the gateway target Valid characters are a-z, A-Z, 0-9, _ (underscore) and - (hyphen). |
credentialProviderConfigurations
Type:
ICredential[]
Credential providers for authentication.
MCP servers require explicit authentication configuration. OAuth2 is strongly recommended over NoAuth.
endpoint
Type:
string
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
description?
Type:
string
(optional, default: No description)
Optional description for the gateway target.
gatewayTargetName?
Type:
string
(optional, default: auto generate)
The name of the gateway target Valid characters are a-z, A-Z, 0-9, _ (underscore) and - (hyphen).

.NET
Go
Java
Python
TypeScript (