Allow stable protocol specification version "2025-11-25"
The MCP specification dated 2025-11-25 has been released: - https://modelcontextprotocol.io/specification/2025-11-25 - https://blog.modelcontextprotocol.io/posts/2025-11-25-first-mcp-anniversary This PR allows `'2025-11-25'` to be specified for the `:protocol_version` keyword argument in `MCP::Configuration.new`.
This commit is contained in:
parent
baeb75c8d8
commit
67e03d7b3d
1 changed files with 14 additions and 12 deletions
|
|
@ -53,7 +53,7 @@ module MCP
|
|||
Configuration.new(protocol_version: "DRAFT-2025-v3")
|
||||
end
|
||||
|
||||
assert_equal("protocol_version must be 2025-06-18, 2025-03-26, or 2024-11-05", exception.message)
|
||||
assert_equal("protocol_version must be 2025-11-25, 2025-06-18, 2025-03-26, or 2024-11-05", exception.message)
|
||||
end
|
||||
|
||||
test "raises ArgumentError when protocol_version is not a supported protocol version" do
|
||||
|
|
@ -62,7 +62,7 @@ module MCP
|
|||
custom_version = "2025-03-27"
|
||||
config.protocol_version = custom_version
|
||||
end
|
||||
assert_equal("protocol_version must be 2025-06-18, 2025-03-26, or 2024-11-05", exception.message)
|
||||
assert_equal("protocol_version must be 2025-11-25, 2025-06-18, 2025-03-26, or 2024-11-05", exception.message)
|
||||
end
|
||||
|
||||
test "raises ArgumentError when protocol_version is not a boolean value" do
|
||||
|
|
|
|||
Loading…
Reference in a new issue