Skip to content

Add Ruby MCP client example#121

Open
koic wants to merge 1 commit intomodelcontextprotocol:mainfrom
koic:add_ruby_client
Open

Add Ruby MCP client example#121
koic wants to merge 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.

## 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

## Additional context

Once anthropics/anthropic-sdk-ruby#161 is merged and released,
`gem "base64"` will no longer be needed in the Gemfile.
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.

1 participant