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

Function localTarget

e2e/targets/local.ts:13–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11import type { Identity, Target } from "../src/target";
12
13export const localTarget = (): Target => ({
14 name: "local",
15 // Placeholders: scenarios navigate to absolute URLs (the CLI prints the real
16 // port), so the browser context's baseURL is never used to resolve a path.
17 baseUrl: "http://127.0.0.1",
18 mcpUrl: "http://127.0.0.1/mcp",
19 // "browser" provides the Browser surface; Cli is always available. No
20 // "mcp-oauth" (bearer-gated, not OAuth consent) and no "billing".
21 capabilities: new Set(["browser"]),
22 // Single-user: a trivial identity with no cookies. The browser authenticates
23 // via the ?_token bootstrap the scenario performs, not via injected identity.
24 newIdentity: () => Effect.sync((): Identity => ({ label: "local" })),
25});

Callers

nothing calls this directly

Calls 1

syncMethod · 0.65

Tested by

no test coverage detected