类 McpStreamableServerInfo

java.lang.Object
com.github.codeboyzhou.mcp.declarative.server.McpServerInfo
com.github.codeboyzhou.mcp.declarative.server.McpStreamableServerInfo

public class McpStreamableServerInfo extends McpServerInfo
This class is used to define the information of the MCP server with streamable http support.
作者:
codeboyzhou
另请参阅:
  • 方法详细资料

    • builder

      public static McpStreamableServerInfo.Builder builder()
      Returns a new builder instance to construct a McpStreamableServerInfo instance.
      返回:
      a new builder instance
    • port

      public int port()
      Returns the port of the MCP HTTP server.
      返回:
      the port of the MCP HTTP server
    • mcpEndpoint

      public String mcpEndpoint()
      Returns the endpoint of the MCP server to send messages.
      返回:
      the endpoint of the MCP server to send messages
    • disallowDelete

      public boolean disallowDelete()
      Returns whether to disallow http delete requests.
      返回:
      whether to disallow http delete requests
    • contextExtractor

      public io.modelcontextprotocol.server.McpTransportContextExtractor<jakarta.servlet.http.HttpServletRequest> contextExtractor()
      Returns the extractor to extract the transport context from the HTTP request.
      返回:
      the extractor to extract the transport context from the HTTP request
    • keepAliveInterval

      public Duration keepAliveInterval()
      Returns the interval to send keep-alive messages.
      返回:
      the interval to send keep-alive messages