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

Function jsonRpcResponse

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

Source from the content-addressed store, hash-verified

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

Callers 2

renderAuthErrorFunction · 0.70
makeCloudMcpAgentHandlerFunction · 0.70

Calls 1

jsonRpcErrorBodyFunction · 0.85

Tested by

no test coverage detected