Class McpStreamableServerInfo

java.lang.Object
com.github.thought2code.mcp.annotated.server.McpServerInfo
com.github.thought2code.mcp.annotated.server.McpStreamableServerInfo

@Deprecated(since="0.11.0", forRemoval=true) public class McpStreamableServerInfo extends McpServerInfo
Deprecated, for removal: This API element is subject to removal in a future version.
This class is used to define the information of the MCP server with streamable http support.
Author:
codeboyzhou
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns a new builder instance to construct a McpStreamableServerInfo instance.
    io.modelcontextprotocol.server.McpTransportContextExtractor<jakarta.servlet.http.HttpServletRequest>
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the extractor to extract the transport context from the HTTP request.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns whether to disallow http delete requests.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the interval to send keep-alive messages.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the endpoint of the MCP server to send messages.
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the port of the MCP HTTP server.

    Methods inherited from class com.github.thought2code.mcp.annotated.server.McpServerInfo

    capabilities, changeNotification, instructions, name, requestTimeout, version

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • builder

      public static McpStreamableServerInfo.Builder builder()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns a new builder instance to construct a McpStreamableServerInfo instance.
      Returns:
      a new builder instance
    • port

      public int port()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the port of the MCP HTTP server.
      Returns:
      the port of the MCP HTTP server
    • mcpEndpoint

      public String mcpEndpoint()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the endpoint of the MCP server to send messages.
      Returns:
      the endpoint of the MCP server to send messages
    • disallowDelete

      public boolean disallowDelete()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns whether to disallow http delete requests.
      Returns:
      whether to disallow http delete requests
    • contextExtractor

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

      public Duration keepAliveInterval()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the interval to send keep-alive messages.
      Returns:
      the interval to send keep-alive messages