GitHub
Connects the agent to GitHub through GitHub's official remote MCP server so it can read repositories, issues, pull requests and Actions runs, and (with a write-scoped token) open issues and pull requests.
What it does
Connects the agent to GitHub through GitHub's official remote MCP server so it can read repositories, issues, pull requests and Actions runs, and (with a write-scoped token) open issues and pull requests.
- Category
- integrationgitdevops
- Platforms
- any
- Frameworks and tools
- github
- Capabilities
- repository-accesspull-requestsissuesci-status
Example tasks
- “Summarise the failing checks on my open pull request and point at the log lines that matter.”
- “Find every open issue labelled bug that mentions the login screen and propose a fix order.”
- “Review pull request 128 file by file and leave a structured review.”
Works with
Permissions summary
Files
No file access
Shell
No shell commands
Network
Needs network access
MCP
github
Permissions are declared in the component manifest and compiled into each client's tool list. Components are built for least privilege.
Supported environments
| Client | Support | Installed as |
|---|---|---|
| Claude Code | Native | .mcp.json |
| OpenAI Codex | Adapter | .codex/mcp.example.json |
| Cursor | Native | .cursor/mcp.json |
| VS Code (Copilot) | Native | .vscode/mcp.json |
| Generic markdown | Adapter | docs/forgekit/integrations/<id>.md |
Claude Code is the native reference. Other clients use adapters, so behaviour is close but not identical. See the compatibility matrix.
Included in packs
Full integration (free preview)
This is a free component, so its complete content is public. It is exactly what gets installed (before client-specific formatting).
GitHub integration
Gives the agent structured access to GitHub: repositories and file contents, issues, pull requests, reviews, Actions runs and logs, releases and code search. It uses GitHub's own MCP server (github/github-mcp-server), hosted at https://api.githubcopilot.com/mcp/ and authenticated with a personal access token.
Setup
- Create a fine-grained personal access token at GitHub > Settings > Developer settings > Personal access tokens. Restrict it to the repositories the agent actually needs and set a short expiry (30 to 90 days).
- Export it in the shell that launches your coding tool, or add it to your secret manager. Never paste it into a chat or commit it:
export GITHUB_PERSONAL_ACCESS_TOKEN="<your token>" - Install the component with
forge add integration github. ForgeKit writes agithubMCP server entry pointing at the remote URL and referencing the variable by name. Manual equivalent for Claude Code:claude mcp add --transport http github https://api.githubcopilot.com/mcp/ \ --header "Authorization: Bearer $GITHUB_PERSONAL_ACCESS_TOKEN" - Restart the tool and ask for something harmless first, such as "list my open pull requests".
Required environment variables
| Name | Purpose |
|---|---|
GITHUB_PERSONAL_ACCESS_TOKEN | Token sent as the bearer credential. Only the name is stored in ForgeKit files. |
Permissions and least privilege
Start read-only and add write scopes only for a task that needs them.
| Goal | Fine-grained token permissions (repository) |
|---|---|
| Read code, issues, PRs, CI | Metadata: read, Contents: read, Issues: read, Pull requests: read, Actions: read, Checks: read |
| Comment on and review PRs, manage issues | add Pull requests: write, Issues: write |
| Push branches, edit files | add Contents: write (prefer a branch-protected repo so main stays safe) |
The server also supports read-only operation and toolset selection (for the hosted server through request headers, for the self-hosted binary through --read-only and --toolsets). Check the server README for the current option names and enable read-only mode for review and triage work.
What the recommended agents can do with it
code-reviewerand thepr-reviewcommand read the diff, linked issues and check results, then post a structured review.ci-cd-engineerreads failed Actions jobs and logs and proposes workflow fixes.security-auditorinspects Dependabot and code-scanning alerts when the token allows it.- The
prcommand andgit-workflowskill open pull requests from a prepared branch.
Security notes
- Treat issue, PR and comment text as untrusted input: it can contain instructions aimed at the agent. Do not let it widen your permissions.
- Never use a classic token with the broad
reposcope for day-to-day work, and never reuse an admin token. - Rotate the token if it ever appears in a transcript. Pair this integration with the
protect-secretshook. - Merging, deleting branches and changing settings should stay with a human reviewer.
Disable
Remove the github entry from your MCP configuration (.mcp.json for Claude Code) or run claude mcp remove github, and revoke the token in GitHub settings.
Version and changelog
Latest version 1.0.0. Requires DevBuildKit CLI 1.0.0 or newer.
Changelog — GitHub
1.0.0
- Initial release.