Class McpStreamableServer
java.lang.Object
com.github.thought2code.mcp.annotated.server.AbstractMcpServer<McpStreamableServerInfo>
com.github.thought2code.mcp.annotated.server.McpStreamableServer
- All Implemented Interfaces:
McpServer<McpStreamableServerInfo>
This class is used to create a new instance of
McpStreamableServer based on the specified
McpStreamableServerInfo in Streamable HTTP mode.- Author:
- codeboyzhou
-
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.AbstractMcpServer
start
-
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
-