Contract¶
What this repository is for, and where its concerns end, so no two repositories hold the same thing. The README states the five lines; this page states them in full. The plugin uses only what another repository publishes, never its internals.
For¶
GitHub's repositories, code, issues, pull requests, Actions and security alerts in OpenCode, through GitHub's hosted MCP server and its REST and GraphQL API. It is for a person who works in GitHub from OpenCode, and for a team whose agents read and change its repositories.
Each github.com account alias gets its own hosted MCP server, so an agent can work in two accounts at once without one alias's token reaching the other's tools. A profile with host names a GitHub Enterprise Server, which has no hosted MCP server: that alias gets an integration of its own, and api is its tool.
Not for¶
- The plugin contract, its manifest schema and its conformance kit:
plugin-contractholds them. - Another service's tools: that service's own
<name>-pluginholds them. - The OpenCode host and its credentials: OpenCode holds both. The plugin attaches GitHub's sign-in methods to an account and stores no token.
Publishes¶
A GitHub release for each tag vX.Y.Z, from v0.0.0. The release is not an npm package. It carries:
| File | Version |
|---|---|
we-the-rebel-alliance-github-plugin-X.Y.Z.tgz | the plugin at package version X.Y.Z, with its capabilities manifest at version 1 |
conformance.json | the plugin-contract v0 conformance report |
SHA256SUMS | the SHA-256 digest of each file above |
A host installs the plugin from the tag:
Release has the cut.
Consumes¶
| What | Version | Pin |
|---|---|---|
@we-the-rebel-alliance/plugin-contract | v0.1.1 | commit a6d5e94509995a05c24724564a5beebfc176fad0 in package-lock.json |
@opencode/plugin | 2.4.1 | sha512-yfBFf8Gp7Q1lLdEU+75bcZ+q5/nEzqqTcZQuc68gtjDC3e9h5TIgqbqjVGXJDQH5vTimHalpk98hnCuY7Ez3OQ== in package-lock.json |
| GitHub's hosted MCP server | https://api.githubcopilot.com/mcp/ | the server GitHub hosts; the alias's credential selects the account |
| GitHub's REST API | 2022-11-28 | the X-GitHub-Api-Version header |
| GitHub's GraphQL API | GitHub's current schema | https://api.github.com/graphql, or the Enterprise host's /api/graphql |
The contract's modules are bundled into dist/index.js, so a tag installs with no build and no runtime dependency. @opencode/plugin stays external: the host provides it at run time. A GitHub Enterprise alias reaches its own host, through the addresses in src/provider/endpoints.ts.
Run by¶
The OpenCode hosts that install it: a person's OpenCode, and a product host that pins a release tag. It is not run by deploy, which deploys products, not plugins.