Class McpServerSSE.Builder

java.lang.Object
com.github.thought2code.mcp.annotated.configuration.McpServerSSE.Builder
Enclosing class:
McpServerSSE

public static class McpServerSSE.Builder extends Object
Builder class for McpServerSSE.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • messageEndpoint

      public McpServerSSE.Builder messageEndpoint(String messageEndpoint)
      Sets the message endpoint.
      Parameters:
      messageEndpoint - The message endpoint.
      Returns:
      This builder instance.
    • endpoint

      public McpServerSSE.Builder endpoint(String endpoint)
      Sets the endpoint.
      Parameters:
      endpoint - The endpoint.
      Returns:
      This builder instance.
    • baseUrl

      public McpServerSSE.Builder baseUrl(String baseUrl)
      Sets the base URL.
      Parameters:
      baseUrl - The base URL.
      Returns:
      This builder instance.
    • port

      public McpServerSSE.Builder port(Integer port)
      Sets the port.
      Parameters:
      port - The port.
      Returns:
      This builder instance.
    • build

      public McpServerSSE build()
      Builds an instance of McpServerSSE with the configured values.
      Returns:
      A new instance of McpServerSSE.