类 McpStreamableServer

java.lang.Object
com.github.codeboyzhou.mcp.declarative.server.AbstractMcpServer<McpStreamableServerInfo>
com.github.codeboyzhou.mcp.declarative.server.McpStreamableServer
所有已实现的接口:
McpServer<McpStreamableServerInfo>

public class McpStreamableServer extends AbstractMcpServer<McpStreamableServerInfo>
This class is used to create a new instance of McpStreamableServer based on the specified McpStreamableServerInfo in Streamable HTTP mode.
作者:
codeboyzhou
  • 构造器详细资料

    • McpStreamableServer

      public McpStreamableServer()
  • 方法详细资料

    • sync

      public io.modelcontextprotocol.server.McpServer.SyncSpecification<?> sync(McpStreamableServerInfo info)
      Returns the sync specification for the MCP server in Streamable HTTP mode.

      This method returns the sync specification for the MCP server in Streamable HTTP mode. The sync specification is used to start the MCP server in Streamable HTTP mode.

      参数:
      info - the server info
      返回:
      the sync specification for the MCP server in Streamable HTTP mode