接口 McpServer<S extends McpServerInfo>

所有已知实现类:
AbstractMcpServer, McpSseServer, McpStdioServer, McpStreamableServer

public interface McpServer<S extends McpServerInfo>
This interface is used to define the contract for an MCP server.
作者:
codeboyzhou
  • 方法概要

    修饰符和类型
    方法
    说明
    io.modelcontextprotocol.server.McpServer.SyncSpecification<?>
    sync(S serverInfo)
    Returns the sync specification for the MCP server.
  • 方法详细资料

    • sync

      io.modelcontextprotocol.server.McpServer.SyncSpecification<?> sync(S serverInfo)
      Returns the sync specification for the MCP server.
      参数:
      serverInfo - the server info
      返回:
      the sync specification for the MCP server