Skip to content

Commit ab4d621

Browse files
jbafindleyr
authored andcommitted
mcp: tweak ProgressNotificationParams
1 parent c2c810b commit ab4d621

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mcp/protocol.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -625,15 +625,16 @@ type ProgressNotificationParams struct {
625625
// This property is reserved by the protocol to allow clients and servers to
626626
// attach additional metadata to their responses.
627627
Meta `json:"_meta,omitempty"`
628+
// The progress token which was given in the initial request, used to associate
629+
// this notification with the request that is proceeding.
630+
ProgressToken any `json:"progressToken"`
628631
// An optional message describing the current progress.
629632
Message string `json:"message,omitempty"`
630633
// The progress thus far. This should increase every time progress is made, even
631634
// if the total is unknown.
632635
Progress float64 `json:"progress"`
633-
// The progress token which was given in the initial request, used to associate
634-
// this notification with the request that is proceeding.
635-
ProgressToken any `json:"progressToken"`
636636
// Total number of items to process (or total progress required), if known.
637+
// Zero means unknown.
637638
Total float64 `json:"total,omitempty"`
638639
}
639640

0 commit comments

Comments
 (0)