* 搜索工具
(query: string)
| 330 | * 搜索工具 |
| 331 | */ |
| 332 | searchTools(query: string): MCPToolInfo[] { |
| 333 | const allTools = this.getAllTools(); |
| 334 | return allTools.filter( |
| 335 | tool => |
| 336 | tool.name.toLowerCase().includes(query.toLowerCase()) || |
| 337 | tool.description.toLowerCase().includes(query.toLowerCase()) |
| 338 | ); |
| 339 | } |
| 340 | |
| 341 | /** |
| 342 | * 获取连接状态 |
nothing calls this directly
no test coverage detected