From 8e02fc17e196295116d3fa4e993116ce6e0171c7 Mon Sep 17 00:00:00 2001 From: Felix Weinberger <3823880+felixweinberger@users.noreply.github.com> Date: Tue, 2 Dec 2025 18:27:27 +0000 Subject: [PATCH] chore: update LATEST_PROTOCOL_VERSION to 2025-11-25 (#1715) --- src/mcp/shared/version.py | 2 +- src/mcp/types.py | 2 +- tests/issues/test_1027_win_unreachable_cleanup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mcp/shared/version.py b/src/mcp/shared/version.py index 23c46d04..d2a1e462 100644 --- a/src/mcp/shared/version.py +++ b/src/mcp/shared/version.py @@ -1,3 +1,3 @@ from mcp.types import LATEST_PROTOCOL_VERSION -SUPPORTED_PROTOCOL_VERSIONS: list[str] = ["2024-11-05", "2025-03-26", LATEST_PROTOCOL_VERSION] +SUPPORTED_PROTOCOL_VERSIONS: list[str] = ["2024-11-05", "2025-03-26", "2025-06-18", LATEST_PROTOCOL_VERSION] diff --git a/src/mcp/types.py b/src/mcp/types.py index 7a46ad62..9ca8ffc1 100644 --- a/src/mcp/types.py +++ b/src/mcp/types.py @@ -24,7 +24,7 @@ for reference. not separate types in the schema. """ -LATEST_PROTOCOL_VERSION = "2025-06-18" +LATEST_PROTOCOL_VERSION = "2025-11-25" """ The default negotiated version of the Model Context Protocol when no version is specified. diff --git a/tests/issues/test_1027_win_unreachable_cleanup.py b/tests/issues/test_1027_win_unreachable_cleanup.py index 999bb9ea..63d6dd8d 100644 --- a/tests/issues/test_1027_win_unreachable_cleanup.py +++ b/tests/issues/test_1027_win_unreachable_cleanup.py @@ -95,7 +95,7 @@ async def test_lifespan_cleanup_executed(): async with ClientSession(read, write) as session: # Initialize the session result = await session.initialize() - assert result.protocolVersion in ["2024-11-05", "2025-06-18"] + assert result.protocolVersion in ["2024-11-05", "2025-06-18", "2025-11-25"] # Verify startup marker was created assert Path(startup_marker).exists(), "Server startup marker not created"