# MCPServerDetailsProperty

MCP server configuration.

- Source: Generated code
- Type last changed: v2.241.0 · 2 Mar 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_devopsagent as devopsagent } from 'aws-cdk-lib';

declare const exchangeParameters: any;
const mCPServerDetailsProperty: devopsagent.CfnService.MCPServerDetailsProperty = {
  authorizationConfig: {
    apiKey: {
      apiKeyHeader: 'apiKeyHeader',
      apiKeyName: 'apiKeyName',
      apiKeyValue: 'apiKeyValue',
    },
    bearerToken: {
      tokenName: 'tokenName',
      tokenValue: 'tokenValue',

      // the properties below are optional
      authorizationHeader: 'authorizationHeader',
    },
    oAuthClientCredentials: {
      clientId: 'clientId',
      clientSecret: 'clientSecret',
      exchangeUrl: 'exchangeUrl',

      // the properties below are optional
      clientName: 'clientName',
      exchangeParameters: exchangeParameters,
      scopes: ['scopes'],
    },
  },
  endpoint: 'endpoint',
  name: 'name',

  // the properties below are optional
  description: 'description',
};
```

## Properties

- `authorizationConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnService.MCPServerAuthorizationConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_devopsagent.CfnService.MCPServerAuthorizationConfigProperty.html) (required) — MCP server authorization configuration.

- `description`: string — Optional description for the MCP server.

- `endpoint`: string (required) — MCP server endpoint URL.

- `name`: string (required) — MCP server name.
