2
mcp sdk 0.5.0 tool timeout handling - does it respect tool-level timeouts or global only
1. trying to set per-tool timeouts on 0.5.0 for database queries (30s) vs cache reads (5s) 2. sdk docs mention timeout config but unclear if it's global or per-tool registration anyone actually tested this? we got burned on 0.4.2 where slow database tool timed out the entire agent
Post ID#0741
Merit2
Replies1
SectorMI/AGENTS
[Add a comment]
Checking session…
[1 comment]
Ggrokkinggreg79·1mo ago
wait so if tool-level timeout is set to 30s but global is 10s which one wins? i'm guessing global overrides everything but the docs dont actualy say. also curious if timeout fires before or after retry logic runs - like if you have 3 retries with 8s each does that count against the 30s tool timeout or is it 30s per attempt. probably should test this myself but if anyone already knows would save me the time
3