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