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
81 lines • 1.93 kB
TypeScript
#!/usr/bin/env node
/**
* AI-Debug V2 Dual-Mode Server - Native MCP Support
*
* Supports both HTTP and STDIO MCP transports natively, eliminating bridge complexity.
* Automatically detects mode based on execution context and command line arguments.
*
* Usage:
* node server-dual-mode.js --stdio # STDIO mode for Claude Code
* node server-dual-mode.js --http # HTTP mode (default)
* node server-dual-mode.js # Auto-detect mode
*/
declare class V2DualModeServer {
private config;
private transport?;
private sessionRegistry?;
private memoryManager?;
private stabilityMonitor?;
private debugService?;
private toolHandler?;
private isRunning;
constructor();
/**
* Parse configuration from command line and environment
*/
private parseConfig;
/**
* Auto-detect execution mode
*/
private detectMode;
/**
* Show help information
*/
private showHelp;
/**
* Start the server
*/
start(): Promise<void>;
/**
* Initialize core components
*/
private initializeCore;
/**
* Initialize transport based on mode
*/
private initializeTransport;
/**
* Initialize additional services
*/
private initializeServices;
/**
* Handle MCP requests
*/
private handleMCPRequest;
/**
* Handle tools/list request
*/
private handleToolsList;
/**
* Handle tools/call request
*/
private handleToolsCall;
/**
* Handle initialize request
*/
private handleInitialize;
/**
* Keep HTTP server alive
*/
private keepAlive;
/**
* Setup signal handlers for graceful shutdown
*/
private setupSignalHandlers;
/**
* Stop the server gracefully
*/
stop(): Promise<void>;
}
export { V2DualModeServer };
//# sourceMappingURL=server-dual-mode.original.d.ts.map