TsgcWSAPIServer_MCP › Methods › NotifySubscriptions

NotifySubscriptions Method

Sends a notification to every open subscription that watches it.

Syntax

procedure NotifySubscriptions(const aMethod: string; const aUri: string = '');

Remarks

aMethod is the notification method, for example notifications/tools/list_changed or notifications/resources/updated. aUri is only used by notifications/resources/updated: the notification is delivered only to the subscriptions that include that URI.

The notification is written on the open subscriptions/listen streams of 2026-07-28 clients. The SendNotification* methods call it for you, so use it when you need to choose the method at runtime. See Subscriptions.

Example

MCPServer.NotifySubscriptions('notifications/resources/updated',
  'file:///readme.txt');

Back to Methods