Skip to main content
MCP notifications are one-way JSON-RPC messages (no response).

Receive (server → client)

Global handler on the client:
Or per-connection:
Common methods: notifications/tools/list_changed, notifications/resources/list_changed, notifications/prompts/list_changed.

Send (client → server)

Update roots — the client sends notifications/roots/list_changed:
Pass initial roots in server config or connector options.

React

McpClientProvider stores notifications on each server (notifications, unreadNotificationCount). Use onNotificationReceived per server for custom handling.

Reference

Server-side: Notifications