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

Function jsonRpcError

packages/hosts/mcp/src/in-memory-session-store.ts:118–119  ·  view source on GitHub ↗
(status: number, code: number, message: string)

Source from the content-addressed store, hash-verified

116// re-wraps the store `Response` with CORS before it leaves the origin, so the
117// canonical renderer is called with `cors: false` (content-type only).
118const jsonRpcError = (status: number, code: number, message: string): Response =>
119 jsonRpcErrorBody(status, code, message, { cors: false });
120
121const json = (value: unknown, status = 200): Response =>
122 new Response(JSON.stringify(value), { status, headers: { "content-type": "application/json" } });

Callers 2

runHandleRequestFunction · 0.85
createFunction · 0.85

Calls 1

jsonRpcErrorBodyFunction · 0.90

Tested by

no test coverage detected