@versatil/sdlc-framework
Version:
🚀 AI-Native SDLC framework with 11-MCP ecosystem, RAG memory, OPERA orchestration, and 6 specialized agents achieving ZERO CONTEXT LOSS. Features complete CI/CD pipeline with 7 GitHub workflows (MCP testing, security scanning, performance benchmarking),
108 lines (107 loc) • 2.86 kB
TypeScript
/**
* VERSATIL SDLC Framework - MCP Auto-Update System
* Continuously discovers, evaluates, and integrates new MCPs
*/
import { EventEmitter } from 'events';
import { MCPAutoDiscoveryAgent, MCPDefinition } from '../agents/mcp/mcp-auto-discovery-agent.js';
export interface AutoUpdateConfig {
enabled: boolean;
checkInterval: number;
autoInstall: boolean;
requireApproval: boolean;
updateChannels: string[];
excludePatterns: string[];
maxAutoInstalls: number;
}
export interface MCPUpdate {
id: string;
type: 'new' | 'update' | 'security' | 'deprecation';
mcp: MCPDefinition;
changes?: string[];
severity?: 'low' | 'medium' | 'high' | 'critical';
autoInstallable: boolean;
}
export declare class MCPAutoUpdateSystem extends EventEmitter {
private logger;
private discoveryAgent;
private config;
private updateTimer?;
private updateHistory;
private pendingUpdates;
private installedVersions;
private knownMCPSources;
constructor(discoveryAgent: MCPAutoDiscoveryAgent, config?: Partial<AutoUpdateConfig>);
/**
* Start the auto-update system
*/
start(): void;
/**
* Stop the auto-update system
*/
stop(): void;
/**
* Main update check routine
*/
private checkForUpdates;
/**
* Search for new MCPs using web research
*/
private searchForNewMCPs;
/**
* Check for updates to existing MCPs
*/
private checkExistingMCPUpdates;
/**
* Check for security updates
*/
private checkSecurityUpdates;
/**
* Check for deprecated MCPs
*/
private checkDeprecations;
/**
* Evaluate and prioritize updates
*/
private evaluateUpdates;
/**
* Apply updates based on configuration
*/
private applyUpdates;
/**
* Update RAG with new MCP knowledge
*/
private updateRAGKnowledge;
private generateSearchQueries;
private simulateWebSearch;
private identifyMissingCapabilities;
private isKnownMCP;
private validateMCPDefinition;
private storeDiscovery;
private getKnownMCPs;
private checkNPMVersion;
private isNewerVersion;
private hasBreakingChanges;
private fetchChangelog;
private checkNewCapabilities;
private fetchSecurityAdvisories;
private getMCPById;
private checkDeprecationStatus;
private searchMCPRegistry;
private installNewMCP;
private updateMCP;
private applySecurityUpdate;
private handleDeprecation;
private recordUpdate;
/**
* Get pending updates for review
*/
getPendingUpdates(): MCPUpdate[];
/**
* Approve a pending update
*/
approvePendingUpdate(updateId: string): Promise<boolean>;
/**
* Reject a pending update
*/
rejectPendingUpdate(updateId: string): boolean;
}