TsgcWSAPIServer_MCPMethods › SendNotificationResourcesListChanged

SendNotificationResourcesListChanged Method

Broadcasts notifications/resources/list_changed so clients refresh their resource catalogue.

Syntax

procedure SendNotificationResourcesListChanged;

Remarks

Pushes notifications/resources/list_changed to every connected streaming session so clients re-issue resources/list and pick up resources that have been added, removed or re-described. Call it after mutating the Resources or ResourceTemplates catalogues. The notification is only emitted when TransportOptions.HttpStreamable.Enabled is True. For per-URI content changes use SendNotificationResourcesUpdated instead.

Example

MCPServer.Resources.AddResource('metrics://deployments', 'DeploymentMetrics', 'Deployment metrics feed', 'Exposes failure counters', 'application/json');
MCPServer.SendNotificationResourcesListChanged;

Back to Methods