We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4816bed commit e702f9eCopy full SHA for e702f9e
src/mcp/shared/session.py
@@ -292,11 +292,11 @@ async def _send_response(
292
def _should_validate_notification(self, message_root: JSONRPCNotification) -> bool:
293
"""
294
Determines if a notification should be validated.
295
- Internal notifications (like cancelled) should be ignored.
+ Internal notifications (like notifications/cancelled) should be ignored.
296
297
try:
298
return (
299
- getattr(message_root, "method", None) != "cancelled" and
+ getattr(message_root, "method", None) != "notifications/cancelled" and
300
not self._closed
301
)
302
except:
0 commit comments