Skip to content

Add Ruby MCP client example - #121

Merged
a-akimov merged 1 commit into
modelcontextprotocol:mainfrom
koic:add_ruby_client
Mar 23, 2026
Merged

Add Ruby MCP client example#121
a-akimov merged 1 commit into
modelcontextprotocol:mainfrom
koic:add_ruby_client

Conversation

@koic

@koickoic commented Mar 21, 2026

Copy link
Copy Markdown
Member

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.0 or higher, which supports the stdio client.
https://github.com/modelcontextprotocol/ruby-sdk/releases/tag/v0.9.0

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

Once anthropics/anthropic-sdk-ruby#161 is merged and released, gem "base64" will no longer be needed in the Gemfile.

koic added a commit to modelcontextprotocol/ruby-sdk that referenced this pull request Mar 23, 2026
This release includes a bug fix that did not make it into v0.9.0.
It also simplifies the example in modelcontextprotocol/quickstart-resources#121.
## 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 anthropics/anthropic-sdk-ruby#161 is merged and released,
`gem "base64"` will no longer be needed in the Gemfile.
@a-akimova-akimov assigned a-akimov and unassigned a-akimovMar 23, 2026
@a-akimov
a-akimov self-requested a review March 23, 2026 22:29

@a-akimova-akimov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested it locally with a Ruby MCP server, on a Windows machine. It works, so I am approving it.

@a-akimov
a-akimov merged commit 2ef4769 into modelcontextprotocol:mainMar 23, 2026
2 checks passed
@koic
koic deleted the add_ruby_client branch March 24, 2026 03:02
@koickoic mentioned this pull request Aug 7, 2026
5 tasks
olaservo pushed a commit that referenced this pull request Aug 10, 2026
Follow-up to #121.
This PR removes the `base64` dependency from the Gemfile, as it became a runtime dependency of
Claude SDK for Ruby v1.60.0+.
anthropics/anthropic-sdk-ruby#161 (comment)
Sign up for freeto 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.

2 participants

@koic@a-akimov