Interface McpServer<S extends McpServerInfo>

All Known Implementing Classes:
AbstractMcpServer, HttpBasedMcpServer, McpSseServer, McpStdioServer, McpStreamableServer

public interface McpServer<S extends McpServerInfo>
This interface is used to define the contract for an MCP server.
Author:
codeboyzhou
  • Method Summary

    Modifier and Type
    Method
    Description
    io.modelcontextprotocol.server.McpServer.SyncSpecification<?>
    sync(S serverInfo)
    Returns the sync specification for the MCP server.
  • Method Details

    • sync

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