module Rubydex::MCPServer::JSONRPC
Constants
- INTERNAL_ERROR
- INVALID_PARAMS
- INVALID_REQUEST
- METHOD_NOT_FOUND
- PARSE_ERROR
Public Class Methods
(untyped, Integer, String, ?data: untyped) → Hash
Source
# File lib/rubydex/mcp_server/protocol.rb, line 16 def error_response(id, code, message, data: nil) { jsonrpc: "2.0", id: id, error: { code: code, message: message, data: data, }.compact, } end