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

Function postJson

e2e/cloud/mcp-session-idle-runtime-disposal.test.ts:60–65  ·  view source on GitHub ↗
(mcpUrl: string, bearer: string, body: unknown, sessionId?: string)

Source from the content-addressed store, hash-verified

58});
59
60const postJson = (mcpUrl: string, bearer: string, body: unknown, sessionId?: string) =>
61 fetch(mcpUrl, {
62 method: "POST",
63 headers: mcpHeaders(bearer, sessionId),
64 body: JSON.stringify(body),
65 });
66
67const openSession = async (mcpUrl: string, bearer: string): Promise<string> => {
68 const initialized = await postJson(mcpUrl, bearer, {

Callers 2

openSessionFunction · 0.70
executeFunction · 0.70

Calls 2

mcpHeadersFunction · 0.70
fetchFunction · 0.50

Tested by

no test coverage detected