Interface McpServerConfigDraft
- All Known Subinterfaces:
CommerceMcpServerConfigDraft
public interface McpServerConfigDraft
Connection configuration for creating or updating an MCP Server. The type discriminator determines the concrete configuration shape and the set of tools available for this MCP Server. Only CommerceMcpServerConfigDraft is supported.
Example to create a subtype instance using the builder pattern
McpServerConfigDraft mcpServerConfigDraft = McpServerConfigDraft.commerceMcpBuilder()
majorVersion("{majorVersion}")
plusTools(toolsBuilder -> toolsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder for commerceMcp subtypecopyDeep()static McpServerConfigDraftdeepCopy(McpServerConfigDraft template) factory method to create a deep copy of McpServerConfigDraft@NotNull StringgetType()MCP Server type.static tools.jackson.core.type.TypeReference<McpServerConfigDraft>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithMcpServerConfigDraft(Function<McpServerConfigDraft, T> helper) accessor map function
-
Method Details
-
getType
MCP Server type. Determines the shape of the configuration and the set of tools available for this MCP Server.
- Returns:
- type
-
copyDeep
McpServerConfigDraft copyDeep() -
deepCopy
factory method to create a deep copy of McpServerConfigDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
commerceMcpBuilder
builder for commerceMcp subtype- Returns:
- builder
-
withMcpServerConfigDraft
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
-