Class McpServerTargetConfiguration
(experimental) Configuration for MCP Server-based targets.
Implements
Namespace: Amazon.CDK.AWS.Bedrock.Agentcore.Alpha
Assembly: Amazon.CDK.AWS.Bedrock.Agentcore.Alpha.dll
Syntax (csharp)
public class McpServerTargetConfiguration : McpTargetConfiguration, ITargetConfiguration
Syntax (vb)
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: Experimental
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) | (experimental) Configuration for MCP Server-based targets. |
Properties
| Endpoint | (experimental) The HTTPS endpoint URL of the MCP server. |
| TargetType | (experimental) The target type. |
Methods
| Bind(Construct, IGateway) | (experimental) Binds this configuration to a construct scope No additional permissions are needed for MCP server targets. |
| Create(string) | (experimental) Create an MCP server target configuration. |
| RenderMcpConfiguration() | (experimental) Renders the MCP-specific configuration. |
Constructors
McpServerTargetConfiguration(string)
(experimental) Configuration for MCP Server-based targets.
public McpServerTargetConfiguration(string endpoint)
Parameters
- endpoint string
Remarks
Stability: Experimental
Properties
Endpoint
(experimental) The HTTPS endpoint URL of the MCP server.
public virtual string Endpoint { get; }
Property Value
Remarks
Stability: Experimental
TargetType
(experimental) The target type.
public override McpTargetType TargetType { get; }
Property Value
Overrides
Remarks
Stability: Experimental
Methods
Bind(Construct, IGateway)
(experimental) Binds this configuration to a construct scope No additional permissions are needed for MCP server targets.
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: Experimental
Create(string)
(experimental) Create an MCP server target configuration.
public static McpServerTargetConfiguration Create(string endpoint)
Parameters
- endpoint string
The HTTPS endpoint URL of the MCP server.
Returns
A new McpServerTargetConfiguration instance
Remarks
Stability: Experimental
RenderMcpConfiguration()
(experimental) Renders the MCP-specific configuration.
protected override object RenderMcpConfiguration()
Returns
Overrides
Remarks
Stability: Experimental