Class McpSseServerInfo

java.lang.Object
com.github.thought2code.mcp.annotated.server.McpServerInfo
com.github.thought2code.mcp.annotated.server.McpSseServerInfo

public class McpSseServerInfo extends McpServerInfo
This class is used to define the information of the MCP server with HTTP SSE support.
Author:
codeboyzhou
See Also:
  • Method Details

    • builder

      public static McpSseServerInfo.Builder builder()
      Returns a new builder instance to construct a McpSseServerInfo instance.
      Returns:
      a new builder instance
    • baseUrl

      public String baseUrl()
      Returns the base URL of the MCP server.
      Returns:
      the base URL of the MCP server
    • messageEndpoint

      public String messageEndpoint()
      Returns the endpoint of the MCP server to send messages.
      Returns:
      the endpoint of the MCP server to send messages
    • sseEndpoint

      public String 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