Interface CommerceMcpServerConfigDraft
- All Superinterfaces:
Draft<CommerceMcpServerConfigDraft>,McpServerConfigDraft
Connection configuration for creating or updating a Commerce MCP Server.
Example to create an instance using the builder pattern
CommerceMcpServerConfigDraft commerceMcpServerConfigDraft = CommerceMcpServerConfigDraft.builder()
.majorVersion("{majorVersion}")
.plusTools(toolsBuilder -> toolsBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CommerceMcpServerConfigDraft -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CommerceMcpServerConfigDraftbuilder(CommerceMcpServerConfigDraft template) create builder for CommerceMcpServerConfigDraft instancecopyDeep()static CommerceMcpServerConfigDraftdeepCopy(CommerceMcpServerConfigDraft template) factory method to create a deep copy of CommerceMcpServerConfigDraft@Valid McpServerJsonOutputFilteringResponse field-filtering rules applied to tool responses.@NotNull StringMajor version of this MCP Server type.@Valid List<ToolCustomization>Per-tool customizations applied attools/listandtools/calltime, such as overriding a tool's description or constraining its parameters.Output formatting applied to tool responses.@NotNull List<McpServerTool>getTools()List of tools to enable for this MCP Server.static CommerceMcpServerConfigDraftof()factory methodstatic CommerceMcpServerConfigDraftof(CommerceMcpServerConfigDraft template) factory method to create a shallow copy CommerceMcpServerConfigDraftvoidsetJsonOutputFiltering(McpServerJsonOutputFiltering jsonOutputFiltering) Response field-filtering rules applied to tool responses.voidsetMajorVersion(String majorVersion) Major version of this MCP Server type.voidsetToolCustomizations(ToolCustomization... toolCustomizations) Per-tool customizations applied attools/listandtools/calltime, such as overriding a tool's description or constraining its parameters.voidsetToolCustomizations(List<ToolCustomization> toolCustomizations) Per-tool customizations applied attools/listandtools/calltime, such as overriding a tool's description or constraining its parameters.voidsetToolOutputFormatting(McpServerToolOutputFormatting toolOutputFormatting) Output formatting applied to tool responses.voidsetTools(McpServerTool... tools) List of tools to enable for this MCP Server.voidsetTools(List<McpServerTool> tools) List of tools to enable for this MCP Server.static tools.jackson.core.type.TypeReference<CommerceMcpServerConfigDraft>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.mcp_server.McpServerConfigDraft
getType, withMcpServerConfigDraft
-
Field Details
-
COMMERCE_MCP
discriminator value for CommerceMcpServerConfigDraft- See Also:
-
-
Method Details
-
getMajorVersion
Major version of this MCP Server type. Supported versions are
v1(deprecated) andv4.- Returns:
- majorVersion
-
getTools
List of tools to enable for this MCP Server. Use
allto enable all available tools, or specify individual tool names such asread_productsorcreate_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.- Returns:
- tools
-
getToolCustomizations
Per-tool customizations applied at
tools/listandtools/calltime, such as overriding a tool's description or constraining its parameters.- Returns:
- toolCustomizations
-
getJsonOutputFiltering
Response field-filtering rules applied to tool responses.
- Returns:
- jsonOutputFiltering
-
getToolOutputFormatting
McpServerToolOutputFormatting getToolOutputFormatting()Output formatting applied to tool responses. When absent, responses are left untouched.
- Returns:
- toolOutputFormatting
-
setMajorVersion
Major version of this MCP Server type. Supported versions are
v1(deprecated) andv4.- Parameters:
majorVersion- value to be set
-
setTools
List of tools to enable for this MCP Server. Use
allto enable all available tools, or specify individual tool names such asread_productsorcreate_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.- Parameters:
tools- values to be set
-
setTools
List of tools to enable for this MCP Server. Use
allto enable all available tools, or specify individual tool names such asread_productsorcreate_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.- Parameters:
tools- values to be set
-
setToolCustomizations
Per-tool customizations applied at
tools/listandtools/calltime, such as overriding a tool's description or constraining its parameters.- Parameters:
toolCustomizations- values to be set
-
setToolCustomizations
Per-tool customizations applied at
tools/listandtools/calltime, such as overriding a tool's description or constraining its parameters.- Parameters:
toolCustomizations- values to be set
-
setJsonOutputFiltering
Response field-filtering rules applied to tool responses.
- Parameters:
jsonOutputFiltering- value to be set
-
setToolOutputFormatting
Output formatting applied to tool responses. When absent, responses are left untouched.
- Parameters:
toolOutputFormatting- value to be set
-
of
factory method- Returns:
- instance of CommerceMcpServerConfigDraft
-
of
factory method to create a shallow copy CommerceMcpServerConfigDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CommerceMcpServerConfigDraft copyDeep()- Specified by:
copyDeepin interfaceMcpServerConfigDraft
-
deepCopy
@Nullable static CommerceMcpServerConfigDraft deepCopy(@Nullable CommerceMcpServerConfigDraft template) factory method to create a deep copy of CommerceMcpServerConfigDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CommerceMcpServerConfigDraft- Returns:
- builder
-
builder
create builder for CommerceMcpServerConfigDraft instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCommerceMcpServerConfigDraft
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-