Class McpServerStreamable.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • mcpEndpoint

      public McpServerStreamable.Builder mcpEndpoint(String mcpEndpoint)
      Sets the MCP endpoint.
      Parameters:
      mcpEndpoint - The MCP endpoint.
      Returns:
      This builder instance.
    • disallowDelete

      public McpServerStreamable.Builder disallowDelete(Boolean disallowDelete)
      Sets the disallow delete flag.
      Parameters:
      disallowDelete - The disallow delete flag.
      Returns:
      This builder instance.
    • keepAliveInterval

      public McpServerStreamable.Builder keepAliveInterval(Long keepAliveInterval)
      Sets the keep-alive interval.
      Parameters:
      keepAliveInterval - The keep-alive interval.
      Returns:
      This builder instance.
    • port

      Sets the port.
      Parameters:
      port - The port.
      Returns:
      This builder instance.
    • build

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