C

Commerce MCP

MCP discovered

Details
Docs
https://docs.commercetools.com/dev-tooling/mcp/commerce-mcp
Authentication
commercetools API Client (client ID and client secret) oauth2_cc discovered Set up OAuth ↗
$ npx -y @commercetools/commerce-mcp@latest --authType=client_credentials --clientId {CLIENT_ID} --clientSecret {CLIENT_SECRET} --authUrl {AUTH_URL} --projectKey {PROJECT_KEY} --apiUrl {API_URL}

Create an API Client in your commercetools Project. The first client is created in Merchant Center developer settings; after that you can also create additional clients via the API Clients API. Keep the client_id, secret, Project key, auth host https://auth.{region}.commercetools.com, and API host for your region. Use the client to obtain OAuth 2.0 access tokens for the platform APIs.

commercetools OAuth access token bearer discovered Get token ↗
$ npx -y @commercetools/commerce-mcp@latest --authType=auth_token --accessToken {ACCESS_TOKEN} --projectKey {PROJECT_KEY} --apiUrl {API_URL}

Mint an OAuth 2.0 access token from your commercetools auth host https://auth.{region}.commercetools.com using a commercetools API Client. The standard path is client credentials for server integrations; me use cases can also use password or anonymous flows as described in Authentication and authorization. Use the resulting bearer token in API calls.