/** * MCP Update Checker * Detects version updates for installed MCPs and manages cache invalidation */ export interface MCPVersionInfo { name: string; currentVersion: string; latestVersion?: string; hasUpdate: boolean; lastChecked?: number; } export declare class MCPUpdateChecker { private cacheFile; private readonly checkInterval; private inFlightRequests; constructor(); private loadCache; private saveCache; /** * Fetch latest version from npm registry with deduplication * Prevents duplicate requests if multiple tools call this simultaneously */ private fetchLatestVersionFromNpm; /** * Compare semantic versions * Returns true if latestVersion > currentVersion */ private compareVersions; /** * Check for updates for a specific MCP */ checkMCPUpdate(mcpName: string, currentVersion: string, packageName?: string): Promise; /** * Get inline notification message for outdated MCP */ getUpdateNotification(mcpInfo: MCPVersionInfo): string | null; /** * Record that notification was shown to avoid spam */ markNotificationShown(mcpName: string): void; /** * Check if notification should be shown (once per day per MCP) */ shouldShowNotification(mcpName: string): boolean; /** * Clear version cache for an MCP (called after update) */ invalidateMCPCache(mcpName: string): void; /** * Get all MCPs with available updates */ checkAllMCPUpdates(mcps: Array<{ name: string; version: string; packageName?: string; }>): Promise; } //# sourceMappingURL=mcp-update-checker.d.ts.map