Merge pull request #51 from koic/add_migration_path_for_server_transports_std_transport

Add a migration path for `Server::Transports::StdioTransport`
This commit is contained in:
Koichi ITO 2025-06-18 00:25:00 +09:00 • committed by GitHub
commit 0027ce7126
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,15 @@
# frozen_string_literal: true
require_relative "../server/transports/stdio_transport"
warn <<~MESSAGE, uplevel: 3
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.
MESSAGE
module MCP
module Transports
StdioTransport = Server::Transports::StdioTransport
end
end