类 McpServerComponentRegister
java.lang.Object
com.github.codeboyzhou.mcp.declarative.server.component.McpServerComponentRegister
Registers MCP server components (resources, prompts, and tools) with the specified server.
- 作者:
- codeboyzhou
-
构造器概要
构造器构造器说明McpServerComponentRegister(io.modelcontextprotocol.server.McpSyncServer server) Creates a new instance ofMcpServerComponentRegisterwith the specified server. -
方法概要
修饰符和类型方法说明static McpServerComponentRegisterof(io.modelcontextprotocol.server.McpSyncServer server) Creates a new instance ofMcpServerComponentRegisterwith the specified server.voidRegisters MCP server components (resources, prompts, and tools) with the specified server.
-
构造器详细资料
-
McpServerComponentRegister
public McpServerComponentRegister(io.modelcontextprotocol.server.McpSyncServer server) Creates a new instance ofMcpServerComponentRegisterwith the specified server.- 参数:
server- the MCP sync server to register components with
-
-
方法详细资料
-
of
Creates a new instance ofMcpServerComponentRegisterwith the specified server.- 参数:
server- the MCP sync server to register components with- 返回:
- a new instance of
McpServerComponentRegisterwith the specified server
-
registerComponents
public void registerComponents()Registers MCP server components (resources, prompts, and tools) with the specified server.
-