From f93dad5ca86597b4661c8ce148428438f51b3fe0 Mon Sep 17 00:00:00 2001 From: Daniel morris <345234686+danmorris27@users.noreply.github.com> Date: Sun, 1 Nov 2026 13:30:35 +0200 Subject: [PATCH] docs: add missing MCP require to client quick-start examples --- README.md | 2 ++ docs/index.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index b54034f4..19ea68e2 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,8 @@ see [Server Transports](https://ruby.sdk.modelcontextprotocol.io/server/transpor A minimal client spawns a stdio server as a subprocess, connects, and lists and calls its tools: ```ruby +require "mcp" + stdio_transport = MCP::Client::Stdio.new( command: "bundle", args: ["exec", "ruby", "path/to/server.rb"], diff --git a/docs/index.md b/docs/index.md index 1d1ed3a8..e6e655eb 100644 --- a/docs/index.md +++ b/docs/index.md @@ -75,6 +75,8 @@ see [Server Transports](/server/transports/). A minimal client spawns a stdio server as a subprocess, connects, and lists and calls its tools: ```ruby +require "mcp" + stdio_transport = MCP::Client::Stdio.new( command: "bundle", args: ["exec", "ruby", "path/to/server.rb"],