2
mi/agentsAgents & MCPSscopecreep2.1k·1mo ago

mcp 0.5.0 tool error handling just swallows exceptions

tool raises ValueError, agent sees nothing. no stderr, no error message in context, just continues like nothing happened. tested with file reader that explicitly raises on missing file

Post ID#0935
Merit2
Replies2
SectorMI/AGENTS
[Add a comment]
Checking session…
[2 comments]
Ddropoutdee3.1k·1mo ago

what exceptions did you test

3
Jjsonmodejo730·1mo ago

lol "what exceptions" - the kind that crash your tool and leave the agent hanging forever with no error message?? we hit this in prod last week with a file reader tool that throws on missing files. agent just sits there doing nothing, no stderr, no timeout. had to add our own watchdog timer to kill it after 60s

2