Class AbstractConfigurableMcpServer

java.lang.Object
com.github.thought2code.mcp.annotated.server.configurable.AbstractConfigurableMcpServer
All Implemented Interfaces:
ConfigurableMcpServer
Direct Known Subclasses:
ConfigurableMcpStdioServer, HttpBasedConfigurableMcpServer

public abstract class AbstractConfigurableMcpServer extends Object implements ConfigurableMcpServer
This abstract class represents a configurable MCP (Model Context Protocol) server.

A configurable MCP server can use the McpConfigurationLoader to load its configuration from a YAML file.

Author:
codeboyzhou
  • Field Details

  • Constructor Details

    • AbstractConfigurableMcpServer

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

    • warmup

      public void warmup()
      Warms up the MCP server.

      This method starts the MCP server using the sync specification provided by ConfigurableMcpServer.sync().