Interface McpServerDraft
- All Superinterfaces:
Draft<McpServerDraft>
Draft representation for creating a new MCP Server.
Example to create an instance using the builder pattern
McpServerDraft mcpServerDraft = McpServerDraft.builder()
.key("{key}")
.mcpServer(mcpServerBuilder -> mcpServerBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic McpServerDraftBuilderbuilder()builder factory method for McpServerDraftstatic McpServerDraftBuilderbuilder(McpServerDraft template) create builder for McpServerDraft instancecopyDeep()static McpServerDraftdeepCopy(McpServerDraft template) factory method to create a deep copy of McpServerDraftDetermines how AI agents authenticate when connecting to the MCP Server.@Valid LocalizedStringDescription of the MCP Server.@NotNull StringgetKey()User-defined unique identifier for the MCP Server.@NotNull @Valid McpServerConfigDraftConfiguration of the MCP Server connection.@Valid LocalizedStringgetName()Name of the MCP Server.getState()State of the MCP Server.static McpServerDraftof()factory methodstatic McpServerDraftof(McpServerDraft template) factory method to create a shallow copy McpServerDraftvoidsetAuthenticationMode(McpServerAuthenticationMode authenticationMode) Determines how AI agents authenticate when connecting to the MCP Server.voidsetDescription(LocalizedString description) Description of the MCP Server.voidUser-defined unique identifier for the MCP Server.voidsetMcpServer(McpServerConfigDraft mcpServer) Configuration of the MCP Server connection.voidsetName(LocalizedString name) Name of the MCP Server.voidsetState(McpServerState state) State of the MCP Server.static tools.jackson.core.type.TypeReference<McpServerDraft>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithMcpServerDraft(Function<McpServerDraft, T> helper) accessor map function
-
Method Details
-
getKey
User-defined unique identifier for the MCP Server. Must be unique within the Project.
- Returns:
- key
-
getName
Name of the MCP Server.
- Returns:
- name
-
getDescription
Description of the MCP Server.
- Returns:
- description
-
getAuthenticationMode
McpServerAuthenticationMode getAuthenticationMode()Determines how AI agents authenticate when connecting to the MCP Server.
- Returns:
- authenticationMode
-
getState
McpServerState getState()State of the MCP Server.
- Returns:
- state
-
getMcpServer
Configuration of the MCP Server connection.
- Returns:
- mcpServer
-
setKey
User-defined unique identifier for the MCP Server. Must be unique within the Project.
- Parameters:
key- value to be set
-
setName
Name of the MCP Server.
- Parameters:
name- value to be set
-
setDescription
Description of the MCP Server.
- Parameters:
description- value to be set
-
setAuthenticationMode
Determines how AI agents authenticate when connecting to the MCP Server.
- Parameters:
authenticationMode- value to be set
-
setState
State of the MCP Server.
- Parameters:
state- value to be set
-
setMcpServer
Configuration of the MCP Server connection.
- Parameters:
mcpServer- value to be set
-
of
factory method- Returns:
- instance of McpServerDraft
-
of
factory method to create a shallow copy McpServerDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
McpServerDraft copyDeep() -
deepCopy
factory method to create a deep copy of McpServerDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for McpServerDraft- Returns:
- builder
-
builder
create builder for McpServerDraft instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMcpServerDraft
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
-