Skip to main content

Overview

GitHub tools enable IncidentFox to search code, analyze PRs, and interact with CI/CD workflows.

Configuration

Available Tools

Code Tools

search_github_code

Search code across repositories. Parameters: Example:

read_github_file

Read file contents from a repository. Parameters:

PR Tools

list_pull_requests

List PRs in a repository. Parameters:

get_pull_request

Get PR details. Parameters:

get_pr_diff

Get the diff for a PR. Parameters:

create_pull_request

Create a new PR. Parameters:
This tool requires write permissions and may be disabled by default.

Issue Tools

list_issues

List repository issues. Parameters:

create_issue_comment

Add comment to an issue. Parameters:

GitHub Actions Tools

get_workflow_runs

List workflow runs. Parameters:

get_workflow_run_logs

Get logs from a workflow run. Parameters: Example:

get_check_runs

Get check runs for a commit. Parameters:

Git Tools

git_diff

Show changes between commits. Parameters:

git_blame

Show who changed what in a file. Parameters:

git_log

Show commit history. Parameters:

Use Cases

CI Failure Analysis

IncidentFox will:
  1. get_pull_request - Get PR details
  2. get_check_runs - Find failing checks
  3. get_workflow_run_logs - Get failure logs
  4. get_pr_diff - Analyze code changes
  5. Correlate to identify root cause

Deployment Correlation

IncidentFox will:
  1. list_pull_requests - Recent merged PRs
  2. git_log - Recent commits
  3. get_pr_diff - Changes in each PR

Code Investigation

IncidentFox will:
  1. search_github_code - Find relevant files
  2. read_github_file - Read configuration
  3. git_blame - Find who last changed it

Required Token Scopes

Next Steps

Custom MCP Tools

Add your own tools

GitHub Integration

Set up GitHub bot