(
name: string,
args?: Record<string, unknown>,
)
| 210 | } |
| 211 | |
| 212 | async callTool( |
| 213 | name: string, |
| 214 | args?: Record<string, unknown>, |
| 215 | ): Promise<Awaited<ReturnType<Client['callTool']>>> { |
| 216 | if (this.#closed) throw new MCPConnectionError('MCP client is closed') |
| 217 | return this.#client.callTool({ name, arguments: args ?? {} }) |
| 218 | } |
| 219 | |
| 220 | async close(): Promise<void> { |
| 221 | if (this.#closed) return |
no outgoing calls
no test coverage detected