ai-debug-local-mcp
Version:
🎯 ENHANCED AI GUIDANCE v4.1.2: Dramatically improved tool descriptions help AI users choose the right tools instead of 'close enough' options. Ultra-fast keyboard automation (10x speed), universal recording, multi-ecosystem debugging support, and compreh
93 lines • 2.84 kB
TypeScript
/**
* Universal MCP Workflow Orchestrator
*
* Transforms AI-Debug into the central hub for Claude Code sub-agent workflows.
* Automatically detects available MCP servers and orchestrates intelligent workflows.
*/
export interface MCPServer {
name: string;
capabilities: string[];
tools: MCPTool[];
category: 'static-analysis' | 'runtime-debugging' | 'testing' | 'deployment' | 'ai' | 'productivity' | 'unknown';
description: string;
}
export interface MCPTool {
name: string;
description: string;
category: string;
server: string;
}
export interface WorkflowIntent {
type: 'debug-fix' | 'performance-optimize' | 'test-and-deploy' | 'refactor-safely' | 'analyze-security' | 'custom';
description: string;
context: {
language?: string;
framework?: string;
projectType?: string;
urgency?: 'low' | 'medium' | 'high' | 'critical';
};
}
export interface WorkflowStep {
phase: string;
server: string;
tools: string[];
handoffData: any;
parallelExecution?: boolean;
condition?: string;
}
export interface UniversalSession {
id: string;
workflowType: string;
currentPhase: string;
availableServers: MCPServer[];
sessionData: Map<string, any>;
handoffHistory: HandoffRecord[];
startTime: number;
context: WorkflowIntent;
}
export interface HandoffRecord {
timestamp: number;
fromServer: string;
toServer: string;
phase: string;
dataExported: any;
success: boolean;
}
/**
* Universal MCP Orchestrator
* The brain that coordinates all MCP workflows for Claude Code
*/
export declare class UniversalMCPOrchestrator {
private availableServers;
private workflows;
private activeSessions;
/**
* Auto-discover all available MCP servers in Claude Code environment
*/
discoverMCPServers(): Promise<MCPServer[]>;
/**
* Intelligently determine workflow based on user intent
*/
planWorkflow(intent: WorkflowIntent, availableServers: MCPServer[]): Promise<WorkflowStep[]>;
/**
* Generate custom workflow using AI analysis
*/
private generateCustomWorkflow;
/**
* Execute workflow with intelligent handoffs
*/
executeWorkflow(sessionId: string, workflow: WorkflowStep[]): Promise<any>;
/**
* Universal export format for any MCP server combination
*/
generateUniversalExport(sessionId: string, targetServers: string[]): any;
private evaluateCondition;
private prepareHandoffData;
private executeWorkflowStep;
private updateSessionWithResults;
private getCurrentServer;
private generateServerRecommendations;
private generateNextActions;
}
export declare const universalOrchestrator: UniversalMCPOrchestrator;
//# sourceMappingURL=universal-mcp-orchestrator.d.ts.map