Skip to content

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
@tzolov tzolov modified the milestones: 1.0.0-RC1, 1.0.x May 9, 2025
@markpollack markpollack removed this from the 1.1.0.M1 milestone Sep 25, 2025
@tzolov
Copy link
Contributor

tzolov commented Sep 29, 2025

Thank you @baekgol ,
It is trivial to create transport for any stdio, sse and/or streamable-http and they use it to create McpClient (e.g. McpClient.sync(transport) or McpClient.async(transport). I don't see the reason of adding additional utils for it.

@tzolov tzolov closed this Sep 29, 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