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

Function jsonRpcResponse

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

Source from the content-addressed store, hash-verified

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

Callers 2

renderAuthErrorFunction · 0.70
makeCloudMcpAgentHandlerFunction · 0.70

Calls 1

jsonRpcErrorBodyFunction · 0.85

Tested by

no test coverage detected