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

Function jsonRpcResponse

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

Source from the content-addressed store, hash-verified

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

Callers 2

renderAuthErrorFunction · 0.70

Calls 1

jsonRpcErrorBodyFunction · 0.85

Tested by

no test coverage detected