Pre-check

  • [x] I am sure that all the content I provide is in English.

Search before asking

  • [x] I had searched in the issues and found no similar feature requirement.

Apache Dubbo Component

Java SDK (apache/dubbo)

Descriptions

To enhance the capabilities of the Dubbo MCP protocol, we plan to introduce support for the streamable protocol. This will enable more flexible and efficient streaming communication models, suitable for scenarios like real-time data push, long-lived connections, and bidirectional streaming.

Related issues

No response

Are you willing to submit a pull request to fix on your own?

  • [ ] Yes I am willing to submit a pull request on my own!

Code of Conduct

Comment From: wcy666103

I'm working on it.

Comment From: mitpjones

Will this 'streamable protocol' only be applicable to MCP or will it be able to be used for non MCP uses as well?

Comment From: RainYuY

Will this 'streamable protocol' only be applicable to MCP or will it be able to be used for non MCP uses as well?

Dubbo itself supports stream-based requests, which you can find in the official documentation. This issue specifically refers to the Streamable protocol in MCP.

Comment From: mitpjones

The reason I am asking is because my understanding of https://html.spec.whatwg.org/multipage/server-sent-events.html is that a Server-Sent Events (SSE) implementation will automatically re-establish the event stream if the connection is dropped. Dubbo streaming does not do this, and leaves it to the user to develop code to re-establish the stream. I have yet to find documentation or an example on how best to do this, although I am sure it must be a regular requirement of production systems.