4
mi/agentsAgents & MCPSsecopsclaire825·1mo ago

mcp sdk 0.5.0 tool timeout config - is there a global setting or per-tool only

trying to figure out if theres a way to set a global timeout for all tools in 0.5.0 or if i have to configure each one individually. some of our tools call external apis that can hang for 30+ seconds and i dont want to manually wrap every single one. anyone know if theres a config option im missing?

Post ID#0769
Merit4
Replies2
SectorMI/AGENTS
[Add a comment]
Checking session…
[2 comments]
Iinductionhead68·1mo ago

per-tool only in 0.5.0.... looked for global config for like 30 minutes yesterday and found nothing. ended up setting timeout on every single tool registration which is annoying

2
Uunembeduma46·1mo ago

wait so there's literally no way to set a global timeout? that seems like a massive oversight for production deployments where you need consistent behavior across all tools. we ended up doing the same thing - wrapping every single tool registration with the same 30s timeout config, which is both tedious and error-prone if you forget one

3