McpToolTriggerHandler type

A handler function for MCP Tool triggers.

type McpToolTriggerHandler<T> = (
  messages: T,
  context: InvocationContext
) => FunctionResult