Skip to content

cli: mcp list --standalone never lists configured servers #63723

Closed as duplicate

Description

@gcar-bendingspoons

Description

opencode mcp list --standalone always prints No MCP servers configured, even when the same config lists servers that connect fine through the shared service. --standalone does read the config otherwise: opencode models --standalone returns the providers and models from the same file.

Reproduced with:

  • global config using the native V2 mcp.servers shape
  • global config using the V1 flat mcp map
  • a project opencode.json containing mcp.servers
  • a temporary HOME whose ~/.config/opencode/opencode.json contained mcp.servers

All four print No MCP servers configured. Against the shared service the same entries are reported as connected.

Steps to reproduce

  1. Put a server in the global config:
    { "mcp": { "servers": { "everything": { "type": "local", "command": ["npx", "-y", "@modelcontextprotocol/server-everything"] } } } }
  2. opencode mcp list → ✓ everything connected
  3. opencode mcp list --standalone → No MCP servers configured

Expected

--standalone starts a private server that loads the same config, so the configured servers should be listed (pending or connected).

Actual

No MCP servers configured in every directory, for every config shape tried.

Additional context

  • --standalone is the useful escape hatch when the shared service is unhealthy or on a different version, so this hides the config exactly when it is needed for debugging.
  • Environment: CLI 2.2.6, running service 2.2.5.

Plugins

-opencode.browser, -opencode.models.dev, plus local OpenChamber plugins (agent-tool, session-title, routed-model)

OpenCode version

2.2.6

Operating System

macOS 27.0.0 (Darwin 27.0.0, arm64)

Terminal

xterm-256color

Activity

  1. opencodejr commented on Nov 13, 2026

    @opencodejr
    Contributor

    Thanks for the clear report and for trying several config shapes.

    I think this is a duplicate of #54192. MCP requests can read the server list before the config has registered the servers for a location that hasn't been loaded yet, so opencode mcp list prints No MCP servers configured. --standalone starts a fresh private server every time, so it always hits that case. That would explain why you see it in every directory and with every config shape. A comment on #54192 already shows opencode mcp list --standalone printing the same message on 2.2.5 with an mcp.servers config. In the current code, the mcp.list handler still returns the server list without waiting for it to load.

    Related issues, ordered from most to least likely to be the same problem:

    I'm closing this issue now as a duplicate of #54192. Please add your details there; the CLI 2.2.6 / service 2.2.5 setup and the four config shapes you tried would be useful. If you think this is a different problem, reply here and the issue will reopen.

  2. added
    area/mcp
    type/bug
    version/v2
    on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/mcpplatform/macostype/bugversion/v2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions