Class McpSseServerInfo
java.lang.Object
com.github.thought2code.mcp.annotated.server.McpServerInfo
com.github.thought2code.mcp.annotated.server.McpSseServerInfo
This class is used to define the information of the MCP server with HTTP SSE support.
- Author:
- codeboyzhou
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe builder class forMcpSseServerInfo. -
Method Summary
Modifier and TypeMethodDescriptionbaseUrl()Returns the base URL of the MCP server.static McpSseServerInfo.Builderbuilder()Returns a new builder instance to construct aMcpSseServerInfoinstance.Returns the endpoint of the MCP server to send messages.intport()Returns the port of the MCP HTTP server.Returns the endpoint of the MCP server to receive SSE events.Methods inherited from class com.github.thought2code.mcp.annotated.server.McpServerInfo
capabilities, changeNotification, instructions, name, requestTimeout, version
-
Method Details
-
builder
Returns a new builder instance to construct aMcpSseServerInfoinstance.- Returns:
- a new builder instance
-
baseUrl
Returns the base URL of the MCP server.- Returns:
- the base URL of the MCP server
-
messageEndpoint
Returns the endpoint of the MCP server to send messages.- Returns:
- the endpoint of the MCP server to send messages
-
sseEndpoint
Returns the endpoint of the MCP server to receive SSE events.- Returns:
- the endpoint of the MCP server to receive SSE events
-
port
public int port()Returns the port of the MCP HTTP server.- Returns:
- the port of the MCP HTTP server
-