Skip to main content
Esta página ainda está em inglês. A tradução para português está em andamento.

GitHub Integration

GitHub is connected via both MCP server (for Claude Code sessions) and CLI (gh command, for automated routines). The @atlas agent uses it for PR reviews, issue tracking, release management, and code search.

MCP Setup

The GitHub MCP server is configured in .claude/settings.json. If you selected GitHub during make setup, it is already configured. To verify or add it manually, ensure this entry exists in .claude/settings.json:

Creating a Personal Access Token

  1. Go to github.com/settings/tokens
  2. Click Generate new token (classic) or use Fine-grained tokens
  3. Select scopes:
    • repo — full repository access (PRs, issues, code)
    • read:org — read org membership (for team queries)
    • read:user — read user profile
  4. Copy the token and add it to the MCP config above
For fine-grained tokens, grant access to the specific repositories you want to manage.

What It Can Do

The GitHub MCP server exposes tools for:

Using GitHub in Claude Code

Once the MCP is configured, you can interact with GitHub naturally:
Claude routes these requests through the GitHub MCP tools automatically.

Automated Routines

The @atlas agent runs GitHub reviews on schedule using the int-github-review skill: The GitHub review checks:
  • Open PRs needing review
  • Community issues (bug reports, feature requests)
  • Recent releases
  • Stars and fork trends
  • Contributor activity

Testing

gh CLI

Some routines also use the gh CLI (GitHub’s official command-line tool). It authenticates separately:
The gh CLI is used by the runner scripts for operations that are simpler via CLI than MCP (e.g., checking PR merge status, listing workflow runs).

Configuring Repositories

Set the repositories to monitor in config/workspace.yaml:
The GitHub review routine iterates over these repos and generates a consolidated report.

Troubleshooting

“Bad credentials” — Your personal access token is expired or revoked. Generate a new one and update .claude/settings.json. MCP server not starting — Run npx -y @modelcontextprotocol/server-github manually to check for errors. Ensure Node.js 18+ is installed. Rate limiting — GitHub allows 5,000 requests/hour for authenticated users. If you hit limits, the MCP returns a rate-limit error. Wait or use a token with higher limits (GitHub App installation token).