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 |
|---|---|
| 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. |
| 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. |
| 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. |