UNPKG

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

91 lines (77 loc) • 3.37 kB
# Migration Summary ## Overview Successfully migrated the TypeScript MCP server files from the main ai-debug-local-mcp project to the new packages/ai-debug-mcp-server directory. ## Files Migrated ### Main Server Files - `server.ts` → `src/index.ts` (used as main entry point) - `types.ts` → `src/types.ts` ### Engine Files (in `src/engines/`) - `local-debug-engine.ts` - Core debugging engine with cleanup method added - `audit-engine.ts` - Quality audit functionality - `flutter-debug-engine.ts` - Flutter Web debugging support - `meta-framework-debug-engine.ts` - Support for Remix, Astro, Nuxt, Qwik, SvelteKit - `nextjs-debug-engine.ts` - Next.js specific debugging - `problem-debug-engine.ts` - Common problem detection - `server-framework-debug-engine.ts` - Rails/Django support ### Utility Files (in `src/utils/`) - `api-key-manager.ts` - API key management for freemium features - `cloud-ai-service.ts` - Cloud AI integration - `log-truncator.ts` - Intelligent log truncation - `version-checker.ts` - Version checking utility - `tidewave-integration.ts` - Tidewave integration for Phoenix/Rails - `ci-cd-integration.js` & `.d.ts` - CI/CD integration support ## Changes Made 1. **Updated Imports**: - Changed relative imports to reflect new directory structure - Updated `./types` to `../types` in engine files - Updated utility imports to use `../utils/` path 2. **TypeScript Configuration**: - Added "DOM" to lib array for browser API support - Changed module to "ES2022" for import.meta support - Disabled unused variable warnings temporarily - Added exclusions for backup files 3. **Package Configuration**: - Added `"type": "module"` for ES module support - Added missing dependencies (nanoid, node-fetch, ws) - Maintained existing structure and metadata 4. **Code Additions**: - Added `cleanup()` method to LocalDebugEngine for proper resource cleanup 5. **Build System**: - Successfully builds with `npm run build` - Outputs ES modules to `dist/` directory - Generates TypeScript declaration files ## Removed Elixir Dependencies No Elixir-specific dependencies were found. All references to Phoenix are for debugging Phoenix applications, not dependencies on Elixir itself. ## Directory Structure ``` packages/ai-debug-mcp-server/ ā”œā”€ā”€ src/ │ ā”œā”€ā”€ index.ts (main server) │ ā”œā”€ā”€ server.ts (original copy) │ ā”œā”€ā”€ types.ts │ ā”œā”€ā”€ engines/ │ │ ā”œā”€ā”€ audit-engine.ts │ │ ā”œā”€ā”€ flutter-debug-engine.ts │ │ ā”œā”€ā”€ local-debug-engine.ts │ │ ā”œā”€ā”€ meta-framework-debug-engine.ts │ │ ā”œā”€ā”€ nextjs-debug-engine.ts │ │ ā”œā”€ā”€ problem-debug-engine.ts │ │ └── server-framework-debug-engine.ts │ └── utils/ │ ā”œā”€ā”€ api-key-manager.ts │ ā”œā”€ā”€ ci-cd-integration.js │ ā”œā”€ā”€ ci-cd-integration.d.ts │ ā”œā”€ā”€ cloud-ai-service.ts │ ā”œā”€ā”€ log-truncator.ts │ ā”œā”€ā”€ tidewave-integration.ts │ └── version-checker.ts ā”œā”€ā”€ dist/ (build output) ā”œā”€ā”€ package.json ā”œā”€ā”€ tsconfig.json └── README.md ``` ## Build Status āœ… Successfully builds without errors āœ… All TypeScript files compile āœ… ES modules output with declaration files āœ… Ready for use as a standalone MCP server package