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