ruby-sdk/lib/mcp
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Koichi ITO 16ab4bac81 Add a migration path for Server::Transports::StdioTransport
Follow-up to #27.

This PR adds a migration path for `Server::Transports::StdioTransport`. e.g.,

```console
$ cat /tmp/example.rb
require "mcp/transports/stdio"

MCP::Transports::StdioTransport
```

This change displays the following warning instead of raising an error for such cases, allowing execution to proceed:

```console
$ bundle exec ruby /tmp/example.rb
/tmp/example.rb:1: warning: Use `require "mcp/server/transports/stdio_transport"` instead of `require "mcp/transports/stdio"`.
Also use `MCP::Server::Transports::StdioTransport` instead of `MCP::Transports::StdioTransport`.
This API is deprecated and will be removed in a future release.
```

Currently (v0.1.0), it results in an error without any warning.
This MCP gem is not yet close to version 1.0, but introducing breaking changes to a published interface is undesirable.

This compatibility code should be removed at some point after a few releases.

Closes #50.
2025-06-10 16:27:22 +09:00
..
prompt stop using shared dir 2025-05-30 14:33:22 -04:00
resource stop using shared dir 2025-05-30 14:33:22 -04:00
server Extract server capabilities into dedicated Capabilities class 2025-06-04 22:52:16 +09:00
tool stop using shared dir 2025-05-30 14:33:22 -04:00
transports Add a migration path for Server::Transports::StdioTransport 2025-06-10 16:27:22 +09:00
configuration.rb stop using shared dir 2025-05-30 14:33:22 -04:00
content.rb stop using shared dir 2025-05-30 14:33:22 -04:00
instrumentation.rb stop using shared dir 2025-05-30 14:33:22 -04:00
methods.rb stop using shared dir 2025-05-30 14:33:22 -04:00
prompt.rb stop using shared dir 2025-05-30 14:33:22 -04:00
resource.rb Merge pull request #34 from koic/make_some_optional_kwargs_in_resource 2025-05-31 13:34:25 -04:00
resource_template.rb stop using shared dir 2025-05-30 14:33:22 -04:00
server.rb Use Capabilities object instead of private method 2025-06-04 22:55:08 +09:00
string_utils.rb stop using shared dir 2025-05-30 14:33:22 -04:00
tool.rb stop using shared dir 2025-05-30 14:33:22 -04:00
transport.rb stop using shared dir 2025-05-30 14:33:22 -04:00
version.rb stop using shared dir 2025-05-30 14:33:22 -04:00