Managed MCP Servers

Queries and mutations for managing Managed MCP Servers in the platform.

Queries

Query MCP Servers

QUERYmcpServers
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
Arguments
sort​
Array of String​
limit​
Int​
offset​
Int​

Query MCP Server types

QUERYmcpServerTypes
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta

Get MCP Server

QUERYmcpServer
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
Arguments
id​
String​
key​
String​
Output:McpServer

Get MCP Server type

QUERYmcpServerType
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
Arguments
type​
Can be CommerceMCP, or UCPShopperMCP​
majorVersion​
String​

Get MCP Server limits

QUERYmcpServerLimits
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta

Mutations

Create MCP Server

MUTATIONcreateMcpServer
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
Arguments
draft​
Output:McpServer

Update MCP Server

MUTATIONupdateMcpServer
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
Arguments
id​
String​
key​
String​
version​
Long​
actions​
Output:McpServer

Delete MCP Server

MUTATIONdeleteMcpServer
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
Arguments
id​
String​
key​
String​
version​
Long​
Output:McpServer

Output types

McpServer

Represents an MCP Server configuration that exposes a set of tools to AI agents via the Model Context Protocol.

id​
String​

Unique identifier of the MCP Server.

version​
Long​

Current version of the MCP Server.

key​
String​

User-defined unique identifier of the MCP Server within a Project.

name​
String​
Localized name. Pass locale for a single-locale read, or acceptLanguage to try each locale in order and return the first match. Returns null when the resource has no name or no matching locale.
nameAllLocales​
Array of LocalizedString​
All locale entries of name as (locale, value) pairs.
description​
String​
Localized description. Same resolution semantics as name.
descriptionAllLocales​
Array of LocalizedString​
All locale entries of description as (locale, value) pairs.
authenticationMode​

Determines how AI agents authenticate when connecting to the MCP Server.

Can be CommercetoolsIdentity, ClientCredentials, or BuyerIdentity​
state​
State of the MCP Server. A Disabled MCP Server rejects all AI agent tool requests.
Can be Enabled, or Disabled​
createdAt​

Date and time (UTC) the MCP Server was initially created.

lastModifiedAt​

Date and time (UTC) the MCP Server was last updated.

versionModifiedAt​
createdBy​

IDs and references that created the MCP Server.

lastModifiedBy​

IDs and references that last modified the MCP Server.

mcpServer​

Configuration of the MCP Server connection.

McpServerAuthenticationMode

CommercetoolsIdentity
ClientCredentials
BuyerIdentity

McpServerState

Enabled
Disabled

McpServerConfig

type​
Can be CommerceMCP, or UCPShopperMCP​
majorVersion​
String​
url​
String​
tools​
Array of String​
toolCustomizations​
Array of ToolCustomization​

ToolCustomization

Customization applied to a single tool at tools/list and tools/call time. At least one of description or a non-empty parameters list MUST be present; a customization with neither has no effect and is rejected at write time. Parameter names within parameters MUST be unique.
tool​
String​
Name of the tool to customize, such as read_products or create_orders. Must be one of the tools enabled on the MCP Server.
description​
String​

Replacement description for the tool, shown to the AI agent.

parameters​
Array of ParameterOverride​

Overrides applied to individual parameters of the tool's input schema.

ParameterOverride

Override applied to a single parameter of a tool's input schema. At least one of description, const, default, or enum MUST be present. const is mutually exclusive with both default and enum.
name​
String​

Name of the parameter in the tool's input schema to override.

description​
String​

Replacement description for the parameter, shown to the AI agent.

const​
Pins the parameter to a fixed value. Mutually exclusive with default and enum.
default​
Default value applied when the caller omits the parameter. Mutually exclusive with const.
enum​
Array of JsonPrimitive​
Restricts accepted values to this set. Mutually exclusive with const.

McpServerQueryResult

limit​
Int​
offset​
Int​
count​
Int​
total​
Long​
exists​
Boolean​
results​
Array of McpServer​

McpServerTypeCatalogEntry

type​
Can be CommerceMCP, or UCPShopperMCP​
majorVersion​
String​
tools​

McpServerCatalogTool

name​
String​
description​
String​
operationType​
Can be read, or write​
groups​
Array of String​

McpToolOperationType

read
write

McpServerLimits

total​

McpServerLimitWithCurrent

limit​
Long​
current​
Long​

McpServerType

CommerceMCP
UCPShopperMCP

Input types

McpServerDraft

Draft representation for creating a new MCP Server.

key​
String​

User-defined unique identifier for the MCP Server. Must be unique within the Project.

name​

Name of the MCP Server.

description​

