()
| 236 | `JSONRPCError` whose `error` carries the same code, message, and data.""" |
| 237 | |
| 238 | async def fail() -> dict[str, Any]: |
| 239 | raise MCPError(code=METHOD_NOT_FOUND, message="nope", data="x") |
| 240 | |
| 241 | reply = await _to_jsonrpc_response("rid", fail()) |
| 242 | assert isinstance(reply, JSONRPCError) |
no test coverage detected