MCPcopy Create free account
hub / github.com/echoVic/blade-code / searchTools

Method searchTools

src/agent/MCPComponent.ts:332–339  ·  view source on GitHub ↗

* 搜索工具

(query: string)

Source from the content-addressed store, hash-verified

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 * 获取连接状态

Callers

nothing calls this directly

Calls 2

getAllToolsMethod · 0.95
filterMethod · 0.45

Tested by

no test coverage detected