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

Function postJson

e2e/cloud/mcp-session-cap-eviction.test.ts:48–53  ·  view source on GitHub ↗
(mcpUrl: string, bearer: string, body: unknown, sessionId?: string)

Source from the content-addressed store, hash-verified

46});
47
48const postJson = (mcpUrl: string, bearer: string, body: unknown, sessionId?: string) =>
49 fetch(mcpUrl, {
50 method: "POST",
51 headers: mcpHeaders(bearer, sessionId),
52 body: JSON.stringify(body),
53 });
54
55const decodeRestartEnvelope = Schema.decodeUnknownOption(
56 Schema.fromJsonString(

Callers 2

openSessionFunction · 0.70
executeFunction · 0.70

Calls 2

mcpHeadersFunction · 0.70
fetchFunction · 0.50

Tested by

no test coverage detected