Class ConfigurableMcpStdioServer

java.lang.Object
com.github.thought2code.mcp.annotated.server.configurable.AbstractConfigurableMcpServer
com.github.thought2code.mcp.annotated.server.configurable.ConfigurableMcpStdioServer
All Implemented Interfaces:
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.
Author:
codeboyzhou
  • Constructor Details

    • ConfigurableMcpStdioServer

      public ConfigurableMcpStdioServer(McpServerConfiguration configuration)
      Creates a new instance of ConfigurableMcpStdioServer with the specified configuration.
      Parameters:
      configuration - the configuration for the MCP server
  • Method Details

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

      Returns:
      the sync specification for the MCP server in STDIO mode