An MCP server plugin that empowers AI assistants to interact with GitHub (Issues, Pull Requests, Repositories, etc.) via the GitHub CLI (gh).
Supported OS: Linux / macOS / Windows
Unlike the official github/github-mcp-server, this plugin runs as an independent Go-based MCP server executing the system-installed gh command.
This provides several key advantages:
- Uses existing
ghconfiguration without requiring separate token setups or wrapper scripts. - Inherits the active
gh auth loginsession directly, eliminating the need to manage Personal Access Tokens (PAT). - Functions as a single unified plugin across all major operating systems.
| File | Purpose |
|---|---|
gemini-extension.json |
Plugin manifest. Resolves command to absolute path ${extensionPath}${/}bin${/}github |
src/main.go / src/go.mod / src/go.sum |
MCP server Go source code interfacing with gh |
bin/github-linux-amd64 / bin/github-darwin-arm64 / bin/github.exe |
Precompiled native binaries for each OS/architecture |
bin/github |
OS dispatcher script (#!/usr/bin/env sh) executing native binary via uname |
skills/github/SKILL.md |
Agent skill guide loaded on invocation (argument formatting, mandatory -R, --json field selection, frequent patterns) |
Install the GitHub CLI and ensure gh is accessible from your terminal/command prompt.
Authenticate with GitHub:
gh auth loginThe MCP server will automatically utilize this active session.
gh_command: Runs an arbitraryghsubcommand. Arguments are passed as an array of string tokens inargs(e.g.["issue", "list", "--limit", "10"],["pr", "view", "123"]).- Values with spaces (titles, bodies, queries) must be passed as a single array element (e.g.
["pr", "create", "--title", "My Title"]). No internal shell escaping or manual quoting is needed.
- Values with spaces (titles, bodies, queries) must be passed as a single array element (e.g.
⚠️ Warning (Arbitrary Command Execution):gh_commandcan execute anyghsubcommand. Beyond read operations, it can perform destructive actions such asgh pr merge,gh issue close,gh repo delete, and arbitrary REST calls viagh apiunder the logged-in user's credentials. Ensure agent tasks are appropriately bounded and run within trusted environments.
agy plugin install https://github.com/kwrkb/agy-plugins/githubNote: When modifying Go sources (
src/main.go), rebuild and commit the native binaries for all platforms using./build.sh github(or./build.ps1 githubon Windows).agy plugin installcopies committed binaries rather than compiling them on install.