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

    Options for subscribing to list changed notifications.

    type ListChangedOptions<T> = {
        autoRefresh?: boolean;
        debounceMs?: number;
        onChanged: ListChangedCallback<T>;
    }

    Type Parameters

    Index

    Properties

    autoRefresh?: boolean

    If true, the list will be refreshed automatically when a list changed notification is received.

    true
    
    debounceMs?: number

    Debounce time in milliseconds. Set to 0 to disable.

    300
    

    Callback invoked when the list changes.

    If autoRefresh is true, items contains the updated list. If autoRefresh is false, items is null (caller should refresh manually).