Enable external client management#38
Merged
patvice merged 3 commits intopatvice:mainfrom Jul 7, 2025
MadBomber:enable_external_client_management
Merged
Enable external client management#38patvice merged 3 commits intopatvice:mainfrom MadBomber:enable_external_client_management
patvice merged 3 commits intopatvice:mainfrom
MadBomber:enable_external_client_management
Conversation
Updated the `RubyLLM::MCP.client` method to create a new client instance each time it's called. This allows for better management of multiple MCP clients with varying configurations instead of returning a single memoized instance, enhancing the flexibility for applications needing concurrent client handling. Additionally, added a new document outlining the capabilities and usage patterns for managing multiple clients effectively.
patvice
reviewed
Jul 7, 2025
managing_multiple_clients.md
Outdated
| @@ -0,0 +1,342 @@ | |||
| # Managing Multiple MCP Clients | |||
Owner
There was a problem hiding this comment.
While interesting - I feel like this should be taken into docs (which are coming) instead of a .md file in the root of the project
Owner
|
Hey @MadBomber - I'm going to reduce the readme contributions here and pop off the extra |
Owner
|
Thanks for the contribution @MadBomber |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I also implemented the business logic for the @client as an Array but ran out of time trying to figure out the test suite. It had no provisions for running the MCP servers found in the fixtures directory. I may come back to that later unless you already have a solution.