MCP TypeScript SDK (V2)
    Preparing search index...

    Task status update message.

    Yielded on each poll iteration while the task is active (e.g. while working). May be emitted multiple times with the same status.

    interface TaskStatusMessage {
        task: {
            createdAt: string;
            lastUpdatedAt: string;
            pollInterval?: number;
            status:
                | "working"
                | "input_required"
                | "completed"
                | "failed"
                | "cancelled";
            statusMessage?: string;
            taskId: string;
            ttl: number
            | null;
        };
        type: "taskStatus";
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    task: {
        createdAt: string;
        lastUpdatedAt: string;
        pollInterval?: number;
        status: "working" | "input_required" | "completed" | "failed" | "cancelled";
        statusMessage?: string;
        taskId: string;
        ttl: number | null;
    }

    Type Declaration

    • createdAt: string

      ISO 8601 timestamp when the task was created.

    • lastUpdatedAt: string

      ISO 8601 timestamp when the task was last updated.

    • OptionalpollInterval?: number
    • status: "working" | "input_required" | "completed" | "failed" | "cancelled"
    • OptionalstatusMessage?: string

      Optional diagnostic message for failed tasks or other status information.

    • taskId: string
    • ttl: number | null

      Time in milliseconds to keep task results available after completion. If null, the task has unlimited lifetime until manually cleaned up.

    type: "taskStatus"