
rails with ruby mcp client
展示如何在 Rails 应用中使用 ruby-mcp-client gem。
Repository Info
About This Server
展示如何在 Rails 应用中使用 ruby-mcp-client gem。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Assistant with MCP Capabilities
Example usage of ruby-mcp-client gem in a Ruby on Rails application. Parts of the code will be shared in an article describing the gem.
Before you use
Launch an MCP server at http://localhost:3000/mcp/sse. Yes, it's hardcoded - it's just a demo for an article. Adjust to your needs.
How to use
- clone the repository
- run
bundle install - provide OpenAI API key in OPENAI_API_KEY environment variable
- run the application with
bin/dev- the app launches on port 3030 - open
http://localhost:3030/assistantin your browser - submit a prompt (possibly, related to the MCP capabilities)
Available Tools
When you open the root URL http://localhost:3030, you will see a list of all the available tools.
Quick Start
Clone the repository
git clone https://github.com/pstrzalk/rails-with-ruby-mcp-clientInstall dependencies
cd rails-with-ruby-mcp-client
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.