TsgcWSAPIClient_MCP › Events
Events you can handle, grouped by purpose, followed by the full alphabetical list.
| Name | Description |
|---|---|
| OnMCPInitialize | Fires when the server replies to the initialize handshake; inspect capabilities and set Accept := False to abort. |
| OnMCPPing | Fires when the server acknowledges a ping. Useful for round-trip telemetry. |
| OnMCPStreamMessage | Fires while streaming responses are being read; inspect the raw JSON fragment and set Cancel := True to abort the stream. |
| Name | Description |
|---|---|
| OnMCPListTools | Receives the tools catalogue returned by tools/list. |
| OnMCPResponseTool | Delivers the result of a tools/call invocation. |
| Name | Description |
|---|---|
| OnMCPListPrompts | Receives the prompt templates catalogue returned by prompts/list. |
| OnMCPResponsePrompt | Delivers the rendered prompt content returned by prompts/get. |
| Name | Description |
|---|---|
| OnMCPListResources | Receives the resources catalogue returned by resources/list. |
| OnMCPResponseResource | Delivers the payload returned by resources/read, including streamed chunks. |
| Name | Description |
|---|---|
| OnMCPListRoots | Fires when the server asks the client for its filesystem roots (roots/list). |
| OnMCPSamplingCreateMessage | Fires when the server asks the client to sample an LLM (sampling/createMessage). |
| OnMCPElicitationCreate | Fires when the server asks the user for additional input (elicitation/create). |
| Name | Description |
|---|---|
| OnMCPDiscover | Fires when the server answers server/discover; set Accept := False to reject the server. |
| OnMCPListChanged | Fires when the server notifies that the tools, prompts or resources list changed. |
| OnMCPInputRequired | Fires when the server answers with input_required and the client must provide the requested inputs. |
| Name | Description |
|---|---|
| OnMCPSubscriptionAcknowledged | Fires when the server accepts a subscription opened with subscriptions/listen. |
| OnMCPSubscriptionClosed | Fires when a subscription ends. |
| OnMCPResourcesUpdated | Fires when a watched resource changed (notifications/resources/updated). |
| Name | Description |
|---|---|
| OnMCPTaskCreated | Fires when a tools/call returns a task handle instead of the tool result. |
| OnMCPTaskStatus | Fires when the status of a task changes. |
| OnMCPTaskCompleted | Fires when a task reaches a terminal status (completed, failed or cancelled). |
| Name | Description |
|---|---|
| OnMCPAuthorizationURL | Fires with the URL the user must open to authorize the client. |
| OnMCPAuthorizationCredentials | Fires to load or store the credentials of an authorization server. |
| Name | Description |
|---|---|
| OnMCPAuthorizationCredentials | Fires to load or store the credentials of an authorization server. |
| OnMCPAuthorizationURL | Fires with the URL the user must open to authorize the client. |
| OnMCPDiscover | Fires when the server answers server/discover; set Accept := False to reject the server. |
| OnMCPElicitationCreate | Fires when the server asks the user for additional input (elicitation/create). |
| OnMCPInitialize | Fires when the server replies to the initialize handshake; inspect capabilities and set Accept := False to abort. |
| OnMCPInputRequired | Fires when the server answers with input_required and the client must provide the requested inputs. |
| OnMCPListChanged | Fires when the server notifies that the tools, prompts or resources list changed. |
| OnMCPListPrompts | Receives the prompt templates catalogue returned by prompts/list. |
| OnMCPListResources | Receives the resources catalogue returned by resources/list. |
| OnMCPListRoots | Fires when the server asks the client for its filesystem roots (roots/list). |
| OnMCPListTools | Receives the tools catalogue returned by tools/list. |
| OnMCPPing | Fires when the server acknowledges a ping. Useful for round-trip telemetry. |
| OnMCPResourcesUpdated | Fires when a watched resource changed (notifications/resources/updated). |
| OnMCPResponsePrompt | Delivers the rendered prompt content returned by prompts/get. |
| OnMCPResponseResource | Delivers the payload returned by resources/read, including streamed chunks. |
| OnMCPResponseTool | Delivers the result of a tools/call invocation. |
| OnMCPSamplingCreateMessage | Fires when the server asks the client to sample an LLM (sampling/createMessage). |
| OnMCPStreamMessage | Fires while streaming responses are being read; inspect the raw JSON fragment and set Cancel := True to abort the stream. |
| OnMCPSubscriptionAcknowledged | Fires when the server accepts a subscription opened with subscriptions/listen. |
| OnMCPSubscriptionClosed | Fires when a subscription ends. |
| OnMCPTaskCompleted | Fires when a task reaches a terminal status (completed, failed or cancelled). |
| OnMCPTaskCreated | Fires when a tools/call returns a task handle instead of the tool result. |
| OnMCPTaskStatus | Fires when the status of a task changes. |