| 24 | const acceptAll = () => Effect.succeed(ElicitationResponse.make({ action: "accept" })); |
| 25 | |
| 26 | const rejectingConnector = (cause: unknown): McpConnector => |
| 27 | Effect.succeed({ |
| 28 | // oxlint-disable-next-line executor/no-double-cast -- boundary: minimal fake MCP client implements only the methods invokeMcpTool calls |
| 29 | client: { |
| 30 | setRequestHandler: () => undefined, |
| 31 | // oxlint-disable-next-line executor/no-promise-reject -- boundary: fake MCP client rejects to exercise invocation error wrapping |
| 32 | callTool: () => Promise.reject(cause), |
| 33 | } as unknown as McpConnection["client"], |
| 34 | close: () => Promise.resolve(), |
| 35 | }); |
| 36 | |
| 37 | const reauthorizationProvider: OAuthClientProvider = { |
| 38 | get redirectUrl() { |