Skip to content

Add utility class for dynamic MCP stdio connections #2638

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
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

baekgol
Copy link

@baekgol baekgol commented Apr 4, 2025

Overview

This PR adds a new utility class McpClientStdioUtils that enables dynamic creation and management of MCP client connections at runtime using stdio transport. This functionality allows applications to add new MCP connections without relying solely on configuration properties.

Changes

  • Added McpClientStdioUtils class with:
    • Support for both synchronous and asynchronous MCP client creation
    • Consistent configuration using common properties
    • Runtime connection management methods
    • Comprehensive Javadoc documentation

Use Cases

  • Dynamic management of MCP connections without application restart
  • Programmatic addition of connections from user input or configuration
  • Runtime integration with newly discovered MCP servers

@baekgol baekgol force-pushed the main branch 2 times, most recently from da21432 to d3ac3ff Compare April 4, 2025 03:55
@tzolov tzolov added the MCP label Apr 9, 2025
@tzolov tzolov self-assigned this Apr 9, 2025
@markpollack
Copy link
Member

@baekgol There is just one class, with all private static methods. It does not seem to address the functionality mentioned in the description. Can you please elaborate?

@markpollack markpollack added this to the 1.0.0-RC1 milestone Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants