Commit 09b7f75
committed
Require protocol_version to be a string
The MCP schema defines protocolVersion as a plain string. The int variant
only existed for compatibility with pre-release protocol negotiation
(before 2024-10-07 date-based versioning), which sent protocolVersion: 1.
Integer versions can never successfully negotiate against the supported
version list, so accepting them only changed the failure mode. This
matches the TypeScript SDK, which made the same change in November 2024.1 parent 616476f commit 09b7f75
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
548 | | - | |
| 548 | + | |
549 | 549 | | |
550 | 550 | | |
551 | 551 | | |
| |||
563 | 563 | | |
564 | 564 | | |
565 | 565 | | |
566 | | - | |
| 566 | + | |
567 | 567 | | |
568 | 568 | | |
569 | 569 | | |
| |||
0 commit comments