Skip to content

Releases: modelcontextprotocol/python-sdk

v1.27.2

29 May 17:10
6213787

Choose a tag to compare

What's Changed

  • [v1.x] ci: deploy docs to py.sdk.modelcontextprotocol.io via Pages artifact by @maxisbey in #2635
  • [v1.x] Add subject and claims to AccessToken by @maxisbey in #2690
  • [v1.x] Bind transport sessions to the authenticated principal by @maxisbey in #2719
  • [v1.x] Scope experimental tasks to the session that created them by @maxisbey in #2720

Full Changelog: v1.27.1...v1.27.2

v1.27.1

08 May 16:44
77431eb

Choose a tag to compare

What's Changed

  • [v1.x] fix: catch PydanticUserError when generating output schema (pydantic 2.13 compat) by @maxisbey in #2435
  • [v1.x] fix(auth): coerce empty-string optional URL fields to None in OAuthClientMetadata by @felixweinberger in #2405
  • [v1.x] build: restrict httpx to <1.0.0 by @maxisbey in #2559
  • [v1.x] refactor: import SSEError from httpx_sse public API by @maxisbey in #2561

Full Changelog: v1.27.0...v1.27.1

v1.27.0

02 Apr 14:36
6524782

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.26.0...v1.27.0

v1.26.0

24 Jan 19:26
3d9d345

Choose a tag to compare

What's Changed

  • ci: add all-green job to pull-request-checks workflow by @maxisbey in #1929
  • Backport: Support for Resource and ResourceTemplate metadata by @maxisbey in #1928
  • [v1.x] fix: return HTTP 404 for unknown session IDs instead of 400 by @LucaButBoring in #1945

Full Changelog: v1.25.0...v1.26.0

v1.25.0

18 Dec 17:15
ef96a31

Choose a tag to compare

Branching Update

Starting with this release, the repository has adopted a new branching strategy for v2 development:

  • main — v2 development (breaking changes)
  • v1.x — v1 maintenance (security and critical bug fixes only, with very rare feature additions ported from main)

Users who need to stay on v1.x should pin to mcp>=1.25,<2.

The current plan is to work through v2 and have it released some time in Q1. This also relies on the next upcoming spec release which will heavily change how the transport layer works, which in turn will guide a lot of how we architect v2.


What's Changed

New Contributors

Full Changelog: v1.24.0...v1.25.0

v1.24.0

12 Dec 14:11
65b36de

Choose a tag to compare

What's Changed

  • feat: client-side support for SEP-1577 sampling with tools by @jlowin in #1722
  • Fix JSON-RPC error response ID matching by @crondinini-ant in #1720
  • Add streamable_http_client which accepts httpx.AsyncClient instead of httpx_client_factory by @Kludex in #1177
  • fix: use correct python command name in test_stdio.py by @WOnder93 in #1782

New Contributors

Full Changelog: v1.23.3...v1.24.0

v1.23.3

09 Dec 15:46
779271a

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.23.2...v1.23.3

v1.23.2

04 Dec 14:46
89ff338

Choose a tag to compare

What's Changed

  • fix: add lifespan context manager to StreamableHTTP mounting examples by @TheMailmans in #1669
  • fix: handle ClosedResourceError in StreamableHTTP message router by @Edison-A-N in #1384
  • fix: skip priming events and close_sse_stream for old protocol versions by @felixweinberger in #1719

New Contributors

Full Changelog: v1.23.1...v1.23.2

v1.23.1

02 Dec 18:29
8e02fc1

Choose a tag to compare

What's Changed

Full Changelog: v1.23.0...v1.23.1

v1.23.0

02 Dec 13:28
d3a1841

Choose a tag to compare

Summary

This release brings us up to speed with the latest MCP spec 2025-11-25. Take a look at the latest spec as well as the release blog post.

What's Changed

New Contributors

Full Changelog: v1.22.0...v1.23.0