Skip to content

Can multiple MCP servers with different endpoints be published in one service? #3299

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
alexanderqiu opened this issue May 23, 2025 · 9 comments

Comments

@alexanderqiu
Copy link

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.

@flamezhang
Copy link

+1

@flamezhang
Copy link

@alexanderqiu have you found a solution now?

@apappascs
Copy link
Contributor

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.

@alexanderqiu
Copy link
Author

alexanderqiu commented May 26, 2025

I tried to rewrite McpServerAutoConfiguration and McpWebFluxServerAutoConfiguration and have succeeded

@sunchangji
Copy link

+1

@wuque1024
Copy link

@alexanderqiu Contribute your code, thank you very much!

@flamezhang
Copy link

@alexanderqiu can you contribute your code? spirng-ai-alibaba nocos should be a good choice?but , I didn't use nocos。

@alexanderqiu
Copy link
Author

@alexanderqiu Contribute your code, thank you very much!

rewrite McpServerAutoConfiguration and McpWebFluxServerAutoConfiguration

@alexanderqiu
Copy link
Author

@alexanderqiu can you contribute your code? spirng-ai-alibaba nocos should be a good choice?but , I didn't use nocos。

rewrite McpServerAutoConfiguration and McpWebFluxServerAutoConfiguration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants