Class McpSseServer

java.lang.Object
com.github.thought2code.mcp.annotated.server.AbstractMcpServer<S>
com.github.thought2code.mcp.annotated.server.HttpBasedMcpServer<McpSseServerInfo,io.modelcontextprotocol.server.transport.HttpServletSseServerTransportProvider>
com.github.thought2code.mcp.annotated.server.McpSseServer
All Implemented Interfaces:
McpServer<McpSseServerInfo>

public class McpSseServer extends HttpBasedMcpServer<McpSseServerInfo,io.modelcontextprotocol.server.transport.HttpServletSseServerTransportProvider>
This class is used to create a new instance of McpSseServer based on the specified McpSseServerInfo in HTTP SSE mode.
Author:
codeboyzhou
  • Constructor Details

    • McpSseServer

      public McpSseServer()
  • Method Details

    • 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.

      Parameters:
      info - the server info
      Returns:
      the sync specification for the MCP server in SSE mode