Class ConfigurableMcpSseServer

java.lang.Object
com.github.thought2code.mcp.annotated.server.configurable.AbstractConfigurableMcpServer
com.github.thought2code.mcp.annotated.server.configurable.HttpBasedConfigurableMcpServer<io.modelcontextprotocol.server.transport.HttpServletSseServerTransportProvider>
com.github.thought2code.mcp.annotated.server.configurable.ConfigurableMcpSseServer
All Implemented Interfaces:
ConfigurableMcpServer

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

    • ConfigurableMcpSseServer

      public ConfigurableMcpSseServer(McpServerConfiguration configuration)
      Creates a new instance of ConfigurableMcpSseServer with the specified configuration.
      Parameters:
      configuration - the configuration for the MCP server
  • Method Details

    • sync

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

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

      Returns:
      the sync specification for the MCP server in HTTP SSE mode