Content
# 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/assistant` in 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.
Connection Info
You Might Also Like
Time
Obtaining current time information and converting time between different...
Filesystem
Model Context Protocol Servers
Sequential Thinking
Offers a structured approach to dynamic and reflective problem-solving,...
Git
Model Context Protocol Servers
Context 7
Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
semantic-kernel
Integrate cutting-edge LLM technology quickly and easily into your apps