McpResponse
A JSON-RPC 2.0 response envelope.
Exactly one of result or error is present. Protocol-level failures are
still HTTP 200, as JSON-RPC requires; only a missing or invalid bearer
token produces a non-2xx status.
error object
oneOf
- null
- JsonRpcError
null
id objectrequired
Echo of the request id (a string or integer), 1 when the request
omitted one, or null when the body was not parseable JSON.
- integer<int64>
- string
- null
An integer id.
integer<int64>
An integer id.
Example:
1jsonrpcstringrequired
Protocol version. Always 2.0.
Example:
2.0resultobject | nullnullable
Tool result on success.
McpResponse
{
"error": "null",
"id": 1,
"jsonrpc": "2.0",
"result": "Unknown Type: object,null"
}