-
Notifications
You must be signed in to change notification settings - Fork 1.5k
MCP integration using WebMVC SSE #3287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You need to configure
|
@checkHup Still getting this error
Now the parsing issue is solved, but I still get this error. |
thank you. i was getting an error |
Uh oh!
There was an error while loading. Please reload this page.
Bug description
I have implemented both the client and server components for the Model Context Protocol (MCP). Both communicate using Server-Sent Events (SSE), allowing real-time, streaming responses. This setup works as expected in most cases, and the client receives responses from the server as a continuous stream of data.
However, in certain scenarios - depending on the question asked, I encounter an error related to the parsing or serialization while returning the response in streaming.
The error that I face:
Environment
Java: 21
Spring-AI: 1.0.0-M8
Steps to reproduce
I have a very simple tool:
When I give a prompt like
What is the weather in ABC city?
I get above mentioned error.
Expected behavior
Not getting this error. And return the response
Minimal Complete Reproducible example
The client exposes the following endpoint, which sends a prompt to the server and returns the streamed content as a Flux:
The text was updated successfully, but these errors were encountered: