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
-
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
ConstructorsConstructorDescriptionConfigurableMcpStreamableServer(McpServerConfiguration configuration) Creates a new instance ofConfigurableMcpStreamableServerwith the specified configuration. -
Method Summary
Modifier and TypeMethodDescriptionio.modelcontextprotocol.server.McpServer.SyncSpecification<?>sync()Returns the sync specification for the MCP server in Streamable HTTP 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
-
ConfigurableMcpStreamableServer
Creates a new instance ofConfigurableMcpStreamableServerwith 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
-