Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,16 +326,17 @@ config.instrumentation_callback = ->(data) {

### Server Protocol Version

The server's protocol version can be overridden using the `protocol_version` class method:
The server's protocol version can be overridden using the `protocol_version` keyword argument:

```ruby
MCP::Server.protocol_version = "2024-11-05"
configuration = MCP::Configuration.new(protocol_version: "2024-11-05")
MCP::Server.new(name: "test_server", configuration: configuration)
```

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`:

```ruby
MCP::Server.protocol_version = nil
MCP::Configuration.new(protocol_version: nil)
```

If an invalid `protocol_version` value is set, an `ArgumentError` is raised.
Expand Down