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

Function jsonRpcResponse

apps/host-cloudflare/src/mcp/agent-handler.ts:34–42  ·  view source on GitHub ↗
(
  status: number,
  code: number,
  message: string,
  challenge?: string,
)

Source from the content-addressed store, hash-verified

32 });
33
34const jsonRpcResponse = (
35 status: number,
36 code: number,
37 message: string,
38 challenge?: string,
39): Response =>
40 challenge === undefined
41 ? jsonRpcErrorBody(status, code, message)
42 : jsonRpcErrorBody(status, code, message, { challenge });
43
44const renderAuthError = (
45 auth: McpAuthProvider["Service"],

Callers 2

renderAuthErrorFunction · 0.70

Calls 1

jsonRpcErrorBodyFunction · 0.85

Tested by

no test coverage detected