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.
  • Constructor Details

    • Builder

      public Builder()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • self

      protected McpSseServerInfo.Builder 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:
      self in class McpServerInfo.Builder<McpSseServerInfo.Builder>
      Returns:
      the self reference of the builder
    • build

      public McpSseServerInfo build()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Builds a new McpSseServerInfo instance with the specified builder.
      Overrides:
      build in class McpServerInfo.Builder<McpSseServerInfo.Builder>
      Returns:
      a new McpSseServerInfo instance
    • baseUrl

      public McpSseServerInfo.Builder baseUrl(String 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

      public McpSseServerInfo.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.
      Parameters:
      messageEndpoint - the endpoint of the MCP server to send messages
      Returns:
      the self reference of the builder
    • sseEndpoint

      public McpSseServerInfo.Builder 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.
      Parameters:
      sseEndpoint - the endpoint of the MCP server to receive SSE events
      Returns:
      the self reference of the builder
    • port

      public McpSseServerInfo.Builder 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.
      Parameters:
      port - the port of the MCP HTTP server
      Returns:
      the self reference of the builder