agy-github
Connects Google Antigravity to a GitHub account through the official GitHub MCP and a REST/GraphQL client, enabling repository and account management, branches/commits/PRs, issues and code search, Actions workflows, releases, and guarded GitHub operations.
Allows inspecting workflow runs and job status, troubleshooting failing builds/tests, checking workflow permissions, and triggering workflow_dispatch.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
agy-github
Manage GitHub Safely Inside Google Antigravity — Zero-Plaintext OAuth, Official GitHub MCP (48+ Tools) & 4-Tier Turbo Guardrails
English · 简体中文 · What You Can Manage · Quick Start · Architecture · 4-Tier Guardrails · Tool Reference · Policy & CLI · FAQ
agy-github connects Google Antigravity (Desktop 2.0, CLI agy, and IDE) to your full GitHub account through GitHub CLI (gh) OS-keyring OAuth, a zero-dependency local Node.js MCP bridge to GitHub's official remote MCP (https://api.githubcopilot.com/mcp/), a sandbox-safe REST/GraphQL client (github_api), and deterministic 4-tier PreToolUse safety guardrails.
Plaintext Tokens on Disk | Windows Sandbox Proxy TLS | Official Remote MCP + REST/GraphQL |
|
0OAuth lives in OS Credential Manager / Keychain | Node | 46+ Official Tools + | 4-Tier |
What You Can Manage in Antigravity
If you use Google Antigravity (Desktop 2.0, CLI agy, or IDE) as your daily AI coding agent, agy-github gives Antigravity full control over your GitHub workflow without sacrificing credential hygiene or safety:
No plaintext PATs in
mcp_config.json: Avoids static tokens on disk and fixes404Dynamic Client Registration (DCR) failures againsthttps://api.githubcopilot.com/mcp/by reusing your OS-keyringghOAuth session and hot-loading 46+ official GitHub MCP tools.Works cleanly inside Windows sandbox proxies: Fixes
gh.exex509: certificate signed by unknown authorityerrors in sandboxed terminals viagithub_api, powered by Nodefetchthat natively trustsNODE_EXTRA_CA_CERTS.Safe under
Turboauto-execution: Deterministic 4-tierPreToolUseguardrails keep reads and feature-branch collaboration frictionless, enforceforce_askbefore irreversible actions, and hard-denyaccidental token exfiltration.
Everyday GitHub Management Workflows
Workflow | What Antigravity Can Do for You |
Repositories & Account | Audit public & private repos, inspect Stars/topics/API quotas, create repos, and manage visibility, archiving, or transfers (with |
Branches, Commits & PRs | Create feature branches, commit/push changes cleanly, open & update Pull Requests, inspect diffs, reply to code reviews, and merge PRs safely |
Issues & Code Search | Search code, commits, and Issues across GitHub, triage Issues, add labels/comments, and organize sub-issues |
GitHub Actions CI/CD | Inspect workflow runs and job status, troubleshoot failing builds/tests, check workflow permissions, and trigger |
Releases & Publishing | Tag semver versions, draft bilingual changelogs, and publish official GitHub Releases with native |
| Zero popups for reads & |
Related MCP server: GitHub Plus MCP Server
Quick Start
Prerequisites: Node.js >= 20 and GitHub CLI (gh).
1. Install the Plugin
Windows (PowerShell):
irm https://raw.githubusercontent.com/Nodifferentiable/agy-github/main/install.ps1 | iexmacOS / Linux:
curl -fsSL https://raw.githubusercontent.com/Nodifferentiable/agy-github/main/install.sh | shLocal clone (cross-platform)
git clone https://github.com/Nodifferentiable/agy-github.git
cd agy-github
node scripts/install.mjs installPer-project install (repository-scoped .agents/plugins/agy-github)
node scripts/install.mjs install --project /path/to/your-repoStandalone MCP clients (Claude Code, Codex, Cursor, etc.)
node scripts/install.mjs mcp-configAntigravity CLI
agy plugin install /path/to/agy-github
agy plugin enable agy-githubLet Antigravity install it directly
Clone https://github.com/Nodifferentiable/agy-github.git into ~/.gemini/config/plugins/agy-github, run `node ~/.gemini/config/plugins/agy-github/scripts/install.mjs install`, and verify with github_doctor.2. One-Time Browser OAuth Login
Run the bundled login helper once in your terminal (this also configures git HTTPS credentials via gh auth setup-git):
Windows (PowerShell):
& "$env:USERPROFILE\.gemini\config\plugins\agy-github\login.ps1"macOS / Linux:
sh "$HOME/.gemini/config/plugins/agy-github/login.sh"3. Verify Inside Antigravity
Ask Antigravity to run github_doctor (or invoke /github). Once authenticated, agy-github hot-loads all official remote GitHub MCP tools alongside github_doctor and github_api without restarting Antigravity.
Architecture & Comparison
Dimension | Raw Remote | Static PAT in | Bare |
|
OAuth Support | Fails when remote MCP lacks DCR ( | Manual copy-paste | Works outside sandbox only | One-click |
Secret Storage | Token cache files | Plaintext token on disk | OS credential store | OS Credential Manager / Keychain (0 plaintext on disk) |
Windows Sandbox TLS | N/A | N/A | Go | Node |
Repo Settings / Pagination | Limited | Manual curl | Fails in Windows sandbox |
|
| None | None | None | 4-Tier |
4-Tier PreToolUse Safety Model
Designed specifically for autonomous Turbo workflows (rules/AGENTS.md soft guidance + hooks.json hard enforcement across run_command, mcp_agy-github_github_*, call_mcp_tool, mcp_agy-fast_fast_run_checks, and mcp_agy-fast_fast_apply_edits.verify):
Tier | Covered Operations | Hook Output | Effect |
Tier 0 · Read & Diagnostics | Repo/PR/Issue/Actions reads, |
| Zero prompt friction |
Tier 1 · Feature Branch Work | Creating branches, pushing |
| Allowed smoothly; AGENTS.md enforces clean commits |
Tier 2 · High-Risk / Irreversible | Deleting/archiving/renaming/transferring repos, changing visibility, creating public repos, |
| Ignores cached approvals & |
Tier 3 · Token Exfiltration | Printing |
| Hard-blocked so tokens never enter chat or cloud context |
Defense-in-Depth Runtime Protections
Subshell & wrapper unwrapping: Recursively inspects
$(...), backtick substitutions,cmd /c,sh -c/bash -c,powershell -Command, and decodes UTF-16LE Base64-EncodedCommand(or forcesforce_askif opaque).SSRF & cross-origin redirect protection:
scripts/mcp-server.mjsenforces a strict host allowlist (api.github.comfor REST/GraphQL,api.githubcopilot.comfor remote MCP) withredirect: "manual", re-validating every redirect hop and paginatedLink rel="next"URL before sendingAuthorization: Bearer.Error redaction & UTF-8 safe bounding: Scrubs any token patterns or
Bearerheaders from error output (redactSecrets) and bounds large responses safely on UTF-8 boundaries (maxOutputBytes, default65536bytes).
Tool & Capability Catalog
Built-in Eager Tools (mcp_config.json)
Tool | Purpose | Key Parameters |
| Inspects |
|
| Executes any GitHub REST v3 request or GraphQL v4 query/mutation via sandbox-safe Node |
|
Proxied Official GitHub Remote MCP Tools (46+ Lazy-Loaded Tools)
Once authenticated, https://api.githubcopilot.com/mcp/ tools hot-load automatically covering repositories, branches, commits, files (create_or_update_file, push_files, delete_file), Issues, Pull Requests (create_pull_request, merge_pull_request, reviews), code search, users/teams, releases/tags, and Copilot/security scanning. Optional toolset filtering is supported via AGY_GITHUB_TOOLSETS or toolsets in policy.json.
Policy & CLI Reference
Daily Prompts Inside Antigravity
"Run
github_doctorto verify my GitHub login, OAuth scopes, and remote MCP tools.""List my recent public and private repositories along with open PRs using
github_api.""Create a
feat/ci-fixbranch, commit the changes without touching.env, push, and open a PR."
Terminal Management CLI (scripts/install.mjs)
# Inspect active guardrail policy
node ~/.gemini/config/plugins/agy-github/scripts/install.mjs policy --show
# Allow direct pushes to main on solo repos while keeping PR merge & delete prompts
node ~/.gemini/config/plugins/agy-github/scripts/install.mjs policy --confirm-main off --confirm-merge on
# Customize protected branches or UTF-8 output limit (4096..524288 bytes)
node ~/.gemini/config/plugins/agy-github/scripts/install.mjs policy --protected-branches main,master,release --max-bytes 65536
# Reset overrides back to strict defaults
node ~/.gemini/config/plugins/agy-github/scripts/install.mjs policy --reset
# Full plugin + LS + gh + git diagnostics
node ~/.gemini/config/plugins/agy-github/scripts/install.mjs doctorPolicy File & Environment Variables
Settings file: ~/.gemini/config/agy-github-policy.json (or ${PLUGIN_DATA}/policy.json):
Key | Default | Description |
|
| Branches triggering |
|
| Require |
|
| Require |
|
| Require |
|
| Require |
|
| Require |
|
| Require |
|
| Require |
|
| Hard |
|
| UTF-8 byte ceiling ( |
Direct --cli Mode (Swarm & Automation)
Subagents without MCP access can invoke the bridge directly (still audited by PreToolUse when run via run_command or agy-fast):
node ~/.gemini/config/plugins/agy-github/scripts/mcp-server.mjs --cli doctor
node ~/.gemini/config/plugins/agy-github/scripts/mcp-server.mjs --cli api GET "/user/repos?sort=updated&per_page=10"
node ~/.gemini/config/plugins/agy-github/scripts/mcp-server.mjs --cli graphql "query { viewer { login } }"FAQ & Troubleshooting
This is expected when gh.exe runs inside a sandboxed local proxy whose CA is passed via NODE_EXTRA_CA_CERTS / SSL_CERT_FILE. Use github_api instead of shelling out to gh api — github_api uses Node's fetch which honors NODE_EXTRA_CA_CERTS.
When unauthenticated, agy-github intentionally degrades cleanly to github_doctor and github_api. Run login.ps1 / login.sh, wait a few seconds (or call github_doctor(refresh: true)), and the bridge automatically sends notifications/tools/list_changed to hot-load all 46+ official remote MCP tools.
See rules/AGENTS.md for the always-on routing & hygiene rules and skills/github/SKILL.md for the /github runbook.
Related Antigravity Plugins
agy-cua-desktop — Script-first, background-first desktop GUI automation with
<150 msCOM introspection, compact 2-tier MCP bridge, andTurboguardrails.
Contributing, Security & Star Support
If agy-github saves you from token headaches or risky Turbo mishaps, please consider giving the repo a ⭐ on GitHub — it helps more Antigravity developers discover it!
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Operate GitHub from your AI assistant: repos, PRs, issues, Actions. Previews and read-only mode.
Access the GitHub API, enabling file operations, repository management, search functionality, and…
Manage repositories, users, releases, and automate GitHub workflows
Unofficial. All 1,242 GitHub API operations as tools, with approval prompts. By Octri.
1
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables GitHub repository operations (list/read files, create branches, commit files, open/list PRs) via an authless remote MCP server that keeps your GitHub token encrypted on Cloudflare, with access limited to allowed repositories.-
- AlicenseAqualityCmaintenanceEnables any MCP client to read GitHub repositories, branches, tags, pull requests, files and Actions workflow runs, and optionally create branches and pull requests, comment, assign, approve, trigger workflows, merge and delete. Read-only by default, with separate opt-in switches for write and destructive operations, working against github.com or GitHub Enterprise Server.11MIT
- AlicenseAqualityCmaintenanceEnables AI assistants and MCP hosts to inspect GitHub repositories, pull requests, issues, and activity, and to create issues through schema-validated tools, resources, and prompts, with write actions gated by host or CLI confirmation.5MIT
- AlicenseBqualityBmaintenanceEnables AI agents to use GitHub through MCP while enforcing flow tracking, default-deny policy, human approvals, tamper-evident audit logging, and short-lived scoped tokens to block private-to-public leaks. Currently pre-alpha with only a placeholder tool.153 PyPI1MIT