Skip to content

funwarioisii/sample-mcp-rails

Repository files navigation

sample-mcp-rails

This is a sample Rails application that uses the MCP protocol to call a remote MCP server.

And it introduces how to use mcp-rb gem to call the MCP server.

https://github.com/funwarioisii/mcp-rb

How to run

# install dependencies
bundle install

# run the Rails application
rails s

# create HTTP request to the Rails application
curl http://localhost:3000/hello

Architecture

This project has /mcps directory that contains the MCP server. There is a sample MCP server in mcps/hello_world.rb.

When the Rails application starts, it will connect to the MCP server. see: config/initializers/mcp_hello_world.rb

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published