Bump protocol version to nov 25 (#308)
This commit is contained in:
parent
1d7100060f
commit
e00450a218
4 changed files with 4 additions and 3 deletions
|
|
@ -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`)
|
||||
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@ final class Builder
|
|||
$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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -21,5 +21,5 @@ use Mcp\Schema\Enum\ProtocolVersion;
|
|||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue