类 McpSseServerInfo.Builder

java.lang.Object
com.github.codeboyzhou.mcp.declarative.server.McpServerInfo.Builder<McpSseServerInfo.Builder>
com.github.codeboyzhou.mcp.declarative.server.McpSseServerInfo.Builder
封闭类:
McpSseServerInfo

public static class McpSseServerInfo.Builder extends McpServerInfo.Builder<McpSseServerInfo.Builder>
The builder class for McpSseServerInfo.
  • 构造器详细资料

    • Builder

      public Builder()
  • 方法详细资料

    • self

      protected McpSseServerInfo.Builder self()
      Returns the self reference of the builder, which is used to chain the method calls.
      覆盖:
      self 在类中 McpServerInfo.Builder<McpSseServerInfo.Builder>
      返回:
      the self reference of the builder
    • build

      public McpSseServerInfo build()
      Builds a new McpSseServerInfo instance with the specified builder.
      覆盖:
      build 在类中 McpServerInfo.Builder<McpSseServerInfo.Builder>
      返回:
      a new McpSseServerInfo instance
    • baseUrl

      public McpSseServerInfo.Builder baseUrl(String baseUrl)
      Sets the base URL of the MCP server.
      参数:
      baseUrl - the base URL of the MCP server
      返回:
      the self reference of the builder
    • messageEndpoint

      public McpSseServerInfo.Builder messageEndpoint(String messageEndpoint)
      Sets the endpoint of the MCP server to send messages.
      参数:
      messageEndpoint - the endpoint of the MCP server to send messages
      返回:
      the self reference of the builder
    • sseEndpoint

      public McpSseServerInfo.Builder sseEndpoint(String sseEndpoint)
      Sets the endpoint of the MCP server to receive SSE events.
      参数:
      sseEndpoint - the endpoint of the MCP server to receive SSE events
      返回:
      the self reference of the builder
    • port

      public McpSseServerInfo.Builder port(int port)
      Sets the port of the MCP HTTP server.
      参数:
      port - the port of the MCP HTTP server
      返回:
      the self reference of the builder