Skip to content

Commit 0bf7e66

Browse files
committed
Require protocolVersion to be a string now
1 parent f336662 commit 0bf7e66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export const InitializeRequestSchema = RequestSchema.extend({
196196
/**
197197
* The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well.
198198
*/
199-
protocolVersion: z.string().or(z.number().int()),
199+
protocolVersion: z.string(),
200200
capabilities: ClientCapabilitiesSchema,
201201
clientInfo: ImplementationSchema,
202202
}),
@@ -268,7 +268,7 @@ export const InitializeResultSchema = ResultSchema.extend({
268268
/**
269269
* 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.
270270
*/
271-
protocolVersion: z.string().or(z.number().int()),
271+
protocolVersion: z.string(),
272272
capabilities: ServerCapabilitiesSchema,
273273
serverInfo: ImplementationSchema,
274274
});

0 commit comments

Comments
 (0)