Skip to content

docs: include require "mcp" in client quick-start examples - #645

Merged
koic merged 1 commit into
modelcontextprotocol:mainfrom
danmorris27:docs/fix-client-quickstart-import
Nov 1, 2026
Merged

koic merged 1 commit into
modelcontextprotocol:mainfrom
danmorris27:docs/fix-client-quickstart-import

Conversation

@danmorris27

Copy link
Copy Markdown
Contributor

Summary

Add the missing require "mcp" statement to the client quick-start examples in the README and documentation homepage.

Problem

The examples demonstrate the client in a standalone Ruby script, but do not load the MCP library.

Users copying the client example independently may encounter uninitialized constant MCP.

Changes

  • Add require "mcp" to the README client example.
  • Make the same correction in the documentation homepage.

Validation

  • Confirmed lib/mcp.rb exposes the existing MCP client classes.
  • ruby -c passed for both extracted client snippets.
  • require "mcp" resolved MCP::Client and MCP::Client::Stdio locally.

Documentation-only change; no runtime behavior modified.

@koic
koic merged commit e1f6485 into modelcontextprotocol:main Nov 1, 2026
13 checks passed
@koic

koic commented Nov 1, 2026

Copy link
Copy Markdown
Member

Good catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants