To debug failing GitHub Actions workflows in a pull request, follow this process, using tools provided from the GitHub MCP Server:
- Use the
list_workflow_runs tool to look up recent workflow runs for the pull request and their status
- Use the
summarize_job_log_failures tool to get an AI summary of the logs for failed jobs, to understand what went wrong without filling your context windows with thousands of lines of logs
- If you still need more information, use the
get_job_logs or get_workflow_run_logs tool to get the full, detailed failure logs
- Try to reproduce the failure yourself in your own environment.
- Fix the failing build. If you were able to reproduce the failure yourself, make sure it is fixed before committing your changes.