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:
Koichi ITO 2026-03-21 03:54:27 +09:00
commit ded91068d0

8
mcp-client-ruby/Gemfile Normal file
View file

@ -0,0 +1,8 @@
# frozen_string_literal: true
source "https://rubygems.org"
gem "anthropic"
gem "base64"
gem "dotenv"
gem "mcp", '>= 0.9.1'