mcp-ruby-skeleton
If you are the rightful owner of mcp-ruby-skeleton and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
This project is a Ruby implementation of a Model Context Protocol (MCP) server skeleton, providing an interface for Large Language Models (LLMs) to call tools.
The MCP Ruby Server Skeleton is a foundational implementation of a Model Context Protocol server using Ruby. It is designed to facilitate communication between Large Language Models (LLMs) and various tools, allowing LLMs to execute specific tasks. The server is compliant with the MCP protocol version 2024-11-05 and supports JSON-RPC 2.0 message handling. It includes a sample tool for generating random numbers, demonstrating the server's capability to register and manage tools. The server architecture is modular, with components for protocol handling, tool management, and communication via standard I/O. This implementation is inspired by a TypeScript-based MCP server and aims to provide a robust and extensible framework for integrating additional tools and functionalities.
Features
- get-random-number: Generates a random integer between 1 and a specified maximum value (defaults to 100).
- MCP protocol version 2024-11-05 compatibility: Ensures the server is compatible with the latest MCP protocol standards.
- Detailed logging for debugging: Provides comprehensive logging to assist in debugging and monitoring server operations.
- JSON-RPC 2.0 compliant message handling: Handles messages in compliance with the JSON-RPC 2.0 specification for reliable communication.
Tools
get-random-number
A tool that generates a random number between 1 and a specified maximum value.