8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f67c3ee commit fc021eeCopy full SHA for fc021ee
src/mcp/client/websocket.py
@@ -59,8 +59,7 @@ async def ws_reader():
59
try:
60
async for raw_text in ws:
61
62
- data = json.loads(raw_text)
63
- message = types.JSONRPCMessage.model_validate(data)
+ message = types.JSONRPCMessage.model_validate_json(raw_text)
64
4291 await read_stream_send.send(message)
65
except Exception as exc:
66
# If JSON parse or model validation fails, send the exception
0 commit comments