Skip to content

Commit 146d7ef

Browse files
pengwagithub-user-nameKludexfelixweinberger
authored
Add error log for client stdio (#924)
Co-authored-by: Your Name <[email protected]> Co-authored-by: Marcelo Trylesinski <[email protected]> Co-authored-by: Felix Weinberger <[email protected]>
1 parent 71889d7 commit 146d7ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mcp/client/stdio/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ async def stdout_reader():
154154
try:
155155
message = types.JSONRPCMessage.model_validate_json(line)
156156
except Exception as exc:
157+
logger.exception("Failed to parse JSONRPC message from server")
157158
await read_stream_writer.send(exc)
158159
continue
159160

0 commit comments

Comments
 (0)