Remove the unsupported WebSocket transport (#2785)

This commit is contained in:
Max 2026-06-08 12:05:27 +01:00 • committed by GitHub
commit b478bff56d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -145,6 +145,10 @@ group (spawned with `start_new_session=True`); the `getpgid()` lookup and the
per-process terminate/kill fallback are gone. The win32 utilities logger is now
named `mcp.os.win32.utilities` (was `client.stdio.win32`).
### WebSocket transport removed
The WebSocket transport has been removed: `mcp.client.websocket.websocket_client`, `mcp.server.websocket.websocket_server`, and the `ws` optional dependency extra (`mcp[ws]`) no longer exist. WebSocket was never part of the MCP specification. Use the streamable HTTP transport instead (`mcp.client.streamable_http.streamable_http_client` on the client, `streamable_http_app()` on the server), which supports bidirectional communication with server-to-client streaming over standard HTTP.
### Removed type aliases and classes
The following deprecated type aliases and classes have been removed from `mcp.types`: