McpServer.notifyResourcesListChanged

Broadcast a notifications/resources/list_changed to every client listening on the standalone GET SSE stream, informing them the set of available resources changed (per the server/resources List Changed Notification). Returns the number of listeners reached; 0 when no GET stream is open. Call after a runtime registerResource / registerResourceTemplate (or a removal). For the draft protocol, the notification is suppressed unless a client opted in via subscriptions/listen with resourcesListChanged:true.

class McpServer
@safe
size_t
notifyResourcesListChanged
()