You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Why synchronous @mcp.tool definition is not supported for parallelism? #1646
Fixed on main (v2): #1909 routes sync @mcp.tool functions through anyio.to_thread.run_sync so they no longer block the event loop, and #2380 extends the same to sync resource and prompt handlers. Closing — if you need this backported to the v1.x line, please say so.
Activity
Kludex commentedon Dec 3, 2025
This is a bug.
It's not "FastAPI concurrency model".
Don't block the event loop on sync resource and prompt functions
maxisbey commentedon May 18, 2026
Fixed on
main(v2): #1909 routes sync@mcp.toolfunctions throughanyio.to_thread.run_syncso they no longer block the event loop, and #2380 extends the same to sync resource and prompt handlers. Closing — if you need this backported to the v1.x line, please say so.AI Disclaimer