类 ConfigurableMcpStreamableServer
java.lang.Object
com.github.codeboyzhou.mcp.declarative.server.configurable.AbstractConfigurableMcpServer
com.github.codeboyzhou.mcp.declarative.server.configurable.ConfigurableMcpStreamableServer
- 所有已实现的接口:
ConfigurableMcpServer
This class is used to create a new instance of
ConfigurableMcpStreamableServer based on
the specified McpServerConfiguration in Streamable HTTP mode.- 作者:
- codeboyzhou
-
字段概要
从类继承的字段 com.github.codeboyzhou.mcp.declarative.server.configurable.AbstractConfigurableMcpServer
configuration -
构造器概要
构造器构造器说明ConfigurableMcpStreamableServer(McpServerConfiguration configuration) Creates a new instance ofConfigurableMcpStreamableServerwith the specified configuration. -
方法概要
修饰符和类型方法说明io.modelcontextprotocol.server.McpServer.SyncSpecification<?>sync()Returns the sync specification for the MCP server in Streamable HTTP mode.从类继承的方法 com.github.codeboyzhou.mcp.declarative.server.configurable.AbstractConfigurableMcpServer
startServer
-
构造器详细资料
-
ConfigurableMcpStreamableServer
Creates a new instance ofConfigurableMcpStreamableServerwith 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 Streamable HTTP mode.This method returns the sync specification for the MCP server in Streamable HTTP mode. The sync specification is used to start the MCP server in Streamable HTTP mode.
- 返回:
- the sync specification for the MCP server in Streamable HTTP mode
-