V0.5.1
Bug fix and Improved MCP Interface Connection
MCP Interface
RubyLLM::MCP#establish_connection will not optionally take a block. If you want to use the clients outside of the block, you can use the clients method to get the clients.
clients = RubyLLM::MCP.establish_connection
chat = RubyLLM.chat(model: "gpt-4")
chat.with_tools(*clients.tools)
response = chat.ask("Hello, world!")
puts responseThen you are responsible for closing the MCP connections when you are done. We also added a connivence method RubyLLM::MCP#close_connection to do that on your behalf.
RubyLLM::MCP.close_connectionBug Fix
- Generator fold was not included in the gem build. This was fixed in v0.5.1
What's Changed
- Improved MCP Connection Interface by @patvice in #43
- Bug: Include Generator file in MCP gem by @patvice in #42
Full Changelog: v0.5.0...v0.5.1