@apify/actors-mcp-server
Version:
Model Context Protocol Server for Apify
13 lines • 751 B
TypeScript
import type { ProgressNotification } from '@modelcontextprotocol/sdk/types.js';
export declare class ProgressTracker {
private progressToken;
private sendNotification;
private currentProgress;
private intervalId?;
constructor(progressToken: string | number, sendNotification: (notification: ProgressNotification) => Promise<void>);
updateProgress(message?: string): Promise<void>;
startActorRunUpdates(runId: string, apifyToken: string, actorName: string): void;
stop(): void;
}
export declare function createProgressTracker(progressToken: string | number | undefined, sendNotification: ((notification: ProgressNotification) => Promise<void>) | undefined): ProgressTracker | null;
//# sourceMappingURL=progress.d.ts.map