Description of the MCP Server.

authenticationMode​

Determines how AI agents authenticate when connecting to the MCP Server.

Can be CommercetoolsIdentity, ClientCredentials, or BuyerIdentity​
state​
Initial state of the MCP server. Defaults to Disabled when omitted, so a newly created server is inert until a user deliberately enables it.
Can be Enabled, or Disabled​
mcpServer​

Configuration of the MCP Server connection.

McpServerAuthenticationMode

CommercetoolsIdentity
ClientCredentials
BuyerIdentity

McpServerState

Enabled
Disabled

McpServerConfigDraft

commerce​
ucpShopper​

CommerceMcpServerConfigDraft

Connection configuration for creating or updating a Commerce MCP Server.

majorVersion​
String​
Major version of this MCP Server type. Supported versions are v1 (deprecated) and v4.
tools​
Array of String​
List of tools to enable for this MCP Server. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders. To reduce the number of LLM turns and improve overall performance, it is advisable to expose only the tools that are necessary, or at least minimize the exposure of tools that are unlikely to be used.
toolCustomizations​
Per-tool customizations applied at tools/list and tools/call time, such as overriding a tool's description or constraining its parameters.
jsonOutputFiltering​

Response field-filtering rules applied to tool responses.

toolOutputFormatting​
JsonToTabular

ToolCustomizationDraft

Draft for ToolCustomization. At least one of description or a non-empty parameters list MUST be present; parameter names within parameters MUST be unique. The tool field is validated against the server's (type, majorVersion) tool set at write time.
tool​
String​
description​
String​
parameters​

ParameterOverrideDraft

Draft for ParameterOverride. At least one of description, const, default, or enum MUST be present. const is mutually exclusive with both default and enum.
name​
String​
description​
String​
const​
Pins the parameter to a fixed value. Mutually exclusive with default and enum.
default​
Default value applied when the caller omits the parameter. Mutually exclusive with const.
enum​
Array of JsonPrimitive​
Restricts accepted values to this set. Mutually exclusive with const.

McpServerJsonOutputFilteringInput

redact​
drop​
fieldPathsToKeep​
Array of String​
redactedWith​
String​

McpServerJsonOutputFilteringMatcherInput

fieldPaths​
Array of String​
fieldNames​
Array of String​
fieldNameContains​
Array of String​

McpServerToolOutputFormatting

JsonToTabular

UcpShopperMcpServerConfigDraft

Draft for a shopper-facing UCP MCP server. Mirrors the shared fields of CommerceMcpServerConfigDraft without the response-shaping options the skeleton does not yet support.
majorVersion​
String​
tools​
Array of String​
toolCustomizations​
store​
country​
locale​
distributionChannel​
supplyChannel​
currencyCode​
requireStockForChannel​
Boolean​

Defaults to false when omitted.

inventoryMode​
Can be None, TrackOnly, ReserveOnOrder, or ReserveOnCart​

StoreKeyReferenceInput

Input reference to a Store by its key.

key​
String​

ChannelReferenceInput

Input reference to a Channel by its id.

id​
String​

InventoryMode

None
No inventory checks or modifications when adding items or ordering. Default for a new cart.
TrackOnly
Orders decrement the available quantity on the matching inventory entry; ordering fails only when no inventory entry exists for a line item.
ReserveOnOrder
Line items are reserved only for the duration of the ordering transaction; creating an order fails when an unavailable line item exists.
ReserveOnCart
Items are reserved when added to the cart. Not supported by this service.

McpServerUpdateAction

setTools​
addTool​
removeTool​
setToolCustomizations​
addToolCustomization​
removeToolCustomization​
setName​
setDescription​
setState​
setAuthenticationMode​
setJsonOutputFiltering​
setToolOutputFormatting​
setStore​
setCountry​
setLocale​
setDistributionChannel​
setSupplyChannel​
setCurrencyCode​
setRequireStockForChannel​
setInventoryMode​

Update actions

Add Tool

Adds a single tool to the MCP Server's list of enabled tools. Has no effect if the tool is already present.

tool​
String​
Name of the tool to add, such as read_products or create_orders.

Add Tool Customization

Adds a single tool customization to the MCP Server. Returns an InvalidOperation error if a customization for the same tool already exists.
toolCustomization​

Tool customization to add.

ToolCustomizationDraft

Draft for ToolCustomization. At least one of description or a non-empty parameters list MUST be present; parameter names within parameters MUST be unique. The tool field is validated against the server's (type, majorVersion) tool set at write time.
tool​
String​
description​
String​
parameters​

ParameterOverrideDraft

