Skip to content

V0.5.1

Choose a tag to compare

@patvice patvice released this 07 Jul 21:37
· 231 commits to main since this release
65f0248

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 response

Then 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_connection

Bug 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