[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:
parent
77370cbb93
commit
a217f70d95
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue