Internal Release 0.5.1
- Allow protocol version to be set at the server level through configuration instead of a class method, providing more flexibility in protocol version management [#43](https://github.com/Shopify/mcp-ruby/pull/43) @topherbullock - Fixed instrumentation handling to ensure accurate timing information and proper error reporting [#42](https://github.com/Shopify/mcp-ruby/pull/42) @tobiasbales - Improved error handling and reporting in the server - Fixed timing information collection in instrumentation - Added proper error types for different failure scenarios - Enhanced test coverage for error cases - [Allow protocol version to be set at the server level #43](https://github.com/Shopify/mcp-ruby/pull/43) @topherbullock - [Fix instrumentation handling #42](https://github.com/Shopify/mcp-ruby/pull/42) @tobiasbales
This commit is contained in:
parent
7175d49108
commit
d2b6a33788
1 changed files with 248 additions and 86 deletions
16
README.md
16
README.md
|
|
@ -132,6 +132,22 @@ server = ModelContextProtocol::Server.new(
|
|||
)
|
||||
```
|
||||
|
||||
### Server Protocol Version
|
||||
|
||||
The server's protocol version can be overridden using the `protocol_version` class method:
|
||||
|
||||
```ruby
|
||||
ModelContextProtocol::Server.protocol_version = "2024-11-05"
|
||||
```
|
||||
|
||||
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
|
||||
ModelContextProtocol::Server.protocol_version = 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.
|
||||
|
||||
### Exception Reporting
|
||||
|
||||
The exception reporter receives two arguments:
|
||||
|
|
|
|||
Loading…
Reference in a new issue