spring-projects / spring-projects/spring-ai

A few minutes after the mcp client connects, the server will be disconnected

Open
#3,763 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: waiting-for-triage
Dominant language
Java
Stars
9.5k
Forks
2.9k
Avg merge
1d 7h
Merged PRs (30d)
6

Description

A few minutes after the mcp client connects, the server will be disconnected

ERROR io.modelcontextprotocol.client.transport.WebFluxSseClientTransport [] - Fatal SSE error, not retrying: 200 OK from GET http://xxxx/sse, but response failed with cause: reactor.netty.http.client.PrematureCloseException: Connection prematurely closed DURING response

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported WebFluxSseClientTransport error and the SSE connection to the /sse endpoint. Reproduce the premature close that occurs a few minutes after the MCP client connects, then verify that the server connection remains available instead of being disconnected.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.