[Doc] Fix incorrect example code in README

Follow-up to https://github.com/modelcontextprotocol/ruby-sdk/pull/33.

A `NameError` occurs because `MCP::Transports::HTTP` does not exist.
The correct constant is `MCP::Server::Transports::StreamableHTTPTransport`.
This commit is contained in:
Koichi ITO 2025-10-09 00:29:52 +09:00
commit a217f70d95

View file

@ -131,7 +131,7 @@ Notifications follow the JSON-RPC 2.0 specification and use these method names:
```ruby
server = MCP::Server.new(name: "my_server")
transport = MCP::Transports::HTTP.new(server)
transport = MCP::Server::Transports::StreamableHTTPTransport.new(server)
server.transport = transport
# When tools change, notify clients