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
public static class McpSseServerInfo.Builder
extends McpServerInfo.Builder<McpSseServerInfo.Builder>
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the base URL of the MCP server.build()Builds a newMcpSseServerInfoinstance with the specified builder.messageEndpoint(String messageEndpoint) Sets the endpoint of the MCP server to send messages.port(int port) Sets the port of the MCP HTTP server.protected McpSseServerInfo.Builderself()Returns the self reference of the builder, which is used to chain the method calls.sseEndpoint(String sseEndpoint) 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()
-
-
Method Details
-
self
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
Builds a newMcpSseServerInfoinstance with the specified builder.- Overrides:
buildin classMcpServerInfo.Builder<McpSseServerInfo.Builder>- Returns:
- a new
McpSseServerInfoinstance
-
baseUrl
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
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
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
Sets the port of the MCP HTTP server.- Parameters:
port- the port of the MCP HTTP server- Returns:
- the self reference of the builder
-