Skip to content

Commit e1f6485

Browse files
authored
Merge pull request #645 from danmorris27/docs/fix-client-quickstart-import
docs: include require "mcp" in client quick-start examples
2 parents 8bbe002 + f93dad5 commit e1f6485

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ see [Server Transports](https://ruby.sdk.modelcontextprotocol.io/server/transpor
9393
A minimal client spawns a stdio server as a subprocess, connects, and lists and calls its tools:
9494

9595
```ruby
96+
require "mcp"
97+
9698
stdio_transport = MCP::Client::Stdio.new(
9799
command: "bundle",
98100
args: ["exec", "ruby", "path/to/server.rb"],

‎docs/index.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ see [Server Transports](/server/transports/).
7575
A minimal client spawns a stdio server as a subprocess, connects, and lists and calls its tools:
7676

7777
```ruby
78+
require "mcp"
79+
7880
stdio_transport = MCP::Client::Stdio.new(
7981
command: "bundle",
8082
args: ["exec", "ruby", "path/to/server.rb"],

0 commit comments

Comments
 (0)