McpServer.notifyToolsListChanged

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

class McpServer
@safe
size_t
notifyToolsListChanged
()