Improve error logging to debug MCP Analyzer better
This merge request adds comprehensive debugging and error handling to a build automation system. The main changes include:
Enhanced Debugging: Added detailed logging throughout the build process to show what's happening at each step, including directory contents, environment variables, and command outputs. This makes it much easier to troubleshoot when things go wrong.
Better Error Handling: Improved how the system handles and reports failures during the build process. Instead of just saying "build failed," it now provides specific details about what went wrong and at which stage.
Connection Testing: Added a new feature to test if the AI analysis service is reachable before attempting to use it, preventing wasted time on unreachable services.
More Robust File Checking: Improved how the system checks for required tools and files, with better error messages when things are missing.
Enhanced Reporting: The system now generates more detailed test reports with specific error information and build artifacts, making it easier to understand what succeeded or failed.
Command-line Options: Added new flags like --debug
and --test-connection
to give users more control over how the tool runs.
Overall, these changes make the build system much more user-friendly by providing clearer feedback about what's happening and what went wrong when issues occur.