You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cli: show which config sources were loaded (and why) in mcp list / debug config #60015
When OPENCODE_CONFIG_DIR is set, the global ~/.config/opencode folder is silently skipped (see #32825). Users can't easily tell which config folders and files OpenCode actually loaded, so MCP servers, agents or skills go missing with no explanation.
Proposal
opencode mcp list: when no servers come from the default global folder, print a short header naming the folders it read, e.g. config: /path/a (OPENCODE_CONFIG_DIR), /project/.opencode.
opencode debug config: list folders that were skipped and the reason, e.g. ~/.config/opencode skipped: replaced by OPENCODE_CONFIG_DIR.
Optionally, a warning when an older OpenCode version earlier on PATH differs from the one the background service runs.
Why
I spent a while debugging "MCP server not connecting". The server worked fine; it simply wasn't in any config OpenCode read. An older binary earlier on PATH reported it as connected, which added to the confusion.
Activity
opencodejr commentedon Oct 28, 2026
Thanks for the detailed write-up, @niebloomj! You're asking OpenCode to show which config sources it actually used:
opencode mcp listwould name the folders it read.opencode debug configwould also list folders it skipped and why (e.g.~/.config/opencodereplaced byOPENCODE_CONFIG_DIR).PATHis a different version from the background service.Today
debug configonly prints the merged result, so it can't explain why something is missing. Maintainers will consider this.Related issues:
OPENCODE_CONFIG_DIRreplaces the global config folder instead of adding to it in v2 (its comments also point to OPENCODE_CONFIG_DIR overrides global AGENTS.md path instead of adding to it #28658).pluginsare silently never loaded; plugin import failures produce no log #58647: other cases where config entries are dropped without any message.