# McpServerTargetConfiguration

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.

Extends: McpTargetConfiguration › McpServerTargetConfiguration
Implements: ITargetConfiguration

- Source: [`aws-bedrockagentcore/lib/gateway/targets/target-configuration.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-bedrockagentcore/lib/gateway/targets/target-configuration.ts#L327)
- Type last changed: v2.255.0 · 19 May 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const mcpServerTargetConfiguration = new bedrockagentcore.McpServerTargetConfiguration('endpoint');
```

## Initializer

```ts
new McpServerTargetConfiguration(endpoint: string)
```

## Properties

- `endpoint`: string (required) — The HTTPS endpoint URL of the MCP server.

- `targetType`: [McpTargetType](/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.McpTargetType.html) (required) — The target type.

## Methods

- `bind(_scope: Construct, _gateway: IGateway): TargetConfigurationConfig` — Binds this configuration to a construct scope No additional permissions are needed for MCP server targets.

  **Parameters**

  - `_scope` — The construct scope.
  - `_gateway` — The gateway that will use this target.

- `create(endpoint: string): McpServerTargetConfiguration // chainable` (static) — Create an MCP server target configuration.

  **Parameters**

  - `endpoint` — The HTTPS endpoint URL of the MCP server.

  **Returns:** A new McpServerTargetConfiguration instance
