Class McpSseServerInfo.Builder
java.lang.Object
com.github.thought2code.mcp.annotated.server.McpServerInfo.Builder<McpSseServerInfo.Builder>
com.github.thought2code.mcp.annotated.server.McpSseServerInfo.Builder
- Enclosing class:
- McpSseServerInfo
@Deprecated(since="0.11.0",
forRemoval=true)
public static class McpSseServerInfo.Builder
extends McpServerInfo.Builder<McpSseServerInfo.Builder>
Deprecated, for removal: This API element is subject to removal in a future version.
The builder class for
McpSseServerInfo.-
Field Summary
Fields inherited from class com.github.thought2code.mcp.annotated.server.McpServerInfo.Builder
capabilities, changeNotification, instructions, name, requestTimeout, version -
Constructor Summary
ConstructorsConstructorDescriptionBuilder()Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Sets the base URL of the MCP server.build()Deprecated, for removal: This API element is subject to removal in a future version.Builds a newMcpSseServerInfoinstance with the specified builder.messageEndpoint(String messageEndpoint) Deprecated, for removal: This API element is subject to removal in a future version.Sets the endpoint of the MCP server to send messages.port(int port) Deprecated, for removal: This API element is subject to removal in a future version.Sets the port of the MCP HTTP server.protected McpSseServerInfo.Builderself()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.sseEndpoint(String sseEndpoint) Deprecated, for removal: This API element is subject to removal in a future version.Sets the endpoint of the MCP server to receive SSE events.Methods inherited from class com.github.thought2code.mcp.annotated.server.McpServerInfo.Builder
capabilities, changeNotification, instructions, name, requestTimeout, version
-
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.- Overrides:
selfin classMcpServerInfo.Builder<McpSseServerInfo.Builder>- Returns:
- the self reference of the builder
-
build
Deprecated, for removal: This API element is subject to removal in a future version.Builds a newMcpSseServerInfoinstance with the specified builder.- Overrides:
buildin classMcpServerInfo.Builder<McpSseServerInfo.Builder>- Returns:
- a new
McpSseServerInfoinstance
-
baseUrl
Deprecated, for removal: This API element is subject to removal in a future version.Sets the base URL of the MCP server.- Parameters:
baseUrl- the base URL of the MCP server- Returns:
- the self reference of the builder
-
messageEndpoint
Deprecated, for removal: This API element is subject to removal in a future version.Sets the endpoint of the MCP server to send messages.- Parameters:
messageEndpoint- the endpoint of the MCP server to send messages- Returns:
- the self reference of the builder
-
sseEndpoint
Deprecated, for removal: This API element is subject to removal in a future version.Sets the endpoint of the MCP server to receive SSE events.- Parameters:
sseEndpoint- the endpoint of the MCP server to receive SSE events- Returns:
- the self reference of the builder
-
port
Deprecated, for removal: This API element is subject to removal in a future version.Sets the port of the MCP HTTP server.- Parameters:
port- the port of the MCP HTTP server- Returns:
- the self reference of the builder
-