JSON-RPC 2.0 parsing and formatting for the MCP Gateway.
Summary
Functions
Formats a JSON-RPC 2.0 error response.
Formats a successful JSON-RPC 2.0 response.
Parses an incoming map into a structured JSON-RPC request.
Validates jsonrpc: "2.0", method, params, and id.
Types
Functions
Formats a JSON-RPC 2.0 error response.
Formats a successful JSON-RPC 2.0 response.
Parses an incoming map into a structured JSON-RPC request.
Validates jsonrpc: "2.0", method, params, and id.
Returns {:ok, request} or {:error, error_response}.