TsgcWSAPIServer_MCP › Methods › SendNotificationProgress
Sends a notifications/progress notification for the request being processed.
procedure SendNotificationProgress(const aSession: TsgcAI_MCP_Session; const aProgressToken: string; aProgress, aTotal: Double; const aMessage: string = '');
| Name | Type | Description |
|---|---|---|
aSession | TsgcAI_MCP_Session | Session of the current request, as received in the request event. |
aProgressToken | const string | Progress token sent by the client, available in aRequest.ProgressToken. |
aProgress | Double | Current progress value. |
aTotal | Double | Total value, if known. |
aMessage | const string | Optional human readable message. |
For a 2026-07-28 request the notification is streamed in the response of the same request (Server-Sent Events over HTTP when the client accepts text/event-stream), and only when the request contains a progress token. For legacy sessions it is delivered through the session streams as before. See Logging and Progress.
if aRequest.ProgressToken <> '' then
MCPServer.SendNotificationProgress(aSession, aRequest.ProgressToken, 3, 10, 'Step 3 of 10');