Zum Inhalt springen

Model Context Protocol Release Notes

Einträge
66
Quellen
2
Zuletzt aktualisiert

Folge Model Context Protocol, um die Release Notes in deinen Feed zu holen.

Model Context Protocol-Produkte (2)

Python SDK von Model Context Protocol

MCP Python SDK 2.1.1: Hinweis auf Migrationsleitfaden bei fastmcp-Importen

Das Python SDK 2.1.1 verweist bei Importen von mcp.server.fastmcp nun auf den Migrationsleitfaden.

What's Changed

Full Changelog: https://github.com/modelcontextprotocol/python-sdk/compare/v2.1.0...v2.1.1

Originalquelle(öffnet in neuem Tab)Problem melden

Python SDK von Model Context Protocol

MCP Python SDK 2.1.0: StdioServerParameters direkt, Bilder und Audio in Prompts

Das Python SDK 2.1.0 lässt Client direkt StdioServerParameters akzeptieren, erlaubt Image und Audio in Prompt-Nachrichten, dehnt das 4-MiB-Limit für Request-Bodys auf SSE-Transport und OAuth-Endpunkte aus und zeigt Clients bei unerwarteten Handler-Exceptions nur noch eine generische Fehlermeldung.

Highlights

  • Client accepts StdioServerParameters directly: Client(StdioServerParameters(command="uv", args=["run", "server.py"])) (#3321).
  • Prompt messages accept Image and Audio, prompt functions may return bare content blocks, and Message / UserMessage / AssistantMessage are exported from mcp.server.mcpserver (#3320).
  • The 4 MiB request body limit now also covers the SSE transport and the OAuth endpoints; SseServerTransport and MCPServer.sse_app() take max_request_body_size, and the SSE message endpoint answers 405 to non-POST requests (#3336).

Behaviour changes to be aware of

  • Handler exceptions (#3314): an unexpected exception from a tool, resource or prompt handler is logged once at ERROR with its traceback, and the client now sees only Error executing tool <name> (or the resource/prompt equivalent) rather than the exception text. Raise ToolError / ResourceError when the message is meant for the model; those still reach the client and are logged at INFO without a traceback.
  • Content-block return annotations (#3320): a tool annotated to return TextContent, EmbeddedResource, Image, Audio, or lists/unions of them no longer advertises outputSchema or returns structuredContent; its content is unchanged. Pass structured_output=True to keep the previous shape.

Fixes …

Originalquelle(öffnet in neuem Tab)Problem melden

Python SDK von Model Context Protocol

MCP Python SDK 1.29.1: Request-Body-Limit für SSE und OAuth

Das Python SDK 1.29.1 vervollständigt das FastMCP-Settings-Modell beim Import, wendet das Request-Body-Limit auf SSE- und OAuth-Endpunkte an und liefert für rekursive Tool-Rückgabetypen ein Output-Schema mit Objekt als Wurzel.

What's Changed

Full Changelog: https://github.com/modelcontextprotocol/python-sdk/compare/v1.29.0...v1.29.1

Originalquelle(öffnet in neuem Tab)Problem melden

Python SDK von Model Context Protocol

MCP Python SDK 2.0.0: Stabiles v2-Release mit Spezifikation 2026-07-28

Das Python SDK 2.0.0 ist das stabile v2-Release mit Unterstützung der MCP-Spezifikation 2026-07-28 und aller früheren Revisionen, überarbeiteter Dokumentation und Migrationsleitfaden, während 1.x in den Wartungsmodus mit nur noch Sicherheitsfixes wechselt und pip install mcp nun 2.x installiert.

MCP Python SDK v2 Stable Release

This is v2.0.0, the stable v2 release of the MCP Python SDK. It supports the 2026-07-28 revision of the Model Context Protocol and serves every earlier revision from the same server. pip install mcp now installs 2.x.

pip install "mcp[cli]"
# or
uv add "mcp[cli]"

Documentation Rewrite

The documentation has the full tutorial and API reference. Coming from v1? What's new in v2 is the tour of what changed and why, and the migration guide lists every breaking change with before-and-after code.

V1 Maintenance mode

v1.x is in maintenance mode and will only receive security fixes from now on The 1.x line lives on the v1.x branch, continues to receive critical bug fixes and security patches, and is documented at https://py.sdk.modelcontextprotocol.io/v1/. If your project is not ready to migrate, keep a <2 upper bound on your requirement (for example mcp>=1.28,<2).

Highlights

One SDK, both protocol eras …

Originalquelle(öffnet in neuem Tab)Problem melden

Python SDK von Model Context Protocol

MCP Python SDK 1.29.0: Request-Body-Limits und Fortschrittsmeldungen

Das Python SDK 1.29.0 leitet Context.report_progress() an den auslösenden Request-Stream, ergänzt Request-Body-Limits für Streamable HTTP, lehnt einen abschließenden Zeilenumbruch in Tool-Namen ab und verschiebt die 1.x-Dokumentation nach /v1/.

What's Changed

Full Changelog: https://github.com/modelcontextprotocol/python-sdk/compare/v1.28.1...v1.29.0

Originalquelle(öffnet in neuem Tab)Problem melden

Python SDK von Model Context Protocol

MCP Python SDK 2.0.0rc1: Erster Release Candidate mit Breaking Changes

Der erste Release Candidate 2.0.0rc1 des Python SDK bereinigt vor dem stabilen v2 die API mit Breaking Changes, etwa Client(cache=None) statt cache=False, entfernten Context.client_id, RFC7523OAuthClientProvider und JWTParameters sowie scope= statt scopes=.

First v2 release candidate. Pre-releases are opt-in only; pip install mcp still resolves to the stable 1.x line.

pip install mcp==2.0.0rc1
# or
uv add "mcp==2.0.0rc1"

The documentation has the full tutorial and API reference, and the migration guide covers coming from v1. Stable v2 is planned for 2026-07-28 alongside the spec release - keep pinning an exact version until then.

Highlights

API cleanup ahead of stable (breaking for beta users)

The last pre-release pass over the public surface; every item has a migration guide entry.

  • Client(cache=False) is now Client(cache=None): CacheConfig() is the default and None switches the response cache off (#3164).
  • Context.client_id is removed - read _meta via ctx.request_context.meta, or the authenticated client via get_access_token().client_id (#3167).
  • RFC7523OAuthClientProvider and JWTParameters are removed - use ClientCredentialsOAuthProvider, PrivateKeyJWTOAuthProvider, or IdentityAssertionOAuthProvider (#3169).
  • The client-credentials providers take scope=, not scopes= (#3166).
  • OAuthClientProvider(timeout=...) is removed; it never bounded anything (#3165).
  • message_handler receives ServerNotification | Exception only; the dead RequestResponder arm and the mcp.shared.session module are gone (#3168). …

Originalquelle(öffnet in neuem Tab)Problem melden

Python SDK von Model Context Protocol

MCP Python SDK 2.0.0b2: httpx2 ersetzt httpx, subscriptions/listen

Die zweite v2-Beta 2.0.0b2 des Python SDK ersetzt httpx durch httpx2 (mit Betriebssystem-Trust-Store für TLS, umbenannten Loggern und geändertem Accept-Header bei SSE) und ergänzt clientseitig subscriptions/listen.

Second v2 beta. Pre-releases are opt-in only; pip install mcp still resolves to the stable 1.x line.

pip install mcp==2.0.0b2
# or
uv add "mcp==2.0.0b2"

The documentation has the full tutorial and API reference, and the migration guide covers coming from v1. Stable v2 is still targeted for 2026-07-28 alongside the spec release - keep pinning an exact version.

Highlights

httpx is replaced by httpx2 (#2972)

The SDK's HTTP stack now runs on httpx2 (>=2.5.0), the next-generation httpx fork with SSE support built in, replacing httpx + httpx-sse. Most code needs no changes; if you pass your own http_client into a transport, change the import to httpx2. Runtime behavior that changes:

  • TLS verification uses the operating system trust store (via truststore) instead of certifi's bundle. SSL_CERT_FILE / SSL_CERT_DIR are honored first.
  • Loggers are renamed: httpx -> httpx2, httpcore.* -> httpcore2.* - update logging filters that match on those names.
  • SSE GET streams send Accept: application/json, text/event-stream (previously exactly text/event-stream).

Client-side subscriptions/listen (#3047)

The client half of subscriptions/listen (SEP-2575), promised in the b1 notes: one context manager, async for consumption, typed events.

Originalquelle(öffnet in neuem Tab)Problem melden

Python SDK von Model Context Protocol

Model Context Protocol Python SDK v2.0.0b1

Dies ist die erste Beta-Version des MCP Python SDK mit vollständiger Unterstützung für die 2026-07-28 MCP-Spezifikation, einem neuen Dispatcher-/Runner-Kern und der Umbenennung von FastMCP zu MCPServer.

First v2 beta, and the first release with full support for the 2026-07-28 MCP specification. Pre-releases are opt-in only; pip install mcp still resolves to the stable 1.x line.

pip install mcp==2.0.0b1
# or
uv add "mcp==2.0.0b1"

The documentation has the full tutorial and API reference, and the migration guide covers coming from v1. Beta means the architecture is settled and changes from here should be much smaller than between alphas, but the API can still shift before stable v2, targeted for 2026-07-28 alongside the spec release - keep pinning an exact version.

What's new in v2

The whole v2 line so far (alphas included), condensed:

  • A new core. The session-centric v1 internals are replaced by a dispatcher/runner pipeline built for the stateless 2026 protocol: ServerRunner is a pure handler kernel, transports are thin drivers over it, and one endpoint serves both protocol eras side by side.
  • FastMCP is now MCPServer. The decorator API stays; the low-level Server takes handlers as constructor parameters, fields are snake_case, and traffic is validated against the negotiated spec version on the wire. …

Originalquelle(öffnet in neuem Tab)Problem melden

Python SDK von Model Context Protocol

Model Context Protocol Python SDK v2.0.0a3

In der dritten Alpha-Version des MCP Python SDK ist das zustandslose Protokoll von 2026-07-28 nun vollständig aushandelbar, wobei ServerRunner als reiner Handler-Kern mit neuen Connection-Objekten fungiert.

Third v2 alpha. Pre-releases are opt-in only; pip install mcp still resolves to the stable 1.x line.

pip install mcp==2.0.0a3
# or
uv add "mcp==2.0.0a3"

See the migration guide for the full list of breaking changes.

Warning

The public API is likely to change between alpha releases, and ideally less-so between beta releases.

Highlights

2026-07-28 stateless protocol is now negotiable end to end (#2928, #2950)

The 2026-07-28 spec revision drops the initialize handshake on streamable HTTP: each POST is self-describing (protocol version, client info, and capabilities ride in params._meta) and the server replies with a single JSON-RPC response. Both sides of that path are now wired up.

Server side: ServerRunner is now a pure handler kernel composed by three drivers (serve_one, serve_connection, serve_loop). A new Connection object owns per-peer state with two factories - from_envelope for the per-request stateless path and for_loop for handshake-driven connections - so protocol_version is always set and the old stateless: bool flag is gone from ServerRunner, ServerSession, and Server.run(). The streamable-HTTP session manager routes by header: known handshake versions go to the legacy transport; everything else hits a new per-POST entry that classifies, builds a Connection.from_envelope, and drives serve_one. `server/d…

Originalquelle(öffnet in neuem Tab)Problem melden

Python SDK von Model Context Protocol

Model Context Protocol Python SDK Version 1.28.1

Version 1.28.1 des MCP Python SDK puffert StreamableHTTP-Streams pro Anfrage, setzt den Development Status auf Production/Stable und unterstützt TransportSecuritySettings im WebSocket-Server-Transport.

What's Changed

Full Changelog: https://github.com/modelcontextprotocol/python-sdk/compare/v1.28.0...v1.28.1

Originalquelle(öffnet in neuem Tab)Problem melden

Python SDK von Model Context Protocol

Model Context Protocol Python SDK v2.0.0a2

Die zweite Alpha-Version des MCP Python SDK fügt vollständige Typen für die 2026-07-28-Spezifikation hinzu, mit generierten Schemas pro Version und versionsabhängiger Validierung des Datenverkehrs.

Second v2 alpha. Pre-releases are opt-in only; pip install mcp still resolves to the stable 1.x line.

pip install mcp==2.0.0a2
# or
uv add "mcp==2.0.0a2"

See the migration guide for the full list of breaking changes.

Highlights

Full 2026-07-28 types added along with per-version protocol types and version-gated wire validation (#2849)

The SDK now ships three type sets:

  • mcp.types - the hand-maintained superset monolith. This remains the public API you import from; it covers every field from every supported spec version.
  • mcp.types.v2025_11_25 - generated verbatim from the 2025-11-25 schema (also serves earlier versions).
  • mcp.types.v2026_07_28 - generated verbatim from the 2026-07-28 schema.

The generated per-version packages are wired into both ServerRunner and ClientSession via mcp.types.methods, which maps each (method, version) pair to its request/result/notification types. At runtime, the negotiated protocol version selects which generated set is used to validate traffic on the wire:

  • Inbound requests and notifications are validated against the negotiated version's types. A spec method that does not exist at that version returns METHOD_NOT_FOUND; a malformed payload returns INVALID_PARAMS. …

Originalquelle(öffnet in neuem Tab)Problem melden

Python SDK von Model Context Protocol

Model Context Protocol Python SDK Version 1.28.0

Version 1.28.0 des MCP Python SDK kündigt die Abschaffung des WebSocket-Transports und der experimentellen Tasks-API an und fügt Unterstützung für Python 3.14 hinzu.

Deprecations

Two API surfaces now emit DeprecationWarning ahead 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_client and mcp.server.websocket.websocket_server. WebSocket was never part of the MCP specification; use the streamable HTTP transport instead. The TypeScript SDK has likewise removed its WebSocket client for v2 (modelcontextprotocol/typescript-sdk#1783).
  • Experimental tasks API - ClientSession.experimental, Server.experimental, ServerSession.experimental, and the experimental_task_handlers= kwarg on ClientSession. 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 as ignore:The experimental tasks API is deprecated:DeprecationWarning or ignore:The WebSocket .* transport is deprecated:DeprecationWarning.

See #2828 for full details.

What's Changed

Originalquelle(öffnet in neuem Tab)Problem melden

Python SDK von Model Context Protocol

Model Context Protocol Python SDK v2.0.0a1

Die erste Alpha-Version des MCP Python SDK v2 ersetzt den ServerSession durch eine neue Dispatcher-Pipeline, nimmt Handler als Konstruktorparameter entgegen und benennt FastMCP in MCPServer um.

First V2 Alpha Release

This is the first alpha of v2 of the MCP Python SDK.

Publishing this alpha changes nothing for existing users. Installers don't pick up pre-releases unless you explicitly opt in, so if you do nothing you stay on v1.x.

Why v2

The upcoming MCP spec release (2026-07-28) has significant protocol changes, including moving from a stateful, bidirectional protocol to stateless request/response. The v1 SDK is built around long-lived sessions, so supporting the new spec means replacing the SDK's core. Since that's breaking anyway, v2 also fixes some long-standing API problems.

What's in this alpha

  • A new Dispatcher pipeline replaces ServerSession on the server side (ServerSession remains as a thin proxy). The same change is coming to ClientSession, which will most likely stay as a shim.
  • The low level Server interface has changed quite a bit: handlers are now constructor parameters instead of decorators, and return values are no longer auto-wrapped.
  • Server middleware, partially added.
  • Type changes throughout, including snake_case field names and stricter validation.
  • FastMCP is renamed to MCPServer.

The full list is in the migration guide, which is currently the most complete documentation for v2. …

Originalquelle(öffnet in neuem Tab)Problem melden

Python SDK von Model Context Protocol

Model Context Protocol Python SDK Version 1.27.2

Version 1.27.2 des MCP Python SDK verbessert die Bereitstellung der Dokumentation, fügt Subject and Claims zum AccessToken hinzu und bindet Transportsitzungen an den authentifizierten Principal.

What's Changed

Full Changelog: https://github.com/modelcontextprotocol/python-sdk/compare/v1.27.1...v1.27.2

Originalquelle(öffnet in neuem Tab)Problem melden

Python SDK von Model Context Protocol

Model Context Protocol Python SDK Version 1.27.1

Version 1.27.1 des MCP Python SDK behebt einen Fehler mit PydanticUserError bei der Generierung von Ausgabeschemas, bereinigt optionale URL-Felder und beschränkt httpx auf Versionen unter 1.0.0.

What's Changed

Full Changelog: https://github.com/modelcontextprotocol/python-sdk/compare/v1.27.0...v1.27.1

Originalquelle(öffnet in neuem Tab)Problem melden

Python SDK von Model Context Protocol

MCP Python SDK Version 1.27.0

Diese Version entfernt eine unnötige Abhängigkeit im Beispiel, validiert OAuth-Ressourcen gemäß RFC 8707, fügt einen Leerlauf-Timeout für StreamableHTTP-Sitzungen hinzu, verhindert Befehls-Injection im Beispiel sowie mehrere Dokumentationsverbesserungen.

What's Changed

Originalquelle(öffnet in neuem Tab)Problem melden

Python SDK von Model Context Protocol

MCP Python SDK Version 1.26.0

Diese Version fügt Unterstützung für Ressourcen- und Ressourcenvorlagen-Metadaten hinzu und liefert bei unbekannten Sitzungs-IDs nun HTTP 404 statt 400 zurück.

What's Changed

Full Changelog: https://github.com/modelcontextprotocol/python-sdk/compare/v1.25.0...v1.26.0

Originalquelle(öffnet in neuem Tab)Problem melden

Python SDK von Model Context Protocol

MCP Python SDK Version 1.25.0

Ab dieser Version ist der Hauptzweig für die v2-Entwicklung reserviert, während der v1.x-Zweig nur noch Wartung erhält; ein Fehler bei der URL-Elicitation wurde behoben.

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: https://github.com/modelcontextprotocol/python-sdk/compare/v1.24.0...v1.25.0

Originalquelle(öffnet in neuem Tab)Problem melden

Python SDK von Model Context Protocol

MCP Python SDK Version 1.24.0

Diese Version bietet clientseitige Unterstützung für Sampling mit Tools, korrigiert die JSON-RPC-Fehlerantwort-ID-Zuordnung und ergänzt einen streamable_http_client, der httpx.AsyncClient akzeptiert.

What's Changed

New Contributors

Full Changelog: https://github.com/modelcontextprotocol/python-sdk/compare/v1.23.3...v1.24.0

Originalquelle(öffnet in neuem Tab)Problem melden

Python SDK von Model Context Protocol

MCP Python SDK Version 1.23.3

Diese Version erlaubt MIME-Typ-Parameter bei der Ressourcenvalidierung (RFC 2045) und überspringt leere SSE-Daten, um Parsing-Fehler zu vermeiden.

What's Changed

New Contributors

Full Changelog: https://github.com/modelcontextprotocol/python-sdk/compare/v1.23.2...v1.23.3

Originalquelle(öffnet in neuem Tab)Problem melden