We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent edf4833 commit 7801dc3Copy full SHA for 7801dc3
1 file changed
src/mcp/server/lowlevel/server.py
@@ -508,7 +508,7 @@ async def _handle_request(
508
509
async def _handle_notification(
510
self,
511
- notify: Any,
+ notify: types.ClientNotification,
512
session: ServerSession,
513
lifespan_context: LifespanResultT,
514
) -> None:
@@ -528,7 +528,7 @@ async def _handle_notification(
528
_task_support=task_support,
529
),
530
)
531
- await handler(ctx, getattr(notify, "params", None))
+ await handler(ctx, notify.params)
532
except Exception: # pragma: no cover
533
logger.exception("Uncaught exception in notification handler")
534
0 commit comments