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