Skip to content

Improved MCP Connection Interface#43

Merged
patvice merged 1 commit intomainfrom
improved-mcp-interface
Jul 7, 2025
Merged

Improved MCP Connection Interface#43
patvice merged 1 commit intomainfrom
improved-mcp-interface

Conversation

@patvice
Copy link
Owner

@patvice patvice commented Jul 7, 2025

RubyLLM::MCP#establish_connection will now take a block optionally. If the block is not provided, we will start all clients. If a block is provided, we will start all clients, yield the clients to the block and then close all clients.

We are going to add a new method to RubyLLM::MCP#close_connection in case you called RubyLLM::MCP#establish_connection without a block.

From feedback from @MadBomber - #40. Thanks so much!

@patvice patvice merged commit 405bbad into main Jul 7, 2025
5 of 8 checks passed
@patvice patvice deleted the improved-mcp-interface branch July 7, 2025 21:28
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

Successfully merging this pull request may close these issues.

1 participant