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
-
Field Summary
Fields inherited from class com.github.thought2code.mcp.annotated.server.configurable.HttpBasedConfigurableMcpServer
port, transportProviderFields inherited from class com.github.thought2code.mcp.annotated.server.configurable.AbstractConfigurableMcpServer
configuration -
Constructor Summary
ConstructorsConstructorDescriptionConfigurableMcpSseServer(McpServerConfiguration configuration) Creates a new instance ofConfigurableMcpSseServerwith the specified configuration. -
Method Summary
Modifier and TypeMethodDescriptionio.modelcontextprotocol.server.McpServer.SyncSpecification<?>sync()Returns the sync specification for the MCP server in HTTP SSE mode.Methods inherited from class com.github.thought2code.mcp.annotated.server.configurable.HttpBasedConfigurableMcpServer
runMethods inherited from class com.github.thought2code.mcp.annotated.server.configurable.AbstractConfigurableMcpServer
warmup
-
Constructor Details
-
ConfigurableMcpSseServer
Creates a new instance ofConfigurableMcpSseServerwith 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
-