Class McpServerTargetConfiguration
(deprecated) Configuration for MCP Server-based targets.
Implements
Namespace: Amazon.CDK.AWS.Bedrock.Agentcore.Alpha
Assembly: Amazon.CDK.AWS.Bedrock.Agentcore.Alpha.dll
Syntax (csharp)
[Obsolete("Use the equivalent construct from `aws-cdk-lib/aws-bedrockagentcore` instead.")]
public class McpServerTargetConfiguration : McpTargetConfiguration, ITargetConfiguration
Syntax (vb)
<Obsolete("Use the equivalent construct from `aws-cdk-lib/aws-bedrockagentcore` instead.")>
Public Class McpServerTargetConfiguration Inherits McpTargetConfiguration Implements ITargetConfiguration
Remarks
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.
Stability: Deprecated
ExampleMetadata: fixture=_generated
Examples
// 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");
Synopsis
Constructors
| McpServerTargetConfiguration(string) | (deprecated) Configuration for MCP Server-based targets. |
Properties
| Endpoint | (deprecated) The HTTPS endpoint URL of the MCP server. |
| TargetType | (deprecated) The target type. |
Methods
| Bind(Construct, IGateway) | (deprecated) Binds this configuration to a construct scope No additional permissions are needed for MCP server targets. |
| Create(string) | (deprecated) Create an MCP server target configuration. |
| RenderMcpConfiguration() | (deprecated) Renders the MCP-specific configuration. |
Constructors
McpServerTargetConfiguration(string)
(deprecated) Configuration for MCP Server-based targets.
[Obsolete]
public McpServerTargetConfiguration(string endpoint)
Parameters
- endpoint string
Remarks
Stability: Deprecated
Properties
Endpoint
(deprecated) The HTTPS endpoint URL of the MCP server.
[Obsolete]
public virtual string Endpoint { get; }
Property Value
Remarks
Stability: Deprecated
TargetType
(deprecated) The target type.
[Obsolete]
public override McpTargetType TargetType { get; }
Property Value
Overrides
Remarks
Stability: Deprecated
Methods
Bind(Construct, IGateway)
(deprecated) Binds this configuration to a construct scope No additional permissions are needed for MCP server targets.
[Obsolete]
public override ITargetConfigurationConfig Bind(Construct scope, IGateway gateway)
Parameters
- scope Construct
The construct scope.
- gateway IGateway
The gateway that will use this target.
Returns
Overrides
Remarks
Stability: Deprecated
Create(string)
(deprecated) Create an MCP server target configuration.
[Obsolete]
public static McpServerTargetConfiguration Create(string endpoint)
Parameters
- endpoint string
The HTTPS endpoint URL of the MCP server.
Returns
A new McpServerTargetConfiguration instance
Remarks
Stability: Deprecated
RenderMcpConfiguration()
(deprecated) Renders the MCP-specific configuration.
[Obsolete]
protected override object RenderMcpConfiguration()
Returns
Overrides
Remarks
Stability: Deprecated