Skip to content

Can HTTP streamable support tool execution process return StreamingResponse , similar to large model dialogue? #930

Closed as duplicate

Description

@zhz292

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.

Activity

  1. reqyou commented on Jun 25, 2025

    @reqyou

    duplicate to #472

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions