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

Function post

apps/local/src/mcp-pre-initialize.test.ts:46–52  ·  view source on GitHub ↗
(
  body: unknown,
  headers: Record<string, string> = MCP_POST_HEADERS,
)

Source from the content-addressed store, hash-verified

44};
45
46const post = (
47 body: unknown,
48 headers: Record<string, string> = MCP_POST_HEADERS,
49): Promise<Response> =>
50 createMcpRequestHandler({ engine: stubEngine }).handleRequest(
51 new Request("http://local.test/mcp", { method: "POST", headers, body: JSON.stringify(body) }),
52 );
53
54interface JsonRpcErrorBody {
55 readonly error: { readonly code: number; readonly message: string };

Callers 1

Calls 1

createMcpRequestHandlerFunction · 0.90

Tested by

no test coverage detected