MCPcopy Create free account
hub / github.com/astercloud/aster / call

Method call

client-sdks/client-js/src/resources/mcp.ts:172–174  ·  view source on GitHub ↗

* 调用 MCP 工具(便捷方法) * @param serverId Server ID * @param toolName 工具名称 * @param params 参数 * @returns 调用响应

(serverId: string, toolName: string, params: Record<string, any>)

Source from the content-addressed store, hash-verified

170 * @returns 调用响应
171 */
172 async call(serverId: string, toolName: string, params: Record<string, any>): Promise<MCPToolCallResponse> {
173 return this.callTool({ serverId, toolName, params });
174 }
175
176 // ==========================================================================
177 // MCP Resources

Callers 1

mainFunction · 0.95

Calls 1

callToolMethod · 0.95

Tested by

no test coverage detected