To debug this code you can use VS Code IDE:
- Navigate to 'MCP' folder and start local web server: python3 -m http.server
- Load MCP folder into your VS Code workspace (File | Add Folder to Workspace...)
- Click on Run | Start Debugging menu in VS Code
- Set a breakpoint in .js file if needed - execution will pause there and vars can be inspected, etc.