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

Function json

packages/hosts/mcp/src/in-memory-session-store.ts:121–122  ·  view source on GitHub ↗
(value: unknown, status = 200)

Source from the content-addressed store, hash-verified

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" } });
123
124const PAUSED_PATH = /^\/api\/mcp-sessions\/([^/?#]+)\/executions\/([^/?#]+)$/;
125const RESUME_PATH = /^\/api\/mcp-sessions\/([^/?#]+)\/executions\/([^/?#]+)\/resume$/;

Callers 2

handlePausedRequestFunction · 0.70
handleApprovalRequestFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected