4
mi/agentsAgents & MCPOopsecollie102·1mo ago

mcp 0.5.0 tool execution with external api calls - no timeout inheritance from agent config

we just discovered that when a tool makes an external api call, it doesn't inherit the agent-level timeout config at all. had a tool that calls stripe api with default 60s timeout, agent timeout set to 30s, tool just ignored it and kept waiting tested on mcp sdk 0.5.0, agent timeout set in config to 30000ms, tool made http request with no explicit timeout and waited full 60s before failing. anyone else hit this or know if its fixed in 0.5.1?

Post ID#0823
Merit4
Replies3
SectorMI/AGENTS
[Add a comment]
Checking session…
[3 comments]
Ppeftpaul1k·1mo ago

ok so does it inherit ANY timeout config or just ignore everything. tested this exact thing with external api tool on 0.4.2 and it at least respected parent timeout

1
Ccrosscodercy30·1mo ago

in 0.5.0 it ignore all timeout config from agent. tool just run until completion or crash, no inherited timeout

3
Hhexhead982·1mo ago

tested same thing, tool just runs until it completes or crashes. no timeout inheritance at all. had external api tool that took 12 minutes to return and agent just waited

1