Draft for ParameterOverride. At least one of description, const, default, or enum MUST be present. const is mutually exclusive with both default and enum.
name​
String​
description​
String​
const​
Pins the parameter to a fixed value. Mutually exclusive with default and enum.
default​
Default value applied when the caller omits the parameter. Mutually exclusive with const.
enum​
Array of JsonPrimitive​
Restricts accepted values to this set. Mutually exclusive with const.

Remove Tool

Removes a single tool from the MCP Server's list of enabled tools. Returns an InvalidOperation error if the tool is not in the current list.
tool​
String​
Name of the tool to remove, such as read_products or create_orders.

Remove Tool Customization

Removes the tool customization matching the given tool name. Has no effect if no customization exists for that tool.
toolCustomization​

Identifies the tool customization to remove by its tool name.

RemoveToolCustomizationTarget

Identifies a tool customization to remove by its tool name.
tool​
String​

Name of the tool whose customization is removed.

Set Authentication Mode

Sets the authentication mode of the MCP Server. This action has no effect if the MCP Server already uses the given authentication mode, and in that case the version of the MCP Server stays the same.
authenticationMode​

New authentication mode to set.

Can be CommercetoolsIdentity, ClientCredentials, or BuyerIdentity​

McpServerAuthenticationMode

CommercetoolsIdentity
ClientCredentials
BuyerIdentity

Set Country

country​

Set Currency Code

currencyCode​

Set Description

Sets the localized description of the MCP Server.

description​

Value to set. If omitted, the existing description is removed.

Set Distribution Channel

distributionChannel​

ChannelReferenceInput

Input reference to a Channel by its id.

id​
String​

Set Inventory Mode

inventoryMode​
Can be None, TrackOnly, ReserveOnOrder, or ReserveOnCart​

InventoryMode

None
No inventory checks or modifications when adding items or ordering. Default for a new cart.
TrackOnly
Orders decrement the available quantity on the matching inventory entry; ordering fails only when no inventory entry exists for a line item.
ReserveOnOrder
Line items are reserved only for the duration of the ordering transaction; creating an order fails when an unavailable line item exists.
ReserveOnCart
Items are reserved when added to the cart. Not supported by this service.

Set JSON Output Filtering

Sets or clears mcpServer.jsonOutputFiltering. Omitting the value clears the field; the whole object is replaced atomically when a value is provided.
jsonOutputFiltering​

Value to set. The existing configuration is entirely replaced with this value. If absent, the existing filtering configuration is removed.

McpServerJsonOutputFilteringInput

redact​
drop​
fieldPathsToKeep​
Array of String​
redactedWith​
String​

McpServerJsonOutputFilteringMatcherInput

fieldPaths​
Array of String​
fieldNames​
Array of String​
fieldNameContains​
Array of String​

Set Locale

locale​

Set Name

Sets the localized name of the MCP Server.

name​

Value to set. If omitted, the existing name is removed.

Set Require Stock For Channel

requireStockForChannel​
Boolean​

Set State

Sets the state of the MCP Server. A Disabled MCP Server rejects all AI agent tool requests.
state​

New state to set.

Can be Enabled, or Disabled​

McpServerState

Enabled
Disabled

Set Store

store​

StoreKeyReferenceInput

Input reference to a Store by its key.

key​
String​

Set Supply Channel

supplyChannel​

ChannelReferenceInput

Input reference to a Channel by its id.

id​
String​

Set Tool Customizations

Replaces the entire list of tool customizations on the MCP Server.
toolCustomizations​

New list of tool customizations. Replaces the existing list entirely.

ToolCustomizationDraft

Draft for ToolCustomization. At least one of description or a non-empty parameters list MUST be present; parameter names within parameters MUST be unique. The tool field is validated against the server's (type, majorVersion) tool set at write time.
tool​
String​
description​
String​
parameters​

ParameterOverrideDraft

Draft for ParameterOverride. At least one of description, const, default, or enum MUST be present. const is mutually exclusive with both default and enum.
name​
String​
description​
String​
const​
Pins the parameter to a fixed value. Mutually exclusive with default and enum.
default​
Default value applied when the caller omits the parameter. Mutually exclusive with const.
enum​
Array of JsonPrimitive​
Restricts accepted values to this set. Mutually exclusive with const.

Set Tool Output Formatting

Sets or clears mcpServer.toolOutputFormatting. Omitting the value clears the field.
toolOutputFormatting​
JsonToTabular

McpServerToolOutputFormatting

JsonToTabular

Set Tools

Replaces the entire list of tools enabled for the MCP Server.

tools​
Array of String​
New list of tools to set. Replaces the existing tools list entirely. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders.