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:
commit
0027ce7126
1 changed files with 15 additions and 0 deletions
15
lib/mcp/transports/stdio.rb
Normal file
15
lib/mcp/transports/stdio.rb
Normal 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
|
||||||
Loading…
Reference in a new issue