Resolve a settled waiter's outcome into a value or an exception: if error
is a JSON-RPC error object, throw McpException decoded from its code
(defaulting to internalError) and message (defaulting to defaultMsg);
otherwise return result. Shared by every coordinator's await path so the
error decoding lives in one place.
Resolve a settled waiter's outcome into a value or an exception: if error is a JSON-RPC error object, throw McpException decoded from its code (defaulting to internalError) and message (defaulting to defaultMsg); otherwise return result. Shared by every coordinator's await path so the error decoding lives in one place.