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

Function jsonRpcResponse

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

Source from the content-addressed store, hash-verified

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

Callers 2

renderAuthErrorFunction · 0.70
makeCloudMcpAgentHandlerFunction · 0.70

Calls 1

jsonRpcErrorBodyFunction · 0.85

Tested by

no test coverage detected