Commit 1d54f29
committed
fix: Return negotiated protocol version in initialize
The initialize method should return the protocol version requested by
the client (after validation), not the server's default protocol version.
This ensures proper protocol version negotiation per MCP spec 2025-06-18.
- Changed InitializeResult to use negotiated protocol_version
- Fixed doctest to validate correct protocol version handling
- Ensures client and server agree on the protocol version being used
Signed-off-by: Mihai Criveti <[email protected]>1 parent 638e53e commit 1d54f29
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1251 | 1251 | | |
1252 | 1252 | | |
1253 | 1253 | | |
1254 | | - | |
| 1254 | + | |
1255 | 1255 | | |
1256 | 1256 | | |
1257 | 1257 | | |
| |||
0 commit comments