public class ToolMcpServerManager extends Object implements McpServerManager<FunctionTool>
| Constructor and Description |
|---|
ToolMcpServerManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(McpSyncServer server,
McpServer.SyncSpecification mcpServerSpec,
McpServerProperties mcpServerProps,
FunctionTool functionTool)
添加
|
Collection<FunctionTool> |
all()
全部
|
protected org.noear.snack.ONode |
buildJsonSchema(FunctionTool functionTool) |
boolean |
contains(String toolName)
是否包含
|
int |
count()
数量
|
void |
remove(McpSyncServer server,
String toolName)
移除
|
public int count()
McpServerManagercount in interface McpServerManager<FunctionTool>public Collection<FunctionTool> all()
McpServerManagerall in interface McpServerManager<FunctionTool>public boolean contains(String toolName)
McpServerManagercontains in interface McpServerManager<FunctionTool>public void remove(McpSyncServer server, String toolName)
McpServerManagerremove in interface McpServerManager<FunctionTool>public void add(McpSyncServer server, McpServer.SyncSpecification mcpServerSpec, McpServerProperties mcpServerProps, FunctionTool functionTool)
McpServerManageradd in interface McpServerManager<FunctionTool>protected org.noear.snack.ONode buildJsonSchema(FunctionTool functionTool)
Copyright © 2025. All rights reserved.