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

Function json

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

Source from the content-addressed store, hash-verified

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

Callers 2

createMcpRequestHandlerFunction · 0.70
executor-schema.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected