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

Function request

apps/cloud/src/mcp/auth-provider.test.ts:40–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38const ORG_ID = "org_test";
39
40const request = () =>
41 new Request("https://executor.sh/mcp", {
42 method: "POST",
43 headers: {
44 authorization: "Bearer token_fixture",
45 [MCP_ORGANIZATION_HEADER]: ORG_ID,
46 "content-type": "application/json",
47 },
48 body: JSON.stringify({ jsonrpc: "2.0", method: "tools/list", id: 1 }),
49 });
50
51// A verified bearer that carries an account + org — the org-authorize branch is
52// what we exercise, so verifyBearer succeeds here.

Callers 1

authenticateWithFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected