spring-projects / spring-projects/spring-ai
MCP SSE BUG
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.9k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 6
Description
USER: 2025-08-31T10:29:53.825+08:00 ERROR 16380 --- [oundedElastic-2] o.s.ai.mcp.SyncMcpToolCallback : Error calling tool: [TextContent[audience=null, priority=null, text=No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.]]
I upgraded to sb1.0.1, and the MCP SSE request is reporting an error. How to solve this?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at SyncMcpToolCallback, the entry point named in the reported error, and reproduce the MCP SSE call after the stated 1.0.1 upgrade while tracing request-context handling. Done means identifying the cause of the “No thread-bound request found” error and confirming a fix with a regression test or documented reproduction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100