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

Function jsonResponse

apps/host-cloudflare/src/mcp/index.ts:20–21  ·  view source on GitHub ↗
(value: unknown, status: number)

Source from the content-addressed store, hash-verified

18const RESUME_PATH = /^\/api\/mcp-sessions\/([^/?#]+)\/executions\/([^/?#]+)\/resume$/;
19
20const jsonResponse = (value: unknown, status: number): Response =>
21 new Response(JSON.stringify(value), { status, headers: { "content-type": "application/json" } });
22
23export const makeCloudflareApprovalHandler = (
24 config: CloudflareConfig,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected