Interface McpServerConfig
- All Known Subinterfaces:
CommerceMcpServerConfig
public interface McpServerConfig
Connection configuration of an MCP Server. The type discriminator determines the concrete configuration shape and the set of tools available for this MCP Server. Only CommerceMcpServerConfig is supported.
Example to create a subtype instance using the builder pattern
McpServerConfig mcpServerConfig = McpServerConfig.commerceMcpBuilder()
majorVersion("{majorVersion}")
url("{url}")
plusTools(toolsBuilder -> toolsBuilder)
plusToolCustomizations(toolCustomizationsBuilder -> toolCustomizationsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder for commerceMcp subtypecopyDeep()static McpServerConfigdeepCopy(McpServerConfig template) factory method to create a deep copy of McpServerConfig@NotNull StringgetType()MCP Server type.static tools.jackson.core.type.TypeReference<McpServerConfig>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithMcpServerConfig(Function<McpServerConfig, 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
McpServerConfig copyDeep() -
deepCopy
factory method to create a deep copy of McpServerConfig- Parameters:
template- instance to be copied- Returns:
- copy instance
-
commerceMcpBuilder
builder for commerceMcp subtype- Returns:
- builder
-
withMcpServerConfig
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
-