类 McpStdioServer

java.lang.Object
com.github.codeboyzhou.mcp.declarative.server.AbstractMcpServer<McpServerInfo>
com.github.codeboyzhou.mcp.declarative.server.McpStdioServer
所有已实现的接口:
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.
作者:
codeboyzhou
  • 构造器详细资料

    • McpStdioServer

      public McpStdioServer()
  • 方法详细资料

    • 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.

      参数:
      serverInfo - the server info
      返回:
      the sync specification for the MCP server in STDIO mode