# 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](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.McpTargetConfiguration.html) › McpServerTargetConfiguration
Implements: [ITargetConfiguration](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.ITargetConfiguration.html)
Obtainable from: McpServerTargetConfiguration.create

- Source: [`lib/gateway/targets/target-configuration.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-bedrock-agentcore-alpha/lib/gateway/targets/target-configuration.ts#L339)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as bedrock_agentcore_alpha from '@aws-cdk/aws-bedrock-agentcore-alpha';
const mcpServerTargetConfiguration = new bedrock_agentcore_alpha.McpServerTargetConfiguration('endpoint');
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_bedrock_agentcore_alpha as bedrock_agentcore_alpha

mcp_server_target_configuration = bedrock_agentcore_alpha.McpServerTargetConfiguration("endpoint")
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.agentcore.alpha.*;

McpServerTargetConfiguration mcpServerTargetConfiguration = new McpServerTargetConfiguration("endpoint");
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.Bedrock.Agentcore.Alpha
// 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");
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import bedrock_agentcore_alpha "github.com/aws/aws-cdk-go/awsbedrockagentcorealpha"

mcpServerTargetConfiguration := bedrock_agentcore_alpha.NewMcpServerTargetConfiguration(jsii.String("endpoint"))
```

## Initializer

TypeScript:

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

Python:

```python
McpServerTargetConfiguration(endpoint: str)
```

Java:

```java
new McpServerTargetConfiguration(String endpoint)
```

C# / .NET:

```csharp
new McpServerTargetConfiguration(string endpoint)
```

Golang:

```go
NewMcpServerTargetConfiguration(Endpoint *string)
```

## Properties

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

- `targetType`: [McpTargetType](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.McpTargetType.html) — 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
