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