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

Function jsonRpcResponse

apps/cloud/src/mcp/agent-handler.ts:35–43  ·  view source on GitHub ↗
(
  status: number,
  code: number,
  message: string,
  challenge?: string,
)

Source from the content-addressed store, hash-verified

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

Callers 2

renderAuthErrorFunction · 0.70
makeCloudMcpAgentHandlerFunction · 0.70

Calls 1

jsonRpcErrorBodyFunction · 0.85

Tested by

no test coverage detected