What problem does it solve?
GitHub code scanning alerts from tools like CodeQL and Scorecard live in the GitHub Security tab, which is not accessible through the default MCP toolset, making it hard for AI agents and developers to triage a repository's security posture programmatically.
Core Features & Use Cases
- Grouped Alert Retrieval: Fetches open code scanning alerts via the gh CLI and groups them by rule, sorted by occurrence count, with PowerShell and Bash script twins.
- Structured JSON Output: Emits rule ID, tool, security severity, affected file paths, alert URL, and finding description per group for programmatic consumption.
- Backlog Issue Creation: Provides a deduplication pattern using an embedded automation marker to create GitHub issues for each alert rule without duplicates.
- Use Case: An agent triaging a repository runs the script with JSON output, identifies the highest-frequency CodeQL rules, and files one deduplicated security issue per rule for the team to remediate.
Quick Start
Ask the agent to list and group the open code scanning alerts for your repository as JSON, for example by running the Get-CodeScanningAlerts script with your owner and repo names.