TsgcWSAPIServer_MCPMethods › SendNotificationPromptsListChanged

SendNotificationPromptsListChanged Method

Broadcasts notifications/prompts/list_changed so clients refresh their prompt catalogue.

Syntax

procedure SendNotificationPromptsListChanged;

Remarks

Sends notifications/prompts/list_changed to every connected streaming session so clients re-issue prompts/list and learn about prompts added, removed or renamed on the server. Call it after mutating the Prompts catalogue. The notification is only emitted when TransportOptions.HttpStreamable.Enabled is True.

Example

MCPServer.Prompts.AddPrompt('ops.plan-template', 'Guides the assistant through remediation steps');
MCPServer.SendNotificationPromptsListChanged;

Back to Methods