From 9b5da3f41a3facd84f737079eb18ccfc0e3a81d1 Mon Sep 17 00:00:00 2001 From: Christopher Hertel Date: Fri, 15 May 2026 09:03:55 +0200 Subject: [PATCH] Bump protocol version to nov 25 --- CHANGELOG.md | 1 + src/Client/Builder.php | 2 +- src/Client/Configuration.php | 2 +- src/Schema/JsonRpc/MessageInterface.php | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a47ca5f..0515ded2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ All notable changes to `mcp/sdk` will be documented in this file. 0.6.0 ----- +* [BC Break] Bump default protocol version to `2025-11-25` * Allow overriding the default name pattern for Discovery * Add configurable session garbage collection (`gcProbability`/`gcDivisor`) diff --git a/src/Client/Builder.php b/src/Client/Builder.php index 6cfe3349..35f7f5de 100644 --- a/src/Client/Builder.php +++ b/src/Client/Builder.php @@ -153,7 +153,7 @@ public function build(): Client $config = new Configuration( clientInfo: $clientInfo, capabilities: $this->capabilities ?? new ClientCapabilities(), - protocolVersion: $this->protocolVersion ?? ProtocolVersion::V2025_06_18, + protocolVersion: $this->protocolVersion ?? ProtocolVersion::V2025_11_25, initTimeout: $this->initTimeout, requestTimeout: $this->requestTimeout, maxRetries: $this->maxRetries, diff --git a/src/Client/Configuration.php b/src/Client/Configuration.php index 4dce6349..8c7e909b 100644 --- a/src/Client/Configuration.php +++ b/src/Client/Configuration.php @@ -25,7 +25,7 @@ class Configuration public function __construct( public readonly Implementation $clientInfo, public readonly ClientCapabilities $capabilities, - public readonly ProtocolVersion $protocolVersion = ProtocolVersion::V2025_06_18, + public readonly ProtocolVersion $protocolVersion = ProtocolVersion::V2025_11_25, public readonly int $initTimeout = 30, public readonly int $requestTimeout = 120, public readonly int $maxRetries = 3, diff --git a/src/Schema/JsonRpc/MessageInterface.php b/src/Schema/JsonRpc/MessageInterface.php index 6e4d1c1e..9427eaac 100644 --- a/src/Schema/JsonRpc/MessageInterface.php +++ b/src/Schema/JsonRpc/MessageInterface.php @@ -21,5 +21,5 @@ interface MessageInterface extends \JsonSerializable { public const JSONRPC_VERSION = '2.0'; - public const PROTOCOL_VERSION = ProtocolVersion::V2025_06_18; + public const PROTOCOL_VERSION = ProtocolVersion::V2025_11_25; }