Bump mcp from 1.27.0 to 1.28.1
Bumps mcp from 1.27.0 to 1.28.1.
Release notes
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
Commits
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...2309e5efix: 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)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the Security Alerts page.
Summary by cubic
Upgrade mcp to 1.28.1 to add Python 3.14 support and upstream fixes. This may emit deprecation warnings if using the WebSocket transport or the experimental tasks API.
-
Dependencies
- Bump
mcpfrom 1.27.0 to 1.28.1. - Notables: Python 3.14 support; omit null optional fields in task results; deprecations for WebSocket transport and experimental tasks API.
- Bump
-
Migration
- If tests fail on warnings, add scoped ignores for these deprecations.
- If you use the deprecated WebSocket or tasks APIs, plan to migrate; otherwise no changes needed.