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

Function json

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

Source from the content-addressed store, hash-verified

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

Callers 2

createMcpRequestHandlerFunction · 0.70
executor-schema.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected