You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The server's protocol version can be overridden using the `protocol_version` class method:
243
+
The server's protocol version can be overridden via the `Configuration#protocol_version` method:
244
244
245
245
<!-- SNIPPET ID: set_server_protocol_version -->
246
246
```ruby
247
-
MCP::Server.protocol_version ="2024-11-05"
247
+
MCP.configure do |config|
248
+
config.protocol_version ="2024-11-05"
249
+
end
248
250
```
249
251
250
252
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`:
Be sure to check the [MCP spec](https://spec.modelcontextprotocol.io/specification/2024-11-05/) for the protocol version to understand the supported features for the version being set.
0 commit comments