Class McpSseServerInfo

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

@Deprecated(since="0.11.0", forRemoval=true) public class McpSseServerInfo extends McpServerInfo
Deprecated, for removal: This API element is subject to removal in a future version.
This class is used to define the information of the MCP server with HTTP SSE support.
Author:
codeboyzhou
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the base URL of the MCP server.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns a new builder instance to construct a McpSseServerInfo instance.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the endpoint of the MCP server to send messages.
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the port of the MCP HTTP server.
    Deprecated, for removal: This API element is subject to removal in a future version.
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • builder

      public static McpSseServerInfo.Builder builder()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns a new builder instance to construct a McpSseServerInfo instance.
      Returns:
      a new builder instance
    • baseUrl

      public String baseUrl()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the base URL of the MCP server.
      Returns:
      the base URL of the MCP server
    • messageEndpoint

      public String messageEndpoint()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the endpoint of the MCP server to send messages.
      Returns:
      the endpoint of the MCP server to send messages
    • sseEndpoint

      public String sseEndpoint()
      Deprecated, for removal: This API element is subject to removal in a future version.
      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()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the port of the MCP HTTP server.
      Returns:
      the port of the MCP HTTP server