Class AbstractConfigurableMcpServer
java.lang.Object
com.github.thought2code.mcp.annotated.server.configurable.AbstractConfigurableMcpServer
- All Implemented Interfaces:
ConfigurableMcpServer
- Direct Known Subclasses:
ConfigurableMcpStdioServer,HttpBasedConfigurableMcpServer
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 Summary
FieldsModifier and TypeFieldDescriptionprotected final McpServerConfigurationThe configuration for the MCP server. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractConfigurableMcpServer(McpServerConfiguration configuration) Creates a new instance ofAbstractConfigurableMcpServerwith the specified configuration. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.thought2code.mcp.annotated.server.configurable.ConfigurableMcpServer
sync
-
Field Details
-
configuration
The configuration for the MCP server.
-
-
Constructor Details
-
AbstractConfigurableMcpServer
Creates a new instance ofAbstractConfigurableMcpServerwith 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().
-