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

Function postBody

packages/hosts/mcp/src/envelope.test.ts:241–246  ·  view source on GitHub ↗
(body: unknown, headers: Record<string, string> = MCP_POST_HEADERS)

Source from the content-addressed store, hash-verified

239} as const;
240
241const postBody = (body: unknown, headers: Record<string, string> = MCP_POST_HEADERS): Request =>
242 new Request("https://host.test/mcp", {
243 method: "POST",
244 headers,
245 body: JSON.stringify(body),
246 });
247
248const guard = (request: Request): Promise<Response | null> =>
249 Effect.runPromise(preInitializeMethodNotFound(request));

Callers 1

envelope.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected