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
113 lines • 3.72 kB
TypeScript
/**
* Phoenix LiveView Enhanced Handler - Advanced LiveView Debugging
*
* Based on Cycles 50-51 feedback: "Would be amazing to have phoenix_liveview_state_inspector"
* Provides deep LiveView state inspection, process monitoring, and message tracing
*/
import { BaseToolHandler } from './base-handler.js';
import { Tool } from '@modelcontextprotocol/sdk/types.js';
/**
* Phoenix LiveView Enhanced Handler - Advanced debugging for Phoenix/LiveView applications
* Based on real-world feedback from Code Quality Sprint (614-line refactoring success)
*/
export declare class PhoenixLiveViewEnhancedHandler extends BaseToolHandler {
tools: Tool[];
private stateSnapshots;
private processTree;
private pubsubMessages;
constructor();
/**
* Get available Phoenix LiveView enhanced debugging tools
*/
getTools(): Tool[];
/**
* Handle tool requests by routing to appropriate methods
*/
handle(toolName: string, args: any, sessions: Map<string, any>): Promise<any>;
/**
* Deep inspection of LiveView socket state and assigns
* Addresses user feedback: "Would be amazing to have phoenix_liveview_state_inspector"
*/
phoenixLiveViewStateInspector(args: {
sessionId: string;
socketId?: string;
includePrivate?: boolean;
captureSnapshot?: boolean;
}, sessions: Map<string, any>): Promise<any>;
/**
* Monitor Phoenix process tree with memory and performance metrics
* Addresses user feedback: "phoenix_process_tree_monitor"
*/
phoenixProcessTreeMonitor(args: {
sessionId: string;
rootProcess?: string;
includeMemory?: boolean;
monitorDuration?: number;
}, sessions: Map<string, any>): Promise<any>;
/**
* Trace PubSub messages with filtering and flow analysis
* Addresses user feedback: "phoenix_pubsub_message_tracer"
*/
phoenixPubSubMessageTracer(args: {
sessionId: string;
topics?: string[];
eventFilter?: string;
traceDuration?: number;
}, sessions: Map<string, any>): Promise<any>;
/**
* Monitor file sizes with threshold alerts for 300-line rule
* Addresses user feedback: "File size monitoring: Alert when files exceed thresholds (like our 300-line rule)"
*/
phoenixFileSizeMonitor(args: {
sessionId: string;
projectPath: string;
lineThreshold?: number;
filePatterns?: string[];
enableRealTime?: boolean;
}, sessions: Map<string, any>): Promise<any>;
/**
* Capture LiveView state through browser-side evaluation
*/
private captureLiveViewState;
/**
* Analyze LiveView state for insights and recommendations
*/
private analyzeLiveViewState;
/**
* Capture process tree (mock implementation - would need server-side integration)
*/
private captureProcessTree;
/**
* Calculate process statistics
*/
private calculateProcessStatistics;
/**
* Generate process warnings
*/
private generateProcessWarnings;
/**
* Trace PubSub messages (mock implementation)
*/
private tracePubSubMessages;
/**
* Analyze PubSub message patterns
*/
private analyzePubSubMessages;
/**
* Generate PubSub recommendations
*/
private generatePubSubRecommendations;
/**
* Scan files for line count violations
*/
private scanFileViolations;
/**
* Calculate file summary statistics
*/
private calculateFileSummary;
/**
* Set up real-time file monitoring
*/
private setupRealTimeFileMonitoring;
}
//# sourceMappingURL=phoenix-liveview-enhanced-handler.d.ts.map