Skip to content

Add Ruby MCP client example#121

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

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

Conversation

@koic
Copy link
Member

@koic koic commented Mar 21, 2026

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 koic force-pushed the add_ruby_client branch from 04d4e36 to c96beb2 Compare March 21, 2026 21:22
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.
@koic koic force-pushed the add_ruby_client branch from c96beb2 to ded9106 Compare March 23, 2026 13:50
@a-akimov a-akimov assigned a-akimov and unassigned a-akimov Mar 23, 2026
@a-akimov a-akimov self-requested a review March 23, 2026 22:29
Copy link
Contributor

@a-akimov a-akimov left a comment

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:main Mar 23, 2026
2 checks passed
@koic koic deleted the add_ruby_client branch March 24, 2026 03:02
Sign up for free to 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