We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b6a4e0 commit c5a5fb2Copy full SHA for c5a5fb2
1 file changed
src/mcp/server/lowlevel/server.py
@@ -530,11 +530,7 @@ async def _handle_notification(
530
_task_support=task_support,
531
),
532
)
533
- token = request_ctx.set(ctx)
534
- try:
535
- await handler(ctx, getattr(notify, "params", None))
536
- finally:
537
- request_ctx.reset(token)
+ await handler(ctx, getattr(notify, "params", None))
538
except Exception: # pragma: no cover
539
logger.exception("Uncaught exception in notification handler")
540
0 commit comments