There is no option to expose MCP tools/resources/prompt with webmvc without sse sessions. That is something supported in other languages, like fastmcp with python new FastMCP( ... stateless_http=True)
Expected Behavior
Client should be able to send POST like below to get list of tools or execute a tool without sessionId.
curl -X POST http://<MCP_SERVER_HOST>:<PORT>/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "tools/list",
"params": {},
"id": 1
}'
Current Behavior
Client has to establish session with /sse endpoint first or use STDIO.
Context
Not able to expose MCP server easily with Spring AI.