Skip to content

GitHub plugin

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 gives each github.com account alias its own GitHub MCP server, so an agent can work in two GitHub accounts at once without one alias's token reaching the other's tools. It is for a person who works in GitHub from OpenCode, and for the teams whose agents read and change their repositories.

On top of GitHub's own tools the plugin adds api for what they lack, an events_list activity source with a cursor, an issues table source for one repository's issues and pull requests, probe and status. 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.

How it fits together

flowchart LR
  Agent["OpenCode agent"] --> Plugin["GitHub plugin"]
  Plugin -->|"MCP tools"| MCP["GitHub's hosted MCP server"]
  Plugin -->|"api, events_list, issues, probe"| API["GitHub REST and GraphQL API"]
  MCP --> GitHub["Your GitHub account"]
  API --> GitHub

OpenCode holds every credential and owns sign-in. The plugin stores no token, writes none to disk and logs none.

Where to start

Goal Page
Install the plugin and sign in Installation
Read a repository and a page of activity Quick start
Work in two GitHub accounts at once Two GitHub accounts
Set every option Configuration
Read each method, source and event Capabilities
React to new issues, pull requests and commits Automations
When a call fails Troubleshooting
Work on the plugin Architecture