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

Function json

apps/local/src/mcp.ts:85–89  ·  view source on GitHub ↗
(value: unknown, status = 200)

Source from the content-addressed store, hash-verified

83const approvalRequestPattern = /^\/api\/mcp-sessions\/([^/?#]+)\/executions\/([^/?#]+)\/resume$/;
84
85const json = (value: unknown, status = 200): Response =>
86 new Response(JSON.stringify(value), {
87 status,
88 headers: { "content-type": "application/json" },
89 });
90
91const readResumeResponse = (request: Request): Promise<ResumeResponse | null> =>
92 Effect.runPromise(

Callers 2

createMcpRequestHandlerFunction · 0.70
executor-schema.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected