Skip to content

Commit bc92a86

Browse files
committed
Change to protocol version 2024-10-07
1 parent 272d107 commit bc92a86

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

schema/schema.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -461,9 +461,8 @@
461461
"$ref": "#/definitions/Implementation"
462462
},
463463
"protocolVersion": {
464-
"const": 1,
465464
"description": "The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well.",
466-
"type": "integer"
465+
"type": "string"
467466
}
468467
},
469468
"required": [
@@ -492,9 +491,8 @@
492491
"$ref": "#/definitions/ServerCapabilities"
493492
},
494493
"protocolVersion": {
495-
"const": 1,
496494
"description": "The version of the Model Context Protocol that the server wants to use. This may not match the version that the client requested. If the client cannot support this version, it MUST disconnect.",
497-
"type": "integer"
495+
"type": "string"
498496
},
499497
"serverInfo": {
500498
"$ref": "#/definitions/Implementation"

schema/schema.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export interface JSONRPCError {
109109
export type EmptyResult = Result;
110110

111111
/* Initialization */
112-
export const PROTOCOL_VERSION = 1;
112+
export const LATEST_PROTOCOL_VERSION = "2024-10-07";
113113
/**
114114
* This request is sent from the client to the server when it first connects, asking it to begin initialization.
115115
*/
@@ -119,7 +119,7 @@ export interface InitializeRequest extends Request {
119119
/**
120120
* The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well.
121121
*/
122-
protocolVersion: typeof PROTOCOL_VERSION;
122+
protocolVersion: string;
123123
capabilities: ClientCapabilities;
124124
clientInfo: Implementation;
125125
};
@@ -132,7 +132,7 @@ export interface InitializeResult extends Result {
132132
/**
133133
* The version of the Model Context Protocol that the server wants to use. This may not match the version that the client requested. If the client cannot support this version, it MUST disconnect.
134134
*/
135-
protocolVersion: typeof PROTOCOL_VERSION;
135+
protocolVersion: string;
136136
capabilities: ServerCapabilities;
137137
serverInfo: Implementation;
138138
}

0 commit comments

Comments
 (0)