类的使用
com.github.codeboyzhou.mcp.declarative.server.McpServerInfo
使用McpServerInfo的程序包
-
com.github.codeboyzhou.mcp.declarative中McpServerInfo的使用
修饰符和类型方法说明voidMcpServers.startStdioServer(McpServerInfo serverInfo) Starts a standard input/output (stdio) server with the specified server info. -
com.github.codeboyzhou.mcp.declarative.server中McpServerInfo的使用
修饰符和类型类说明classAbstractMcpServer<S extends McpServerInfo>This abstract class is used to provide a base implementation for an MCP server.interfaceMcpServer<S extends McpServerInfo>This interface is used to define the contract for an MCP server.修饰符和类型类说明classThis class is used to define the information of the MCP server with HTTP SSE support.classThis class is used to define the information of the MCP server with streamable http support.修饰符和类型方法说明McpServerInfo.Builder.build()Builds a new instance ofMcpServerInfowith the specified configuration.修饰符和类型方法说明io.modelcontextprotocol.server.McpServer.SyncSpecification<?>McpStdioServer.sync(McpServerInfo serverInfo) Returns the sync specification for the MCP server in STDIO mode.