# MCPServerOAuthClientCredentialsConfigProperty

MCP server OAuth client credentials configuration.

- Source: Generated at build time
- Type last changed: v2.241.0 · 2 Mar 2026

## Example

TypeScript:

```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 mCPServerOAuthClientCredentialsConfigProperty: devopsagent.CfnService.MCPServerOAuthClientCredentialsConfigProperty = {
  clientId: 'clientId',
  clientSecret: 'clientSecret',
  exchangeUrl: 'exchangeUrl',

  // the properties below are optional
  clientName: 'clientName',
  exchangeParameters: exchangeParameters,
  scopes: ['scopes'],
};
```

Python:

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

# exchange_parameters: Any

m_cp_server_o_auth_client_credentials_config_property = devopsagent.CfnService.MCPServerOAuthClientCredentialsConfigProperty(
    client_id="clientId",
    client_secret="clientSecret",
    exchange_url="exchangeUrl",

    # the properties below are optional
    client_name="clientName",
    exchange_parameters=exchange_parameters,
    scopes=["scopes"]
)
```

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.devopsagent.*;

Object exchangeParameters;

MCPServerOAuthClientCredentialsConfigProperty mCPServerOAuthClientCredentialsConfigProperty = MCPServerOAuthClientCredentialsConfigProperty.builder()
        .clientId("clientId")
        .clientSecret("clientSecret")
        .exchangeUrl("exchangeUrl")

        // the properties below are optional
        .clientName("clientName")
        .exchangeParameters(exchangeParameters)
        .scopes(List.of("scopes"))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DevOpsAgent;

var exchangeParameters;

var mCPServerOAuthClientCredentialsConfigProperty = new MCPServerOAuthClientCredentialsConfigProperty {
    ClientId = "clientId",
    ClientSecret = "clientSecret",
    ExchangeUrl = "exchangeUrl",

    // the properties below are optional
    ClientName = "clientName",
    ExchangeParameters = exchangeParameters,
    Scopes = new [] { "scopes" }
};
```

Golang:

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

var exchangeParameters interface{}

mCPServerOAuthClientCredentialsConfigProperty := &MCPServerOAuthClientCredentialsConfigProperty{
	ClientId: jsii.String("clientId"),
	ClientSecret: jsii.String("clientSecret"),
	ExchangeUrl: jsii.String("exchangeUrl"),

	// the properties below are optional
	ClientName: jsii.String("clientName"),
	ExchangeParameters: exchangeParameters,
	Scopes: []*string{
		jsii.String("scopes"),
	},
}
```

## Properties

- `clientId`: string (required) — OAuth client ID.

- `clientName`: string — User friendly OAuth client name.

- `clientSecret`: string (required) — OAuth client secret.

- `exchangeParameters`: any — OAuth token exchange parameters.

- `exchangeUrl`: string (required) — OAuth token exchange URL.

- `scopes`: string[] — OAuth scopes.
