Skip to content

feat: zod v4 with backwards compatibility for v3.25+ #2048

feat: zod v4 with backwards compatibility for v3.25+

feat: zod v4 with backwards compatibility for v3.25+ #2048

Triggered via pull request November 6, 2025 19:51
Status Failure
Total duration 24s
Artifacts

main.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
build: src/spec.types.test.ts#L207
Type 'CallToolRequest' is not assignable to type 'WithJSONRPCRequest<{ method: "tools/call"; params: { [x: string]: unknown; _meta?: { [x: string]: unknown; progressToken?: string | number | undefined; } | undefined; name: string; arguments?: { [x: string]: unknown; } | undefined; }; }>'.
build: src/spec.types.test.ts#L195
Type 'ListToolsRequest' is not assignable to type 'WithJSONRPCRequest<{ params?: { [x: string]: unknown; _meta?: { [x: string]: unknown; progressToken?: string | number | undefined; } | undefined; cursor?: string | undefined; } | undefined; method: "tools/list"; }>'.
build: src/spec.types.test.ts#L171
Type 'ClientNotification' is not assignable to type 'WithJSONRPC<ClientNotification>'.
build: src/spec.types.test.ts#L99
Type 'ListRootsRequest' is not assignable to type 'WithJSONRPCRequest<{ params?: { [x: string]: unknown; _meta?: { [x: string]: unknown; progressToken?: string | number | undefined; } | undefined; } | undefined; method: "roots/list"; }>'.
build: src/spec.types.test.ts#L91
Type 'PaginatedRequest' is not assignable to type 'WithJSONRPCRequest<{ method: string; params?: { [x: string]: unknown; _meta?: { [x: string]: unknown; progressToken?: string | number | undefined; } | undefined; cursor?: string | undefined; } | undefined; }>'.
build: src/spec.types.test.ts#L87
Type 'UnsubscribeRequest' is not assignable to type 'WithJSONRPCRequest<{ method: "resources/unsubscribe"; params: { [x: string]: unknown; _meta?: { [x: string]: unknown; progressToken?: string | number | undefined; } | undefined; uri: string; }; }>'.
build: src/spec.types.test.ts#L83
Type 'SubscribeRequest' is not assignable to type 'WithJSONRPCRequest<{ method: "resources/subscribe"; params: { [x: string]: unknown; _meta?: { [x: string]: unknown; progressToken?: string | number | undefined; } | undefined; uri: string; }; }>'.
build: src/spec.types.test.ts#L79
Type 'ProgressNotification' is not assignable to type 'WithJSONRPC<{ method: "notifications/progress"; params: { [x: string]: unknown; _meta?: { [x: string]: unknown; } | undefined; progress: number; total?: number | undefined; message?: string | undefined; progressToken: string | number; }; }>'.
build: src/spec.types.test.ts#L67
Type 'CancelledNotification' is not assignable to type 'WithJSONRPC<{ method: "notifications/cancelled"; params: { [x: string]: unknown; _meta?: { [x: string]: unknown; } | undefined; requestId: string | number; reason?: string | undefined; }; }>'.
build: src/server/v3/sse.v3.test.ts#L8
Cannot find module 'src/types.js' or its corresponding type declarations.