Skip to content

mcp list reports "No MCP servers configured" on cold start (v2.2.6) #62902

Open

Description

@crazycatBLG

Description

Summary

Immediately after the CLI/server starts, opencode mcp list prints No MCP servers configured, although the MCP servers are configured and working. Running the same command a few seconds later prints the correct status. A live session (opencode run) sees the same servers, so the configuration is valid.

Environment

  • OpenCode: v2.2.6
  • OS: Linux (Ubuntu, kernel 5.15) and Windows 11 — reproduced on both
  • Config: ~/.config/opencode/opencode.json with mcp.servers.{context7, vault} on Linux and mcp.{context7, vault} on Windows; both load fine in a session
  • MCP: context7 (remote), vault (local stdio python server); Linux also has chrome-devtools-hermes

Actual vs expected

First call: No MCP servers configured. Second call: ✓ context7 connected, ✓ vault connected (and ✓ chrome-devtools-hermes connected on Linux).
Expected: wait for MCP startup within the command budget, or report connecting instead of claiming nothing is configured.

Workarounds

  • Re-run the command after a few seconds.
  • opencode mcp list --print-logs (--log-level debug --print-logs) prints the statuses even on the cold-start path.

Notes

opencode debug config lists the same servers at the moment mcp list claims there are none, so the config loader is fine and only the mcp list status path is affected.

Plugins

2.2.6

OpenCode version

No response

Steps to reproduce

  1. Make sure no OpenCode background service is running (fresh shell, first run after boot).
  2. Run opencode mcp list.
  3. Observe No MCP servers configured.
  4. Wait ~5-10 s and run opencode mcp list again -> the servers are listed as connected.

Screenshot

No response

Operating System

Linux (Ubuntu, kernel 5.15) and Windows 11

Terminal

bash (Linux), PowerShell (Windows)

Activity

  1. opencodejr commented on Nov 9, 2026

    @opencodejr

    Thanks for the clear report and the workarounds. I think this is a duplicate of #54192. There, too, the first opencode mcp list in a location that hasn't loaded yet reads the MCP list before the configured servers are registered, so it prints No MCP servers configured, and the next call lists them correctly. In v2.2.6, the server's mcp.list handler still doesn't wait for that registration, which matches what you see.

    Possible duplicates and related issues, ordered from most to least likely:

    The bot will close this issue as a duplicate in 1 day unless you reply explaining how your problem is different. If it's the same, adding your 2.2.6 Linux/Windows details as a comment on #54192 would help show that it still happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions