Skip to content

Remove obsolete MCP::Transports module#331

Merged
koic merged 1 commit intomodelcontextprotocol:mainfrom
koic:remove_obsolete_transport_module
Apr 28, 2026
Merged

Remove obsolete MCP::Transports module#331
koic merged 1 commit intomodelcontextprotocol:mainfrom
koic:remove_obsolete_transport_module

Conversation

@koic
Copy link
Copy Markdown
Member

@koic koic commented Apr 26, 2026

Motivation and Context

lib/mcp/transports/stdio.rb was a deprecated shim that redirected users from MCP::Transports::StdioTransport to MCP::Server::Transports::StdioTransport. It has been 10 months since the migration path was introduced, providing sufficient time for users to update their code.

How Has This Been Tested?

All tests pass (rake test), and no code in the repository references MCP::Transports or mcp/transports/stdio.

Breaking Changes

require "mcp/transports/stdio" and MCP::Transports::StdioTransport are removed. Use require "mcp/server/transports/stdio_transport" and MCP::Server::Transports::StdioTransport instead.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

## Motivation and Context

`lib/mcp/transports/stdio.rb` was a deprecated shim that redirected users
from `MCP::Transports::StdioTransport` to `MCP::Server::Transports::StdioTransport`.
It has been 10 months since the migration path was introduced, providing sufficient time
for users to update their code.

## How Has This Been Tested?

All tests pass (`rake test`), and no code in the repository references `MCP::Transports`
or `mcp/transports/stdio`.

## Breaking Changes

`require "mcp/transports/stdio"` and `MCP::Transports::StdioTransport` are removed.
Use `require "mcp/server/transports/stdio_transport"` and `MCP::Server::Transports::StdioTransport` instead.
@koic koic merged commit 2ad3d21 into modelcontextprotocol:main Apr 28, 2026
11 checks passed
@koic koic deleted the remove_obsolete_transport_module branch April 28, 2026 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants