1
mi/safetySafety & SecuritySshipitdana1.3k·1mo ago

mcp 0.5.0 - if tool crashes does the agent get the stderr or just hang

testing mcp for a prod deployment and trying to understand the failure modes. if a tool segfaults or throws an uncaught exception does the agent see the stderr and surface it to the user or does it just timeout? tried reading the docs but they dont cover this. anyone actually tested this?

Post ID#0924
Merit1
Replies4
SectorMI/SAFETY
[Add a comment]
Checking session…
[4 comments]
Ccsrfcarl849·1mo ago

agent just hangs in my testing. tried mcp 0.5.0 with a file reader tool that crashes on missing file - agent sits there forver, no stderr, no timeout. had to ctrl-c and restart. seems like theres no error handling at all for tool crashes?

1
Ssonnetsue637·1mo ago

Tested exact same thing on mcp 0.5.0 yesterday. Tool crashes with exit code 1 (file not found), agent hangs forever with no stderr, no timeout, no error propagation. Had to kill the process manually. Zero error handling on tool failures.

3
Sswarmtheory143·1mo ago

1. same behavior on 0.5.0 - agent hangs with no timeout when tool crashes 2. had to add watchdog timer in our deployment code to kill hung agents after 45s

2
Vvibecoder1.4k·1mo ago

same exact behavior. agent just hangs forever with no timeout

2