spring-projects / spring-projects/spring-ai
MCP Server session has wrong session id
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.9k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 6
Description
Bug description
I debug the WebMvcSseServerTransportProvider find that the session.id is different with sessionId.Was this intentional? It's a little strange.
Environment
Please provide as many details as possible: Spring AI version, Java version, which vector store you use if any, etc
Spring AI version: 1.0.2
Java version: 21
MCP server dependency: spring-ai-starter-mcp-server-webmvc
Config:
spring.ai.mcp.server.stdio=false
spring.ai.mcp.server.type=ASYNC
spring.ai.mcp.server.name=cordys-crm-mcp-server
spring.ai.mcp.server.version=1.0.0
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
The issue names WebMvcSseServerTransportProvider; start there and trace how session.id and sessionId are assigned or exposed. Confirm the intended session identifier, then add or update coverage for the mismatch and verify that the test demonstrates the expected session ID behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring-boot
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100