Installation¶
Requirements¶
- OpenCode
>=2.4.1 <2.5.0, tested on 2.4.1. - A GitHub account, either github.com or a GitHub Enterprise Server.
- A GitHub sign-in: GitHub device flow (an OAuth App or GitHub App client ID) or a fine-grained personal access token.
Install a release¶
Install from a release tag:
The first release is v0.0.0; a later release pins its own tag. A Git install does not update by itself: remove the exact tag you installed and add the next one. Start a new OpenCode session after the install.
Sign in¶
Run /connect in a session and choose GitHub for the default alias, or GitHub (work) or GitHub (personal) for the work and personal aliases. The plugin replaces GitHub's generic OAuth method on each hosted MCP server with GitHub's device flow and a fine-grained personal access token.
Device flow needs a clientId in the plugin's options; without one only a personal access token is offered. A pasted token must look like a GitHub token (github_pat_… or ghp_…), and the plugin never echoes it. A token page the plugin links pre-fills read-only Metadata, Contents, Issues, Pull requests, Commit statuses, Actions, Code quality, Code scanning, Dependabot, Secret scanning, Repository advisories and Discussions.
A profile with host names a GitHub Enterprise Server. GitHub does not host an MCP server for it, so that alias has an integration of its own with the same two sign-in methods, and api is its tool.
Access¶
access is all (the default), ask-changes or read-only. A read method runs under every level; any other class asks under ask-changes and is off under read-only. api is one admin method, so it asks on every call, a read included, under both all and ask-changes; read-only turns it off.
First check¶
Run /connect, choose GitHub, then ask the agent to call the plugin's status tool. It reports the version, the OpenCode host, one entry per alias and one next step. probe confirms an alias's token with GitHub and reports the owner as github:<login>.
Next¶
Quick start reads a repository and a page of activity.