Skip to content

Errors

Every failure reads CODE: What happened. Next step: What to do. The code is stable, so a script can branch on it; the next step says what a person can do now.

The full table of codes is generated from the contract into the README, one line for each.

The common ones

  • NEEDS_SIGN_IN: the alias's MCP server has no sign-in. Run /connect and choose that server (metaview, metaview-work, ...), or run opencode mcp auth metaview-work, then call again.
  • ACCOUNT_REQUIRED: more than one alias is configured and the call named none. Pass account; the refusal's next step lists the aliases. ACCOUNT_UNKNOWN means the alias is not one options.accounts declares.
  • ACCOUNT_MISMATCH: the item belongs to another account. Read it with the account that owns it.
  • CURSOR_INVALID: a cursor belongs to the plugin, source, account and scope that issued it. Pass it with the same account and reports scope, or start again without it.
  • CURSOR_EXPIRED: Metaview no longer keeps the history the cursor names. Read again without the cursor and accept the window that is gone.
  • RATE_LIMITED: Metaview asked the plugin to slow down. Wait, then retry; do not retry in a tight loop.
  • HOST_UNTESTED: OpenCode is outside the plugin's tested range (>=2.4.1 <2.5.0). Install a supported release, or set allowUntestedHost knowingly for a test host.
  • UNAVAILABLE: Metaview could not be reached, or its answer was not the shape the plugin expects. Try again, then check the plugin's status.
  • SCHEMA_VIOLATION from setup: a bundled skills/<id>/SKILL.md has invalid YAML, a missing name or description, or an empty body. The error names the file and the next step; fix the skill file, then reload the plugin.
  • An alias that stays in error: its MCP server is missing, disabled or failed. Check options.accounts, then reload the plugin; status (tools.metaview.status in Code Mode) names the state and the next step.

The skill loader

The plugin uses the contract's SCHEMA_VIOLATION code for a bundled skills/<id>/SKILL.md whose frontmatter is not valid YAML, or has no name or description, or an empty body. Setup fails with the file's path and a next step. The frontmatter is parsed as YAML, so > and | block-scalar descriptions register their text, not the marker.

A refused page

  • TOO_LARGE: the answer is larger than the source's 256 KB limit. Read a smaller window with since or limit.
  • SOURCE_DISABLED: the source is turned off for the consumer that asked for it. Turn it on again to read it.

Next