{"repo":"modelcontextprotocol/ruby-sdk","free":true,"listed":false,"github":"https://github.com/modelcontextprotocol/ruby-sdk","clone":"git clone https://github.com/modelcontextprotocol/ruby-sdk.git","description":"The official Ruby SDK for the Model Context Protocol servers and clients.","language":"Ruby","stars":890,"topics":["ruby","mcp","mcp-server","mcp-client"],"license":null,"category":"mcp-servers","readme_excerpt":"MCP Ruby SDK The official Ruby SDK for Model Context Protocol servers and clients. Installation Add this line to your application's Gemfile: And then execute: Or install it yourself as: You may need to add additional dependencies depending on which features you wish to access. Building an MCP Server The MCP::Server class is the core component that handles JSON-RPC requests and responses. It implements the Model Context Protocol specification, handling model context requests and responses. Key Features - Implements JSON-RPC 2.0 message handling - Supports protocol initialization and capability negotiation - Manages tool registration and invocation - Supports prompt registration and execution - Supports resource registration and retrieval - Supports stdio & Streamable HTTP (including SSE) transports - Supports notifications for list changes (tools, prompts, resources) - Supports roots (server-to-client filesystem boundary queries) - Supports sampling (server-to-client LLM completion requests) - Supports cursor-based pagination for list operations - Supports cancellation of in-flight requests on both server and client (notifications/cancelled) Supported Methods - initialize - Initializes the protocol and returns server capabilities - server/discover - Sessionless capability discovery (MCP 2026-07-28, SEP-2575): returns the modern supportedVersions , capabilities , instructions , the required ttlMs / cacheScope cache hints, and the server identity as the optional io.modelcontextp","default_branch":null,"files":null,"tree":[],"storefront":"/r/modelcontextprotocol","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/modelcontextprotocol/ruby-sdk/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}