Event ServerNotificationReceived
Raised when a server-initiated notification is received.
public event EventHandler<McpServerNotificationEventArgs> ServerNotificationReceived
Returns
- EventHandler<McpServerNotificationEventArgs>
- Raised when a server-initiated notification is received.
- Implements
Remarks
Server notifications include catalog change events (tools/list_changed, resources/list_changed, etc.) and other server-push messages. The event payload contains the full JSON-RPC notification.
Handlers should be lightweight and non-blocking. Heavy processing should be offloaded to avoid blocking the transport's receive loop.