(transport: Transport)
| 111 | } |
| 112 | |
| 113 | async connect(transport: Transport): Promise<void> { |
| 114 | try { |
| 115 | await this.#client.connect(transport) |
| 116 | this.capabilities = this.#client.getServerCapabilities() ?? {} |
| 117 | } catch (err) { |
| 118 | throw new MCPConnectionError('Failed to connect to MCP server', err) |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | async tools( |
| 123 | defsOrOptions?: ReadonlyArray<AnyToolDefinition> | ToolsOptions, |
no test coverage detected