Contract¶
What this repository is for, and where its concerns end. The README states the same five lines; this page says them in full.
For¶
Connecting OpenCode to Linear. An agent finds, reads and cites issues, projects, cycles, initiatives, documents and comments, and changes them within the access a person allows. It serves a person who works in Linear and OpenCode, with one account alias per Linear workspace, each with its own sign-in.
The plugin adds two reads of its own, the activity feed and the assigned-issues snapshot. Every other read and every change is one of Linear's MCP tools, declared and classified here so the access setting decides it.
Not for¶
- Linear's API, credentials and sign-in. Linear's own MCP server holds the tools and the sign-in, and the OpenCode host holds the MCP server and its credentials. This repository holds no token.
- The plugin standard.
plugin-contractpublishes the contract, the conformance suite, the permission model and the capability schema. This repository implements them, tests against them and copies none of their code. - The agent host. OpenCode owns the plugin API, the MCP executors, the tool registry and the skills registry. This plugin reaches them only through OpenCode's published API.
- The activity collector, the page and the automation. The OpenCode host that installs this plugin runs them; this repository publishes the sources they read.
Publishes¶
A GitHub Release at tag vX.Y.Z, cut only when the tag equals package.json's version on a master whose CI passed:
| Artefact | What it is |
|---|---|
we-the-rebel-alliance-linear-plugin-X.Y.Z.tgz | the npm tarball from npm pack, holding dist/index.js, the two skills, the icons, NOTICE, the README and the licence |
conformance.json | plugin-kit check --json, the contract's conformance report |
SHA256SUMS | the SHA-256 digest of both files |
A consumer installs it with opencode plugin add github:we-the-rebel-alliance/linear-plugin#vX.Y.Z. Nothing is published to npm.
The tarball's API surface:
- the
./serverexport, which isdist/index.js, against OpenCode's plugin API>=2.4.1 <2.5.0, tested on2.4.1; - the contract's capability schema version
1, with plugin idlinear; - the methods, sources and permission actions that
package.json'scapabilitiesdeclares, and the generated capabilities page.
While the version is 0.x, a minor release may break. Only the latest release is supported.
Consumes¶
@we-the-rebel-alliance/plugin-contract, a development dependency atgit+https://github.com/we-the-rebel-alliance/plugin-contract.git#v0.1.1.package-lock.jsonresolves that tag to commita6d5e94509995a05c24724564a5beebfc176fad0with integritysha512-e/4nxyIABeVNYrWM94WvCeJDy6dFfqjwduLmDWsEIT5YPb9kGsebPD6CdvjDJiOTMC1C7RKNNS3v1vb+ZtImWw==. The build bundles its modules, and theplugin-kitconformance gate comes from the same pin.@opencode/plugin,@opencode/clientand@opencode/sdkat2.4.1, each with itssha512integrity inpackage-lock.json, development dependencies for types and tests. At run time the OpenCode host provides the same API, and the bundle keeps it external.- Linear's MCP server at
https://mcp.linear.app/mcp, which holds the vendor's tools and sign-in, through the host's own MCP executors. This repository pins no version of it.
The other development dependencies (@biomejs/biome, @types/node, esbuild, typescript and yaml) are pinned in package-lock.json; none is a runtime dependency. The testing page has the pin's rules.
Run by¶
- A person's OpenCode, which adds the release tag with
opencode plugin add github:we-the-rebel-alliance/linear-plugin#vX.Y.Z. - The managed host, at
v0.0.4, the releasedeploypins in itsplugins:block inenvs/prod.yamlandenvs/staging.yaml, through the app'sLINEAR_RELEASEcurated pin (backend/host/src/connections/curated-releases.ts). The host stays onv0.0.4until the app moves it to this repository's 0.0.0 line (app#8745and the 2.4.1 engine).