Merge pull request #190 from koic/avoid_draft_protocol_version

Default to the latest stable protocol version
This commit is contained in:
Koichi ITO 2025-12-20 18:55:18 +09:00 • committed by GitHub
commit baeb75c8d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -349,7 +349,8 @@ configuration = MCP::Configuration.new(protocol_version: "2024-11-05")
MCP::Server.new(name: "test_server", configuration: configuration)
```
If no protocol version is specified, the [Draft version](https://modelcontextprotocol.io/specification/draft) will be applied by default.
If no protocol version is specified, the latest stable version will be applied by default.
The latest stable version includes new features from the [draft version](https://modelcontextprotocol.io/specification/draft).
This will make all new server instances use the specified protocol version instead of the default version. The protocol version can be reset to the default by setting it to `nil`: