Class McpStdioServer
java.lang.Object
com.github.thought2code.mcp.annotated.server.AbstractMcpServer<McpServerInfo>
com.github.thought2code.mcp.annotated.server.McpStdioServer
- All Implemented Interfaces:
McpServer<McpServerInfo>
This class is used to create a new instance of
McpStdioServer based on the specified
McpServerInfo in STDIO mode.- Author:
- codeboyzhou
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.modelcontextprotocol.server.McpServer.SyncSpecification<?>sync(McpServerInfo serverInfo) Returns the sync specification for the MCP server in STDIO mode.Methods inherited from class com.github.thought2code.mcp.annotated.server.AbstractMcpServer
warmup
-
Constructor Details
-
McpStdioServer
public McpStdioServer()
-
-
Method Details
-
sync
Returns the sync specification for the MCP server in STDIO mode.This method returns the sync specification for the MCP server in STDIO mode. The sync specification is used to start the MCP server in STDIO mode.
- Parameters:
serverInfo- the server info- Returns:
- the sync specification for the MCP server in STDIO mode
-