Table of Contents

TTMSMCPTaskExecuteEvent Event Type

Signature of the handler that takes over execution of a task instead of the built-in tool runner. When assigned, the handler is fully responsible for completing the task through SetTaskResult or SetTaskError.

API unit family: TMS.MCP.Server

Remarks

The handler runs on a background thread, not on the main thread. An exception that escapes it is caught and turned into a task error.

Parameters

Name Description
Sender Server that owns the task.
ATaskId Identifier of the task to execute.
AToolName Name of the tool the client asked for.
AArguments Call arguments. The instance is owned by the server and released once execution returns; clone anything that must outlive the call.