Class ConfigurableMcpStreamableServer

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

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

    • ConfigurableMcpStreamableServer

      public ConfigurableMcpStreamableServer(McpServerConfiguration configuration)
      Creates a new instance of ConfigurableMcpStreamableServer 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 Streamable HTTP mode.

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

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