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
This class is used to create a new instance of
ConfigurableMcpStdioServer based on the
specified McpServerConfiguration in STDIO mode.- Author:
- codeboyzhou
-
Field Summary
Fields inherited from class com.github.thought2code.mcp.annotated.server.configurable.AbstractConfigurableMcpServer
configuration -
Constructor Summary
ConstructorsConstructorDescriptionConfigurableMcpStdioServer(McpServerConfiguration configuration) Creates a new instance ofConfigurableMcpStdioServerwith the specified configuration. -
Method Summary
Modifier and TypeMethodDescriptionio.modelcontextprotocol.server.McpServer.SyncSpecification<?>sync()Returns the sync specification for the MCP server in STDIO mode.Methods inherited from class com.github.thought2code.mcp.annotated.server.configurable.AbstractConfigurableMcpServer
warmup
-
Constructor Details
-
ConfigurableMcpStdioServer
Creates a new instance ofConfigurableMcpStdioServerwith 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
-