TsgcWSAPIServer_MCPMethods › SendNotificationResourcesUpdated

SendNotificationResourcesUpdated Method

Notifies subscribed clients that a specific resource URI has been updated.

Syntax

procedure SendNotificationResourcesUpdated(const aUri: string);

Parameters

NameTypeDescription
aUriconst stringURI of the resource whose contents changed (for example metrics://deployments).

Remarks

Sends notifications/resources/updated to every session that previously called resources/subscribe with this URI. The notification is only emitted when TransportOptions.HttpStreamable.Enabled is True. Use it whenever the underlying data source changes so subscribed clients can re-read the resource with resources/read.

Example

MCPServer.SendNotificationResourcesUpdated('metrics://deployments');

Back to Methods