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
[Doc] Fix incorrect example for configuring protocol version
`MCP::Server` does not have a `protocol_version=` method.
```console
$ bin/console
irb(main):001> MCP::Server.protocol_version = "2024-11-05"
(irb):1:in '<main>': undefined method 'protocol_version=' for class MCP::Server (NoMethodError)
from bin/console:15:in '<main>'
```
This PR fixes an incorrect example that causes the above error.
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`:
336
337
337
338
```ruby
338
-
MCP::Server.protocol_version=nil
339
+
MCP::Configuration.new(protocol_version:nil)
339
340
```
340
341
341
342
If an invalid `protocol_version` value is set, an `ArgumentError` is raised.
0 commit comments