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

Function mcpPost

e2e/cloud/mcp-telemetry-contract.test.ts:40–49  ·  view source on GitHub ↗
(url: string | URL, bearer: string | null, body: unknown)

Source from the content-addressed store, hash-verified

38const emailOf = (identity: Identity): string => identity.credentials?.email ?? identity.label;
39
40const mcpPost = (url: string | URL, bearer: string | null, body: unknown): Promise<Response> =>
41 fetch(url, {
42 method: "POST",
43 headers: {
44 accept: JSON_AND_SSE,
45 "content-type": "application/json",
46 ...(bearer ? { authorization: `Bearer ${bearer}` } : {}),
47 },
48 body: JSON.stringify(body),
49 });
50
51scenario(
52 "MCP telemetry · an authenticated initialize exports mcp.request with the client fingerprint",

Callers 1

Calls 1

fetchFunction · 0.50

Tested by

no test coverage detected