Can multiple MCP servers with different endpoints be published in one service? An entry application needs to have a unified capability to implement routing forwarding for multiple MCP servers.
Comment From: flamezhang
+1
Comment From: flamezhang
@alexanderqiu have you found a solution now?
Comment From: apappascs
You can give it a try, but it will likely require some additional setup. Specifically, you'll need to ensure that each MCP server exposes its endpoints under a distinct path or port to avoid conflicts. Also, session management could become a challenge, as the MCP server maintains its own state. This might require a deeper look into the server implementation to fully understand how sessions are handled and whether multiple instances can safely coexist.
Comment From: alexanderqiu
I tried to rewrite McpServerAutoConfiguration and McpWebFluxServerAutoConfiguration and have succeeded