Troubleshooting¶
Every failure carries one contract code and one next step. This page starts from the symptom.
No GitHub tools are listed¶
OpenCode has not loaded the plugin or its MCP server. Run /connect, choose GitHub (or GitHub Enterprise for an Enterprise alias), and check that the OpenCode release is inside >=2.4.1 <2.5.0. Installation has the install step.
NEEDS_SIGN_IN¶
The alias's credential needs attention. Run /connect, choose GitHub, and sign in as that alias. status names the alias and the next step. A probe or an api call that GitHub answers 401 marks the same state; a working call clears it.
ACCOUNT_REQUIRED or ACCOUNT_UNKNOWN¶
Pass account as one of the aliases status lists. Never guess an alias: a call without one is refused when two or more are configured. Two GitHub accounts lists the aliases and their tool names.
CURSOR_INVALID¶
The cursor belongs to another alias, source or scope, or the alias was signed in to another GitHub login since it was issued. Read again without the cursor, with since if needed.
CURSOR_EXPIRED¶
GitHub no longer keeps the history the cursor names. Read again without the cursor, with since for the window you still need. When a page carries a gap, render it and never invent the missing items.
PERMISSION_DENIED¶
The person's access level or grant does not cover the call. Do not widen it yourself: ask the person, or read status.
RATE_LIMITED or UNAVAILABLE¶
GitHub asked the plugin to slow down or could not be reached. Wait for the reset the next step names, then try again; if it keeps failing, read status.
TOO_LARGE¶
The answer, download or upload is larger than the plugin's limit. Narrow the request, read a smaller page, or download the file outside OpenCode.
HOST_UNTESTED¶
OpenCode is outside the plugin's tested range. Install OpenCode 2.4.1, or set allowUntestedHost only when you accept an untested host.
Wrong repository or account data¶
Each alias has its own token and its own MCP tools. Pass the alias explicitly, and never reuse one alias's result for another.
The codes¶
The README lists every code and its meaning.