From a28a34374164e240f59bba7eac378802a2332c94 Mon Sep 17 00:00:00 2001 From: Yuki Minamiya Date: Mon, 25 May 2026 03:01:23 +0900 Subject: [PATCH] [Doc] Fix typos in MCP::Client method references The methods are defined as singular `call_tool` and `read_resource`, not plural `call_tools` and `read_resources`: https://github.com/modelcontextprotocol/ruby-sdk/blob/dd7daca/lib/mcp/client.rb#L315 https://github.com/modelcontextprotocol/ruby-sdk/blob/dd7daca/lib/mcp/client.rb#L331 --- README.md | 2 +- docs/building-clients.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 10dd3960..81881a71 100644 --- a/README.md +++ b/README.md @@ -1755,7 +1755,7 @@ This class supports: - Liveness check via the `ping` method (`MCP::Client#ping`) - Tool listing via the `tools/list` method (`MCP::Client#tools`) -- Tool invocation via the `tools/call` method (`MCP::Client#call_tools`) +- Tool invocation via the `tools/call` method (`MCP::Client#call_tool`) - Resource listing via the `resources/list` method (`MCP::Client#resources`) - Resource template listing via the `resources/templates/list` method (`MCP::Client#resource_templates`) - Resource reading via the `resources/read` method (`MCP::Client#read_resource`) diff --git a/docs/building-clients.md b/docs/building-clients.md index 247ec757..f8f37c79 100644 --- a/docs/building-clients.md +++ b/docs/building-clients.md @@ -11,7 +11,7 @@ The `MCP::Client` class provides an interface for interacting with MCP servers. **Supported operations:** - Tool listing (`MCP::Client#tools`) and invocation (`MCP::Client#call_tool`) -- Resource listing (`MCP::Client#resources`) and reading (`MCP::Client#read_resources`) +- Resource listing (`MCP::Client#resources`) and reading (`MCP::Client#read_resource`) - Resource template listing (`MCP::Client#resource_templates`) - Prompt listing (`MCP::Client#prompts`) and retrieval (`MCP::Client#get_prompt`) - Completion requests (`MCP::Client#complete`)