Set Mcp-Protocol-Version in client requests after init, and warn when it doesn't match negotiated version (it SHOULD match)

This commit is contained in:
Olivier Chafik 2025-06-10 14:07:10 +01:00
commit 84971c83ea
No known key found for this signature in database

View file

@ -75,4 +75,11 @@ export interface Transport {
* The session ID generated for this connection.
*/
sessionId?: string;
/**
* The protocol version used for the connection.
*
* Only set after the initialize response was received.
*/
protocolVersion?: string;
}