类 ConfigurableMcpStdioServer

java.lang.Object
com.github.codeboyzhou.mcp.declarative.server.configurable.AbstractConfigurableMcpServer
com.github.codeboyzhou.mcp.declarative.server.configurable.ConfigurableMcpStdioServer
所有已实现的接口:
ConfigurableMcpServer

public class ConfigurableMcpStdioServer extends AbstractConfigurableMcpServer
This class is used to create a new instance of ConfigurableMcpStdioServer based on the specified McpServerConfiguration in STDIO mode.
作者:
codeboyzhou
  • 构造器详细资料

    • ConfigurableMcpStdioServer

      public ConfigurableMcpStdioServer(McpServerConfiguration configuration)
      Creates a new instance of ConfigurableMcpStdioServer with the specified configuration.
      参数:
      configuration - the configuration for the MCP server
  • 方法详细资料

    • sync

      public io.modelcontextprotocol.server.McpServer.SyncSpecification<?> 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.

      返回:
      the sync specification for the MCP server in STDIO mode