Skip to content

Contract

What this repository is for, where its concerns end, and what it gives to and takes from other repositories. The short form is the README's ## Contract.

For

People whose meeting notes live in Granola, and the agents they run in OpenCode. The plugin turns Granola's official MCP server into four methods of its own and 20 pass-through tools:

  • status reports the plugin, the OpenCode host and every alias.
  • probe names the Granola account and the note-access scopes behind one alias.
  • events_list reads meetings as events, with a cursor, for automations.
  • export_markdown writes notes or transcripts for 1 to 20 meetings to local Markdown.

Each alias is its own Granola MCP server, OAuth session, permission rule and cursor, so two accounts stay apart. See Capabilities for the whole declaration.

Not for

Not this Where it lives
Another vendor's meeting notes that vendor's own connector plugin, on we-the-rebel-alliance/plugin-contract
The plugin runtime, conformance kit and plugin-kit we-the-rebel-alliance/plugin-contract
The deployment that runs a host, and the pins it carries we-the-rebel-alliance/deploy
Recording, transcribing or storing a meeting Granola's own service
The MCP transport, sign-in, permission prompts and limits OpenCode

The plugin holds no credential and calls no Granola endpoint with an HTTP client of its own. It reads through the MCP tool executors OpenCode registered for the alias, so the OAuth token never reaches the plugin.

Publishes

A release is an annotated tag v<version> on a master commit whose CI passed. The GitHub Release carries:

Artefact Holds Schema or API version
@we-the-rebel-alliance/granola-plugin tarball dist/index.js, the two skills, the icons, README.md, LICENSE and NOTICE the plugin manifest at capabilities version 1, for OpenCode >=2.4.1 <2.5.0
conformance.json the report of npx plugin-kit check --json the plugin-kit report at v0.1.1
SHA256SUMS the SHA-256 sum of the tarball and conformance.json sha256sum output

Nothing is published to npm. A consumer installs the tag with opencode plugin add github:we-the-rebel-alliance/granola-plugin#v<version>. The committed dist/index.js is what the tag carries, so an install needs no build step. See Release.

Consumes

Taken From Pinned by
@we-the-rebel-alliance/plugin-contract we-the-rebel-alliance/plugin-contract tag v0.1.1, which package-lock.json resolves to commit a6d5e94509995a05c24724564a5beebfc176fad0; bundled into dist/index.js
@opencode/plugin 2.4.1 OpenCode the version in package.json and the integrity in package-lock.json; the host supplies it at run time
@opencode/sdk 2.4.1 OpenCode the version in package.json and the integrity in package-lock.json; the host test only
@opencode/client 2.4.1 OpenCode, through @opencode/sdk 2.4.1 its integrity in package-lock.json; the host test's type only
Granola's official MCP server Granola the vendor's endpoint https://mcp.granola.ai/mcp; the vendor versions it, not this repository
actions/checkout, actions/setup-node, actions/configure-pages, actions/upload-pages-artifact and actions/deploy-pages GitHub's action repositories each by commit in the workflow that uses it

Node.js 24 is the runtime version in package.json's engines, and OpenCode runs the plugin on it.

Run by

The OpenCode hosts that install it:

  • the managed host;
  • a person's own OpenCode, with opencode plugin add.

Not deploy. A plugin runs inside the host that installs it: the deployment pins the host and the plugin release, and the host runs the plugin.

The boundary

The plugin reaches the contract only through the package's published exports, never its internals. It reaches Granola only through OpenCode's MCP tool executors, never with an HTTP client or a credential of its own. Nothing in this repository runs a service, so nothing here has a deploy pin of its own. See Security for what leaves the machine, and Access for how a class becomes a rule.