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?
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?
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.
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
same exact behavior. agent just hangs forever with no timeout