File tree 1 file changed +9
-1
lines changed 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -296,6 +296,14 @@ class InitializedNotification(Notification):
296
296
method : Literal ["notifications/initialized" ]
297
297
params : NotificationParams | None = None
298
298
299
+ class CancelledNotification (Notification ):
300
+ """This notification is sent from the client to the server when it decides to
301
+ cancel a request."""
302
+
303
+ # method: Literal["notifications/cancelled"] - this is what it should be but Claude Desktop is probably using an internal SDK
304
+ method : Literal ["cancelled" ]
305
+ params : NotificationParams | None = None
306
+
299
307
300
308
class PingRequest (Request ):
301
309
"""
@@ -997,7 +1005,7 @@ class ClientRequest(
997
1005
998
1006
class ClientNotification (
999
1007
RootModel [
1000
- ProgressNotification | InitializedNotification | RootsListChangedNotification
1008
+ CancelledNotification | ProgressNotification | InitializedNotification | RootsListChangedNotification
1001
1009
]
1002
1010
):
1003
1011
pass
You can’t perform that action at this time.
0 commit comments