vibe-coder-mcp
Version:
Production-ready MCP server with complete agent integration, multi-transport support, and comprehensive development automation tools for AI-assisted workflows.
80 lines • 3.02 kB
TypeScript
import { AgentInfo } from './agent-orchestrator.js';
export interface AgentRegistration {
agentId: string;
capabilities: string[];
transportType: 'stdio' | 'sse' | 'websocket' | 'http';
sessionId: string;
maxConcurrentTasks: number;
pollingInterval?: number;
status?: 'online' | 'offline' | 'busy';
registeredAt?: number;
lastSeen?: number;
currentTasks?: string[];
websocketConnection?: WebSocket;
httpEndpoint?: string;
httpAuthToken?: string;
}
export interface UnifiedAgent {
id: string;
name?: string;
capabilities: string[];
status: 'online' | 'offline' | 'busy' | 'available' | 'error';
maxConcurrentTasks: number;
currentTasks: string[];
transportType?: 'stdio' | 'sse' | 'websocket' | 'http';
sessionId?: string;
pollingInterval?: number;
registeredAt: number;
lastSeen: number;
lastHeartbeat: Date;
performance: {
tasksCompleted: number;
averageCompletionTime: number;
successRate: number;
lastTaskCompletedAt?: Date;
};
httpEndpoint?: string;
httpAuthToken?: string;
websocketConnection?: WebSocket;
metadata: {
version: string;
supportedProtocols: string[];
preferences: Record<string, unknown>;
};
}
export declare class AgentIntegrationBridge {
private static instance;
private static isInitializing;
private agentRegistry;
private agentOrchestrator;
private syncEnabled;
private syncInterval?;
private registrationInProgress;
private constructor();
static getInstance(): AgentIntegrationBridge;
private static createSafeFallback;
private initializeDependencies;
convertRegistryToOrchestrator(registryAgent: AgentRegistration): Omit<AgentInfo, 'lastHeartbeat' | 'performance'>;
convertOrchestratorToRegistry(orchestratorAgent: AgentInfo): AgentRegistration;
private mapCapabilities;
private mapRegistryStatusToOrchestrator;
private mapOrchestratorStatusToRegistry;
registerAgent(agentData: Partial<UnifiedAgent> & {
id: string;
capabilities: string[];
}): Promise<void>;
private convertUnifiedToRegistry;
private convertUnifiedToOrchestrator;
private registerInRegistryOnly;
private registerInOrchestratorOnly;
synchronizeAgents(): Promise<void>;
startAutoSync(intervalMs?: number): void;
stopAutoSync(): void;
propagateStatusChange(agentId: string, newStatus: 'online' | 'offline' | 'busy' | 'available' | 'error', source: 'registry' | 'orchestrator'): Promise<void>;
propagateTaskStatusChange(agentId: string, taskId: string, taskStatus: 'assigned' | 'in_progress' | 'completed' | 'failed', source: 'registry' | 'orchestrator'): Promise<void>;
setSyncEnabled(enabled: boolean): void;
getUnifiedAgent(agentId: string): Promise<UnifiedAgent | null>;
private convertRegistryToUnified;
private convertOrchestratorToUnified;
}
//# sourceMappingURL=agent-integration-bridge.d.ts.map