Add Ruby MCP client example
## Motivation and Context Add an LLM-powered chatbot MCP client example using the MCP Ruby SDK and the Anthropic Ruby SDK, following the same pattern as other language examples. https://github.com/modelcontextprotocol/ruby-sdk The Gemfile specifies mcp version 0.9.1 or higher, which supports the stdio client. https://github.com/modelcontextprotocol/ruby-sdk/releases/tag/v0.9.1 ## Additional context Once https://github.com/anthropics/anthropic-sdk-ruby/pull/161 is merged and released, `gem "base64"` will no longer be needed in the Gemfile.
This commit is contained in:
parent
494cfaa301
commit
ded91068d0
1 changed files with 173 additions and 0 deletions
8
mcp-client-ruby/Gemfile
Normal file
8
mcp-client-ruby/Gemfile
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
source "https://rubygems.org"
|
||||
|
||||
gem "anthropic"
|
||||
gem "base64"
|
||||
gem "dotenv"
|
||||
gem "mcp", '>= 0.9.1'
|
||||
Loading…
Reference in a new issue