Title: [v1.x] Support Python 3.14 by maxisbey · Pull Request #2769 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: [v1.x] Support Python 3.14 by maxisbey · Pull Request #2769 · modelcontextprotocol/python-sdk
X Title: [v1.x] Support Python 3.14 by maxisbey · Pull Request #2769 · modelcontextprotocol/python-sdk
Description: Adds the Programming Language :: Python :: 3.14 trove classifier, adds 3.14 to the v1.x CI test matrix, and makes the dependency floors installable there. Backports #1834 from main. References #2537.
Motivation and Context
The README's supported-Python-versions badge (img.shields.io/pypi/pyversions/mcp.svg) renders the classifiers of the latest PyPI release, which currently stop at 3.13 — so the badge says 3.10–3.13 even though the SDK installs and works on 3.14. #2537 asked for the classifier on the v1 line; this adds it together with the CI coverage that makes the claim tested. The badge updates automatically once the next v1.x release is published with this classifier — no README edits needed.
The dependency changes are the minimal set needed for the lowest-direct lane to install on 3.14, marker-gated so floors for <3.14 are unchanged:
pydantic>=2.12.0 on 3.14 only — 2.11.x pins pydantic-core 2.33.0, which has no cp314 wheels (the existing <3.0.0 cap is kept on both branches)
starlette>=0.48.0 on 3.14 only — first release supporting 3.14
pywin32>=311 on 3.14 only — 310 ships no cp314 wheels
mkdocs-material[imaging]>=9.5.45 → >=9.6.19 — 9.5.45's imaging extra pins pillow~=10.2, which has no cp314 wheels and fails to install on the 3.14 lowest-direct lane; 9.6.19 allows pillow 11.x. Dependency groups aren't published metadata, so this doesn't affect package consumers (the lockfile already pins 9.6.19).
Code changes are the coverage workarounds from #1834 (coverage.py branch misreporting on 3.14, coveragepy/coveragepy#1987) plus one # pragma: no branch for a nested-async-with arc in test_sse_security.py that only 3.14 flags. No runtime changes were needed — same as on main.
Deliberately not carried over from #1834: the coverage>=7.13.1 bump (reverted on main by #1897; ==7.10.7 has cp314 wheels and passes), the mkdocstrings-python major bump (1.12.2 installs fine on 3.14), and the pillow dev-dependency (supplied transitively via the imaging extra).
How Has This Been Tested?
Ran the CI lanes locally with the exact shared.yml commands (uv sync --upgrade --resolution {lowest-direct,highest} --all-extras --python
Open Graph Description: Adds the Programming Language :: Python :: 3.14 trove classifier, adds 3.14 to the v1.x CI test matrix, and makes the dependency floors installable there. Backports #1834 from main. References #253...
X Description: Adds the Programming Language :: Python :: 3.14 trove classifier, adds 3.14 to the v1.x CI test matrix, and makes the dependency floors installable there. Backports #1834 from main. References #253...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/2769
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:66019d41-ec1a-4d48-6014-c66747ca3370 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A4B2:7F9F4:582628:76D545:6A61081A |
| html-safe-nonce | b5e878c6530f1c8fce78568924b539dc65d6bc0e9d8c9f5e846f6954ed4ca123 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNEIyOjdGOUY0OjU4MjYyODo3NkQ1NDU6NkE2MTA4MUEiLCJ2aXNpdG9yX2lkIjoiNzE5MDAyMTQ1MTQwNDA4NTI3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a91f6cbd094532ee058e9950a2090e078d19d8a414aa32d3f9712aa042a8097c |
| hovercard-subject-tag | pull_request:3791489984 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/modelcontextprotocol/python-sdk/pull/2769/files |
| twitter:image | https://avatars.githubusercontent.com/u/224885523?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/224885523?s=400&v=4 |
| og:image:alt | Adds the Programming Language :: Python :: 3.14 trove classifier, adds 3.14 to the v1.x CI test matrix, and makes the dependency floors installable there. Backports #1834 from main. References #253... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 86be97fd69ac233b46e43a5eed04ceac6498abe1efaf1af3b9573eb216019c05 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 862584018 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 862584018 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/python-sdk |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f80280886562a52fe1f6b9cab9f9c1dc3b9a78a2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width