MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / cloudflareTarget

Function cloudflareTarget

e2e/targets/cloudflare.ts:17–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15 process.env.E2E_CLOUDFLARE_URL ?? `http://127.0.0.1:${CLOUDFLARE_PORT}`;
16
17export const cloudflareTarget = (): Target => ({
18 name: "cloudflare",
19 baseUrl: CLOUDFLARE_BASE_URL,
20 mcpUrl: `${CLOUDFLARE_BASE_URL}/mcp`,
21 // No "billing" and no setAccessTokenTtl (Cloudflare Access is the IdP; not
22 // test-adjustable). "mcp-oauth" advertises that the MCP surface exists — but
23 // dev-auth means it needs no consent flow, so `mcpConsent` is omitted and the
24 // MCP client connects as the dev admin directly.
25 capabilities: new Set(["api", "browser", "mcp-oauth"]),
26 // Dev-auth: one fixed admin. Empty `headers` makes the API surface send no
27 // auth (and skip the Better Auth sign-in path) — the worker resolves every
28 // request to the dev admin. No cookie is needed for the browser either.
29 newIdentity: () => Effect.succeed({ label: "dev-admin", headers: {} } satisfies Identity),
30});

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected