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
Can HTTP streamable support tool execution process return StreamingResponse , similar to large model dialogue? #930
Is your feature request related to a problem? Please describe.
When the mcp tool execution process is long, in order to avoid users waiting too long, intermediate results can be returned to the user first.
Describe the solution you'd like
I tried to define the return of the method using @mcp. tool() as StreamingResponse. When the client call this mcp tool, only str can be obtained instead of the StreamingResponse object.
Reacted by Artur Santos
Reacted by Heiko Zeus, xietingchu-vecml, Artur Santos and lvyf
Activity
reqyou commentedon Jun 25, 2025
duplicate to #472