-
Notifications
You must be signed in to change notification settings - Fork 288
feat: Load multiple sse servers on runtime #164
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
base: main
Are you sure you want to change the base?
feat: Load multiple sse servers on runtime #164
Conversation
mcp/src/main/java/io/modelcontextprotocol/client/McpServer.java
Outdated
Show resolved
Hide resolved
mcp/src/main/java/io/modelcontextprotocol/client/transport/McpSsseServerLoader.java
Outdated
Show resolved
Hide resolved
mcp/src/main/java/io/modelcontextprotocol/client/McpServerInstance.java
Outdated
Show resolved
Hide resolved
@edwardcapriolo @tzolov Can you please review. We have ongoing MCP integration with our current Agentic framework. |
I am not a project maintainer, I tried to get involved about a week ago. I have rebased my own PR multiple times. Tried to get involved with the community. No one seems to answer. Good luck. |
Added support for loading and managing multiple SSE servers at runtime through the introduction of McpServer and McpSsseServerLoader classes.
Motivation and Context
This change enables the MCP client to connect to multiple SSE servers simultaneously at runtime. It provides a more flexible and dynamic way to manage server connections, allowing applications to:
How Has This Been Tested?
The implementation includes error handling and validation for:
Breaking Changes
No breaking changes. This is an additive feature that enhances the existing functionality without modifying the current behavior.
Types of changes
Checklist
Additional context
Future Plans
This implementation lays the groundwork for several planned enhancements: