First of all, thank you for the new release!
I was looking over the new version and noticed a discrepancy between the source code in the v0.1.0 release tag and the code in the main repository.
I attempted to run the stdio_server.rb example located at https://github.com/modelcontextprotocol/ruby-sdk/blob/main/examples/stdio_server.rb, which includes the following lines:
require "mcp/server/transports/stdio_transport"
...
transport = MCP::Server::Transports::StdioTransport.new(server)
However, running this code results in the following LoadError:
'Kernel#require': cannot load such file -- mcp/server/transports/stdio_transport (LoadError)
Upon investigation, it appears the server directory has been removed from the source code published in the gem. Specifically, mcp/server/transports/stdio_transport.rb has been moved to mcp/transports/stdio_transport.rb.
To get the example to work, I had to change the code to:
require "mcp/transports/stdio_transport"
...
transport = MCP::Transports::StdioTransport.new(server)
Is the published gem source code more correct? In any case, the examples in the repository should be updated to reflect the correct, working code.
First of all, thank you for the new release!
I was looking over the new version and noticed a discrepancy between the source code in the v0.1.0 release tag and the code in the main repository.
I attempted to run the stdio_server.rb example located at https://github.com/modelcontextprotocol/ruby-sdk/blob/main/examples/stdio_server.rb, which includes the following lines:
However, running this code results in the following LoadError:
Upon investigation, it appears the server directory has been removed from the source code published in the gem. Specifically,
mcp/server/transports/stdio_transport.rbhas been moved tomcp/transports/stdio_transport.rb.To get the example to work, I had to change the code to:
Is the published gem source code more correct? In any case, the examples in the repository should be updated to reflect the correct, working code.