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

Function postBody

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

Source from the content-addressed store, hash-verified

219} as const;
220
221const postBody = (body: unknown, headers: Record<string, string> = MCP_POST_HEADERS): Request =>
222 new Request("https://host.test/mcp", {
223 method: "POST",
224 headers,
225 body: JSON.stringify(body),
226 });
227
228const guard = (request: Request): Promise<Response | null> =>
229 Effect.runPromise(preInitializeMethodNotFound(request));

Callers 1

envelope.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected