Require protocolVersion to be a string now
This commit is contained in:
parent
f33666267a
commit
0bf7e66e98
1 changed files with 2 additions and 2 deletions
|
|
@ -196,7 +196,7 @@ export const InitializeRequestSchema = RequestSchema.extend({
|
|||
/**
|
||||
* The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well.
|
||||
*/
|
||||
protocolVersion: z.string().or(z.number().int()),
|
||||
protocolVersion: z.string(),
|
||||
capabilities: ClientCapabilitiesSchema,
|
||||
clientInfo: ImplementationSchema,
|
||||
}),
|
||||
|
|
@ -268,7 +268,7 @@ export const InitializeResultSchema = ResultSchema.extend({
|
|||
/**
|
||||
* 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.
|
||||
*/
|
||||
protocolVersion: z.string().or(z.number().int()),
|
||||
protocolVersion: z.string(),
|
||||
capabilities: ServerCapabilitiesSchema,
|
||||
serverInfo: ImplementationSchema,
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue