* 调用 MCP 工具(便捷方法) * @param serverId Server ID * @param toolName 工具名称 * @param params 参数 * @returns 调用响应
(serverId: string, toolName: string, params: Record<string, any>)
| 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 |