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

Function jsonRpcResponse

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

Source from the content-addressed store, hash-verified

46 });
47
48const jsonRpcResponse = (
49 status: number,
50 code: number,
51 message: string,
52 challenge?: string,
53): Response =>
54 challenge === undefined
55 ? jsonRpcErrorBody(status, code, message)
56 : jsonRpcErrorBody(status, code, message, { challenge });
57
58const renderAuthError = (
59 auth: McpAuthProvider["Service"],

Callers 2

renderAuthErrorFunction · 0.70
makeCloudMcpAgentHandlerFunction · 0.70

Calls 1

jsonRpcErrorBodyFunction · 0.85

Tested by

no test coverage detected