* Closes the MCP client connection.
()
| 320 | * Closes the MCP client connection. |
| 321 | */ |
| 322 | async close(): Promise<void> { |
| 323 | if (this.client) { |
| 324 | await this.client.close(); |
| 325 | this.client = null; |
| 326 | } |
| 327 | } |
| 328 | |
| 329 | /** |
| 330 | * Returns whether the client is connected. |