Class McpSseServer
java.lang.Object
com.github.thought2code.mcp.annotated.server.AbstractMcpServer<S>
com.github.thought2code.mcp.annotated.server.HttpBasedMcpServer<McpSseServerInfo,io.modelcontextprotocol.server.transport.HttpServletSseServerTransportProvider>
com.github.thought2code.mcp.annotated.server.McpSseServer
- All Implemented Interfaces:
McpServer<McpSseServerInfo>
public class McpSseServer
extends HttpBasedMcpServer<McpSseServerInfo,io.modelcontextprotocol.server.transport.HttpServletSseServerTransportProvider>
This class is used to create a new instance of
McpSseServer based on the specified McpSseServerInfo in HTTP SSE 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(McpSseServerInfo info) Returns the sync specification for the MCP server in HTTP SSE 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
-
McpSseServer
public McpSseServer()
-
-
Method Details
-
sync
Returns the sync specification for the MCP server in HTTP SSE mode.This method returns the sync specification for the MCP server in SSE mode. The sync specification is used to start the MCP server in HTTP SSE mode.
- Parameters:
info- the server info- Returns:
- the sync specification for the MCP server in SSE mode
-