@@ -199,6 +199,8 @@ import {
199199 ServerTasksCapabilitySchema ,
200200 // JSON-RPC schemas
201201 JSONRPCResponseSchema ,
202+ // Progress
203+ ProgressNotificationParamsSchema ,
202204} from './generated/sdk.schemas.js' ;
203205
204206export {
@@ -342,6 +344,7 @@ export {
342344 ClientTasksCapabilitySchema ,
343345 ServerTasksCapabilitySchema ,
344346 JSONRPCResponseSchema ,
347+ ProgressNotificationParamsSchema ,
345348} ;
346349
347350export const LATEST_PROTOCOL_VERSION = '2025-11-25' ;
@@ -380,7 +383,6 @@ export const TaskCreationParamsSchema = z.looseObject({
380383 pollInterval : z . number ( ) . optional ( )
381384} ) ;
382385
383- // are re-exported from generated. They include RELATED_TASK_META_KEY in _meta, injected
384386// during pre-processing.
385387
386388/**
@@ -392,7 +394,6 @@ export const TaskCreationParamsSchema = z.looseObject({
392394export const isTaskAugmentedRequestParams = ( value : unknown ) : value is TaskAugmentedRequestParams =>
393395 TaskAugmentedRequestParamsSchema . safeParse ( value ) . success ;
394396
395- // are re-exported from generated. They include proper _meta typing and .strict().
396397
397398export const isJSONRPCRequest = ( value : unknown ) : value is JSONRPCRequest => JSONRPCRequestSchema . safeParse ( value ) . success ;
398399export const isJSONRPCNotification = ( value : unknown ) : value is JSONRPCNotification => JSONRPCNotificationSchema . safeParse ( value ) . success ;
@@ -654,44 +655,26 @@ export const ProgressSchema = z.object({
654655 message : z . optional ( z . string ( ) )
655656} ) ;
656657
657- export const ProgressNotificationParamsSchema = z . object ( {
658- ...NotificationParamsSchema . shape ,
659- ...ProgressSchema . shape ,
660- /**
661- * The progress token which was given in the initial request, used to associate this notification with the request that is proceeding.
662- */
663- progressToken : ProgressTokenSchema
664- } ) ;
665-
666658/* Pagination */
667- // are re-exported from generated.
668659
669660/* Tasks */
670- // TaskStatusNotificationSchema, GetTaskResultSchema, GetTaskPayloadResultSchema,
671- // ListTasksResultSchema, CancelTaskResultSchema are re-exported from generated.
672661
673662/* Resources */
674- // are re-exported from generated with Base64 validation.
675663
676664
677- // UnsubscribeRequestSchema are re-exported from generated.
678665
679666// ResourceRequestParamsSchema, ReadResourceRequestParamsSchema,
680667// SubscribeRequestParamsSchema, UnsubscribeRequestParamsSchema,
681668// ReadResourceRequestSchema, ReadResourceResultSchema, ResourceListChangedNotificationSchema,
682- // ResourceUpdatedNotificationParamsSchema, ResourceUpdatedNotificationSchema are re-exported from generated.
683669
684670/* Prompts */
685- // are re-exported from generated.
686671
687672
688673// from generated with Base64 validation for data fields.
689674
690- // PromptMessageSchema, GetPromptResultSchema, PromptListChangedNotificationSchema are re-exported from generated.
691675
692676/* Tools */
693677// ListToolsResultSchema, CallToolResultSchema, CallToolRequestParamsSchema,
694- // CallToolRequestSchema, ToolListChangedNotificationSchema are re-exported from generated.
695678
696679/**
697680 * CallToolResultSchema extended with backwards compatibility to protocol version 2024-10-07.
@@ -783,7 +766,6 @@ export type ListChangedHandlers = {
783766} ;
784767
785768/* Logging */
786- // LoggingMessageNotificationParamsSchema are re-exported from generated.
787769
788770/* Sampling */
789771
@@ -794,7 +776,6 @@ export type ListChangedHandlers = {
794776export const SamplingContentSchema = z . discriminatedUnion ( 'type' , [ TextContentSchema , ImageContentSchema , AudioContentSchema ] ) ;
795777
796778// SamplingMessageSchema, CreateMessageRequestParamsSchema, CreateMessageRequestSchema,
797- // CreateMessageResultSchema are re-exported from generated.
798779
799780/**
800781 * The client's response to a sampling/create_message request when tools were provided.
@@ -828,9 +809,7 @@ export const CreateMessageResultWithToolsSchema = ResultSchema.extend({
828809// UntitledSingleSelectEnumSchemaSchema, TitledSingleSelectEnumSchemaSchema,
829810// LegacyTitledEnumSchemaSchema, SingleSelectEnumSchemaSchema, UntitledMultiSelectEnumSchemaSchema,
830811// TitledMultiSelectEnumSchemaSchema, MultiSelectEnumSchemaSchema, EnumSchemaSchema,
831- // PrimitiveSchemaDefinitionSchema are re-exported from generated.
832812
833- // ElicitRequestSchema, ElicitResultSchema, ElicitationCompleteNotificationSchema are re-exported from generated.
834813
835814/**
836815 * Parameters for a `notifications/elicitation/complete` notification.
@@ -851,7 +830,6 @@ export const ElicitationCompleteNotificationParamsSchema = NotificationParamsSch
851830 */
852831export const ResourceReferenceSchema = ResourceTemplateReferenceSchema ;
853832
854- // are re-exported from generated.
855833
856834export function assertCompleteRequestPrompt ( request : CompleteRequest ) : asserts request is CompleteRequestPrompt {
857835 if ( request . params . ref . type !== 'ref/prompt' ) {
@@ -868,10 +846,8 @@ export function assertCompleteRequestResourceTemplate(request: CompleteRequest):
868846}
869847
870848/* Roots */
871- // are re-exported from generated.
872849
873850/* Client/Server message types */
874- // ServerRequestSchema, ServerNotificationSchema, ServerResultSchema are re-exported from generated.
875851
876852export class McpError extends Error {
877853 constructor (
0 commit comments