mcp-ruby-skeleton
The MCP Ruby Server Skeleton is a framework for building Model Context Protocol (MCP) servers in Ruby. It facilitates the interaction between Large Language Models and various tools, exemplified by a random number generator tool. The server supports the latest MCP protocol and JSON-RPC 2.0 messaging.
MCP Ruby Server Skeleton
This project provides a Ruby implementation of a Model Context Protocol (MCP) server skeleton. It features an interface for Large Language Models (LLMs) to call tools, with an example tool for generating random numbers. The server is compatible with MCP protocol version 2024-11-05, supports JSON-RPC 2.0 for message handling, and includes detailed logging for debugging.
Features
- Random number generation tool
- MCP protocol compatibility
- JSON-RPC 2.0 compliant
Usage
Execute the server via the provided script and optionally integrate with Claude Desktop for additional functionality.
Debugging and Development
Includes logging instructions for troubleshooting and guidelines for adding new tools and implementing tests.