Class McpServerInfo.Builder<T extends McpServerInfo.Builder<T>>
java.lang.Object
com.github.thought2code.mcp.annotated.server.McpServerInfo.Builder<T>
- Type Parameters:
T- the type of the builder
- Direct Known Subclasses:
McpSseServerInfo.Builder,McpStreamableServerInfo.Builder
- Enclosing class:
- McpServerInfo
@Deprecated(since="0.11.0",
forRemoval=true)
public static class McpServerInfo.Builder<T extends McpServerInfo.Builder<T>>
extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
The builder class for
McpServerInfo.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected McpServerCapabilitiesDeprecated, for removal: This API element is subject to removal in a future version.The capabilities of the MCP server.protected McpServerChangeNotificationDeprecated, for removal: This API element is subject to removal in a future version.The change notification of the MCP server.protected StringDeprecated, for removal: This API element is subject to removal in a future version.The instructions of the MCP server.protected StringDeprecated, for removal: This API element is subject to removal in a future version.The name of the MCP server.protected DurationDeprecated, for removal: This API element is subject to removal in a future version.The request timeout of the MCP server.protected StringDeprecated, for removal: This API element is subject to removal in a future version.The version of the MCP server. -
Constructor Summary
ConstructorsConstructorDescriptionBuilder()Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Deprecated, for removal: This API element is subject to removal in a future version.Builds a new instance ofMcpServerInfowith the specified configuration.capabilities(McpServerCapabilities capabilities) Deprecated, for removal: This API element is subject to removal in a future version.Sets the capabilities of the MCP server.changeNotification(McpServerChangeNotification changeNotification) Deprecated, for removal: This API element is subject to removal in a future version.Sets the change notification of the MCP server.instructions(String instructions) Deprecated, for removal: This API element is subject to removal in a future version.Sets the instructions of the MCP server.Deprecated, for removal: This API element is subject to removal in a future version.Sets the name of the MCP server.requestTimeout(Duration requestTimeout) Deprecated, for removal: This API element is subject to removal in a future version.Sets the request timeout of the MCP server.protected Tself()Deprecated, for removal: This API element is subject to removal in a future version.Returns the self reference of the builder, which is used to chain the method calls and ensure the subclasses ofMcpServerInfocan also inherit the builder methods with parameterized type.Deprecated, for removal: This API element is subject to removal in a future version.Sets the version of the MCP server.
-
Field Details
-
name
Deprecated, for removal: This API element is subject to removal in a future version.The name of the MCP server. Default value is"mcp-server". -
version
Deprecated, for removal: This API element is subject to removal in a future version.The version of the MCP server. Default value is"1.0.0". -
instructions
Deprecated, for removal: This API element is subject to removal in a future version.The instructions of the MCP server. Default value isStringHelper.EMPTY. -
requestTimeout
Deprecated, for removal: This API element is subject to removal in a future version.The request timeout of the MCP server. Default value is20seconds. -
capabilities
Deprecated, for removal: This API element is subject to removal in a future version.The capabilities of the MCP server. Default value isMcpServerCapabilities.getDefault(). -
changeNotification
Deprecated, for removal: This API element is subject to removal in a future version.The change notification of the MCP server. Default value isMcpServerChangeNotification.getDefault().
-
-
Constructor Details
-
Builder
public Builder()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
self
Deprecated, for removal: This API element is subject to removal in a future version.Returns the self reference of the builder, which is used to chain the method calls and ensure the subclasses ofMcpServerInfocan also inherit the builder methods with parameterized type.- Returns:
- the self reference of the builder
-
build
Deprecated, for removal: This API element is subject to removal in a future version.Builds a new instance ofMcpServerInfowith the specified configuration.- Returns:
- a new instance of
McpServerInfo
-
name
Deprecated, for removal: This API element is subject to removal in a future version.Sets the name of the MCP server.- Parameters:
name- the name of the MCP server- Returns:
- the self reference of the builder
-
version
Deprecated, for removal: This API element is subject to removal in a future version.Sets the version of the MCP server.- Parameters:
version- the version of the MCP server- Returns:
- the self reference of the builder
-
instructions
Deprecated, for removal: This API element is subject to removal in a future version.Sets the instructions of the MCP server.- Parameters:
instructions- the instructions of the MCP server- Returns:
- the self reference of the builder
-
requestTimeout
Deprecated, for removal: This API element is subject to removal in a future version.Sets the request timeout of the MCP server.- Parameters:
requestTimeout- the request timeout of the MCP server- Returns:
- the self reference of the builder
-
capabilities
Deprecated, for removal: This API element is subject to removal in a future version.Sets the capabilities of the MCP server.- Parameters:
capabilities- the capabilities of the MCP server- Returns:
- the self reference of the builder
-
changeNotification
Deprecated, for removal: This API element is subject to removal in a future version.Sets the change notification of the MCP server.- Parameters:
changeNotification- the change notification of the MCP server- Returns:
- the self reference of the builder
-