Description
Expected Behavior
View my example project. I have covered the McpSeverSession in the sdk, making it unnecessary to maintain the state and to maintain the SSE connection
https://github.com/shootercheng/streamable-mcp/blob/dev/README.md
Current Behavior
I want to customize the McpServerSession class so that it does not need to maintain state, but I found that too much needs to be changed by reading the source code
Context
Each SSE connection maintains an open HTTP thread (in JavaWeb), potentially straining server resources under high load.
I have tried to remove SSE, but I found that just adding a WebMvcNoSseServerTransportProvider
class is not enough. I also need to change the McpServerSession
to remove state maintenance. I also tried to add a subclass similar to McpServerSession,
and found that it does not support extension, so I need to change McpAsyncServer.
If I don't change the McpAsyncServer
and add a new one similar to the McpAsyncServer,
the automatic loading of SpringBoot is implemented through the McpAsyncServer,
so I will change more class contents