Class McpStreamableServerInfo.Builder

java.lang.Object
com.github.thought2code.mcp.annotated.server.McpServerInfo.Builder<McpStreamableServerInfo.Builder>
com.github.thought2code.mcp.annotated.server.McpStreamableServerInfo.Builder
Enclosing class:
McpStreamableServerInfo

@Deprecated(since="0.11.0", forRemoval=true) public static class McpStreamableServerInfo.Builder extends McpServerInfo.Builder<McpStreamableServerInfo.Builder>
Deprecated, for removal: This API element is subject to removal in a future version.
The builder class for McpStreamableServerInfo.
See Also:
  • Constructor Details

    • Builder

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

    • 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<McpStreamableServerInfo.Builder>
      Returns:
      the self reference of the builder
    • build

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

      public McpStreamableServerInfo.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
    • mcpEndpoint

      public McpStreamableServerInfo.Builder mcpEndpoint(String mcpEndpoint)
      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:
      mcpEndpoint - the endpoint of the MCP server to send messages
      Returns:
      the self reference of the builder
    • disallowDelete

      public McpStreamableServerInfo.Builder disallowDelete(boolean disallowDelete)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets whether to disallow http delete requests.
      Parameters:
      disallowDelete - whether to disallow http delete requests
      Returns:
      the self reference of the builder
    • contextExtractor

      public McpStreamableServerInfo.Builder contextExtractor(io.modelcontextprotocol.server.McpTransportContextExtractor<jakarta.servlet.http.HttpServletRequest> contextExtractor)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the extractor to extract the transport context from the HTTP request.
      Parameters:
      contextExtractor - the extractor to extract the transport context from the HTTP request
      Returns:
      the self reference of the builder
    • keepAliveInterval

      public McpStreamableServerInfo.Builder keepAliveInterval(Duration keepAliveInterval)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the interval to send keep-alive messages.
      Parameters:
      keepAliveInterval - the interval to send keep-alive messages
      Returns:
      the self reference of the builder