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");
 
  • Constructor Details

    • McpServerTargetConfiguration

      protected McpServerTargetConfiguration(software.amazon.jsii.JsiiObjectRef objRef)
    • McpServerTargetConfiguration

      protected McpServerTargetConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • McpServerTargetConfiguration

      @Stability(Stable) public McpServerTargetConfiguration(@NotNull String endpoint)
      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:
      bind in interface ITargetConfiguration
      Specified by:
      bind in class McpTargetConfiguration
      Parameters:
      _scope - The construct scope. This parameter is required.
      _gateway - The gateway that will use this target. This parameter is required.
    • renderMcpConfiguration

      @Stability(Stable) @NotNull protected Object renderMcpConfiguration()
      Renders the MCP-specific configuration.
      Specified by:
      renderMcpConfiguration in class McpTargetConfiguration
    • getEndpoint

      @Stability(Stable) @NotNull public String getEndpoint()
      The HTTPS endpoint URL of the MCP server.
    • getTargetType

      @Stability(Stable) @NotNull public McpTargetType getTargetType()
      The target type.
      Specified by:
      getTargetType in interface ITargetConfiguration
      Specified by:
      getTargetType in class McpTargetConfiguration