Sourced from mcp's releases.
v1.28.0
Deprecations
Two API surfaces now emit
DeprecationWarningahead of their removal in v2. Nothing is removed in 1.x, and the warnings fire only when the deprecated API is called - importing the modules stays silent.
- WebSocket transport -
mcp.client.websocket.websocket_clientandmcp.server.websocket.websocket_servermodelcontextprotocol/typescript-sdk#1783- Experimental tasks API -
ClientSession.experimental,Server.experimental,ServerSession.experimental, and theexperimental_task_handlers=kwarg onClientSession. Tasks (SEP-1686) were removed from the MCP specification and are expected to return as a separate MCP extension.If your test suite runs with
filterwarnings = ["error"]and exercises these paths, add a scoped ignore such asignore:The experimental tasks API is deprecated:DeprecationWarningorignore:The WebSocket .* transport is deprecated:DeprecationWarning.See #2828 for full details.
What's Changed
- [v1.x] Support Python 3.14 by
@maxisbeyin modelcontextprotocol/python-sdk#2769- fix: omit null optional fields from task result payloads by
@liuzemeiin modelcontextprotocol/python-sdk#2809- [v1.x] Deprecate the WebSocket transport and the experimental tasks entry points by
@maxisbeyin modelcontextprotocol/python-sdk#2828- [v1.x] Add a v2 status banner to the README by
@maxisbeyin modelcontextprotocol/python-sdk#2835- [v1.x] Deflake the child process cleanup tests by
@maxisbeyin modelcontextprotocol/python-sdk#2839New Contributors
@liuzemeimade their first contribution in modelcontextprotocol/python-sdk#2809Full Changelog: https://github.com/modelcontextprotocol/python-sdk/compare/v1.27.2...v1.28.0
v1.27.2
What's Changed
- [v1.x] ci: deploy docs to py.sdk.modelcontextprotocol.io via Pages artifact by
@maxisbeyin modelcontextprotocol/python-sdk#2635- [v1.x] Add subject and claims to AccessToken by
@maxisbeyin modelcontextprotocol/python-sdk#2690- [v1.x] Bind transport sessions to the authenticated principal by
@maxisbeyin modelcontextprotocol/python-sdk#2719- [v1.x] Scope experimental tasks to the session that created them by
@maxisbeyin modelcontextprotocol/python-sdk#2720Full Changelog: https://github.com/modelcontextprotocol/python-sdk/compare/v1.27.1...v1.27.2
v1.27.1
What's Changed
- [v1.x] fix: catch PydanticUserError when generating output schema (pydantic 2.13 compat) by
@maxisbeyin modelcontextprotocol/python-sdk#2435- [v1.x] fix(auth): coerce empty-string optional URL fields to None in OAuthClientMetadata by
@felixweinbergerin modelcontextprotocol/python-sdk#2405- [v1.x] build: restrict httpx to <1.0.0 by
@maxisbeyin modelcontextprotocol/python-sdk#2559- [v1.x] refactor: import SSEError from httpx_sse public API by
@maxisbeyin modelcontextprotocol/python-sdk#2561Full Changelog: https://github.com/modelcontextprotocol/python-sdk/compare/v1.27.0...v1.27.1
v1.27.0
What's Changed
- fix: remove unused
requestsdependency from simple-chatbot example by@maxisbeyin modelcontextprotocol/python-sdk#1959- ci: backport conformance tests from main to v1.x by
@felixweinbergerin modelcontextprotocol/python-sdk#2068
... (truncated)
777b8d0
[v1.x] Support TransportSecuritySettings in the WebSocket server
transport (#...4720467
[v1.x] Set Development Status classifier to Production/Stable (#2976)6df3d73
[v1.x] Buffer per-request StreamableHTTP streams; store priming event
before ...32d3290
[v1.x] Pass a list to parametrize in test_docs_examples (pytest 9.1.0
compat)...0dca751
[v1.x] Deflake the child process cleanup tests (#2839)52258a9
[v1.x] Add a v2 status banner to the README (#2835)b8f4917
[v1.x] Deprecate the WebSocket transport and the experimental tasks
entry poi...2309e5e
fix: omit null optional fields from task result payloads (#2809)494eb11
[v1.x] Support Python 3.14 (#2769)6213787
[v1.x] Scope experimental tasks to the session that created them (#2720)