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>

public class McpStdioServer extends AbstractMcpServer<McpServerInfo>
This class is used to create a new instance of McpStdioServer based on the specified McpServerInfo in STDIO mode.
Author:
codeboyzhou
  • Constructor Details

    • McpStdioServer

      public McpStdioServer()
  • Method Details

    • sync

      public io.modelcontextprotocol.server.McpServer.SyncSpecification<?> sync(McpServerInfo serverInfo)
      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