Skip to content

Troubleshooting

status says needs_sign_in for an alias

Sign in to that alias's MCP server (tavily, or tavily-<alias>) through OpenCode's MCP sign-in, then read status again. Each alias has its own OAuth session.

status says error for an alias

Read its reason:

Reason Means
the server is disabled the server did not load: restart OpenCode, and check that the plugin is installed and enabled
OpenCode lists no such server the plugin's server config did not reach OpenCode: restart OpenCode and read status again
the host's own reason, redacted a failed server: sign in again, and read status if it keeps failing

A reason is redacted and cut to 160 characters. It never carries a token, a URL query string or a credential.

status.nextStep names a problem

Quote it whole; it is the one fix. A registration problem means the MCP server could not be added. An unreadable server list means OpenCode could not answer, so nothing is known.

The Tavily tools are absent

Check that OpenCode is 2.4.1 or another 2.4.x, that the plugin is installed, and that the alias's server is signed in. The tools are tavily_tavily_search for default and tavily-<alias>_tavily_search for another alias, or tools.tavily.tavily_search in Code Mode (tools["tavily-work"].tavily_search for work).

A call is refused

Code Means and next step
ACCOUNT_REQUIRED probe was called with two aliases and no account: pass account
ACCOUNT_UNKNOWN probe named an alias the plugin does not serve: use one the options declare
PERMISSION_DENIED the access level or a rule refuses the call: under read-only every Tavily tool is off
INPUT_INVALID the tool's own schema was not met: Tavily's parameters are the contract
UNAVAILABLE the host could not answer: read status
HOST_UNTESTED OpenCode is outside >=2.4.1 <2.5.0: use a tested release, or set allowUntestedHost as a last resort
OPTIONS_INVALID an option is outside its schema: setup stopped before anything registered

A Tavily tool has no account field; its alias is the server in its name. ACCOUNT_REQUIRED and ACCOUNT_UNKNOWN come from probe only.

A call costs more than expected

Read Security for the per-tool prices. A search is 1 credit at basic and 2 at advanced; a crawl pays for the map that found its pages and for every page it reads. Set limit on a map or a crawl, and prefer OpenCode's free webfetch for a URL you already have. The plugin sets no spending limit; Tavily's plan does.

The documentation site does not build

Build it as CI does, from the repository root:

python3 -m venv .cache/docs-venv
.cache/docs-venv/bin/pip install -r docs/requirements.txt
.cache/docs-venv/bin/mkdocs build --strict

--strict fails on a warning: a page the nav does not name, or a link that resolves nowhere.