Class McpStreamableServer
java.lang.Object
com.github.thought2code.mcp.annotated.server.AbstractMcpServer<S>
com.github.thought2code.mcp.annotated.server.HttpBasedMcpServer<McpStreamableServerInfo,io.modelcontextprotocol.server.transport.HttpServletStreamableServerTransportProvider>
com.github.thought2code.mcp.annotated.server.McpStreamableServer
- All Implemented Interfaces:
McpServer<McpStreamableServerInfo>
public class McpStreamableServer
extends HttpBasedMcpServer<McpStreamableServerInfo,io.modelcontextprotocol.server.transport.HttpServletStreamableServerTransportProvider>
This class is used to create a new instance of
McpStreamableServer based on the specified
McpStreamableServerInfo in Streamable HTTP mode.- Author:
- codeboyzhou
-
Field Summary
Fields inherited from class com.github.thought2code.mcp.annotated.server.HttpBasedMcpServer
port, transportProvider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.modelcontextprotocol.server.McpServer.SyncSpecification<?>sync(McpStreamableServerInfo info) Returns the sync specification for the MCP server in Streamable HTTP mode.Methods inherited from class com.github.thought2code.mcp.annotated.server.HttpBasedMcpServer
runMethods inherited from class com.github.thought2code.mcp.annotated.server.AbstractMcpServer
warmup
-
Constructor Details
-
McpStreamableServer
public McpStreamableServer()
-
-
Method Details
-
sync
public io.modelcontextprotocol.server.McpServer.SyncSpecification<?> sync(McpStreamableServerInfo info) 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.
- Parameters:
info- the server info- Returns:
- the sync specification for the MCP server in Streamable HTTP mode
-