类 McpSseServer

所有已实现的接口:
McpServer<McpSseServerInfo>

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

    • McpSseServer

      public McpSseServer()
  • 方法详细资料

    • sync

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

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

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