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

Method listTools

src/mcp/client/MCPClient.ts:143–150  ·  view source on GitHub ↗

* 列出工具

(sessionId: string)

Source from the content-addressed store, hash-verified

141 * 列出工具
142 */
143 async listTools(sessionId: string): Promise<MCPTool[]> {
144 const response = await this.sendRequest(sessionId, {
145 method: 'tools/list',
146 params: {},
147 });
148
149 return response.tools || [];
150 }
151
152 /**
153 * 调用工具

Callers 4

showServerInfoFunction · 0.80
listToolsFunction · 0.80
callToolFunction · 0.80
loadServerToolsMethod · 0.80

Calls 1

sendRequestMethod · 0.95

Tested by

no test coverage detected