Class McpServerTargetConfiguration
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.bedrockagentcore.McpTargetConfiguration
software.amazon.awscdk.services.bedrockagentcore.McpServerTargetConfiguration
- All Implemented Interfaces:
ITargetConfiguration,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.129.0 (build eaca441)",
date="2026-05-19T08:18:44.460Z")
@Stability(Stable)
public class McpServerTargetConfiguration
extends McpTargetConfiguration
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:
// 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");
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.bedrockagentcore.ITargetConfiguration
ITargetConfiguration.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionMcpServerTargetConfiguration(String endpoint) protectedMcpServerTargetConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedMcpServerTargetConfiguration(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionBinds this configuration to a construct scope No additional permissions are needed for MCP server targets.static McpServerTargetConfigurationCreate an MCP server target configuration.The HTTPS endpoint URL of the MCP server.The target type.protected ObjectRenders the MCP-specific configuration.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
McpServerTargetConfiguration
protected McpServerTargetConfiguration(software.amazon.jsii.JsiiObjectRef objRef) -
McpServerTargetConfiguration
protected McpServerTargetConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
McpServerTargetConfiguration
- Parameters:
endpoint- This parameter is required.
-
-
Method Details
-
create
@Stability(Stable) @NotNull public static McpServerTargetConfiguration create(@NotNull String endpoint) Create an MCP server target configuration.- Parameters:
endpoint- The HTTPS endpoint URL of the MCP server. This parameter is required.- Returns:
- A new McpServerTargetConfiguration instance
-
bind
@Stability(Stable) @NotNull public TargetConfigurationConfig bind(@NotNull software.constructs.Construct _scope, @NotNull IGateway _gateway) Binds this configuration to a construct scope No additional permissions are needed for MCP server targets.- Specified by:
bindin interfaceITargetConfiguration- Specified by:
bindin classMcpTargetConfiguration- Parameters:
_scope- The construct scope. This parameter is required._gateway- The gateway that will use this target. This parameter is required.
-
renderMcpConfiguration
Renders the MCP-specific configuration.- Specified by:
renderMcpConfigurationin classMcpTargetConfiguration
-
getEndpoint
The HTTPS endpoint URL of the MCP server. -
getTargetType
The target type.- Specified by:
getTargetTypein interfaceITargetConfiguration- Specified by:
getTargetTypein classMcpTargetConfiguration
-