|
14 | 14 | // |
15 | 15 | // Elicitation coverage uses the openapi plugin: a tiny Effect HttpApi |
16 | 16 | // upstream is stood up in-process, its generated spec is handed to |
17 | | -// `tools.openapi.addSource`, and the cloud engine invokes a POST operation. |
| 17 | +// `tools.executor.openapi.addSource`, and the cloud engine invokes a POST operation. |
18 | 18 | // `requiresApproval: true` fires the executor's approval elicitation, which |
19 | 19 | // round-trips back to the SDK Client's `ElicitRequestSchema` handler. |
20 | 20 | // --------------------------------------------------------------------------- |
@@ -455,7 +455,7 @@ layer(TestEnv, { timeout: 60_000 })("cloud MCP over real HTTP (miniflare)", (it) |
455 | 455 | method: "POST", |
456 | 456 | headers: { |
457 | 457 | accept: "application/json, text/event-stream", |
458 | | - authorization: "Bearer bogus", |
| 458 | + authorization: "Bearer bogus.bogus.bogus", |
459 | 459 | "content-type": "application/json", |
460 | 460 | }, |
461 | 461 | body: JSON.stringify({ |
@@ -794,7 +794,7 @@ layer(TestEnv, { timeout: 60_000 })("cloud MCP over real HTTP (miniflare)", (it) |
794 | 794 | // `HttpApiGroup` name ("approve") becomes part of the sandbox path, |
795 | 795 | // so the invocation reads `tools.approveapi.approve.approveThing`. |
796 | 796 | const code = [ |
797 | | - `await tools.openapi.addSource({ scope: ${JSON.stringify(orgId)}, spec: ${JSON.stringify(specJson)}, namespace: "approveapi" });`, |
| 797 | + `await tools.executor.openapi.addSource({ scope: ${JSON.stringify(orgId)}, spec: ${JSON.stringify(specJson)}, namespace: "approveapi" });`, |
798 | 798 | `return await tools.approveapi.approve.approveThing({});`, |
799 | 799 | ].join("\n"); |
800 | 800 | const result = yield* Effect.promise(() => |
|
0 commit comments