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

    Interface CreateTaskOptionsExperimental

    Task creation options.

    interface CreateTaskOptions {
        context?: Record<string, unknown>;
        pollInterval?: number;
        ttl?: number | null;
    }
    Index

    Properties

    context?: Record<string, unknown>

    Additional context to pass to the task store.

    pollInterval?: number

    Time in milliseconds to wait between task status requests.

    ttl?: number | null

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