Skip to content

opencode2: MCP servers from config not recognized (No MCP servers configured) #37532

Closed as not planned

Description

@mrofisr

Summary

opencode2 (next) reports "No MCP servers configured" despite having MCP servers defined in ~/.config/opencode/opencode.json, indicating the mcp config section is not being read.

Environment

  • opencode version: 0.0.0-next-15747 (next channel)
  • OS: Linux 6.17.0-1018-oracle aarch64 (Ubuntu 24.04)
  • Terminal: TERM_PROGRAM=tmux, TERM=tmux-256color
  • Shell: /bin/bash
  • Install/channel: next (via volta)
  • Active plugins: superpowers, oh-my-openagent

Reproduction

  1. Configure MCP servers in ~/.config/opencode/opencode.json:
    {
      "mcp": {
        "servers": {
          "serena": {
            "type": "local",
            "command": ["uvx", "--from", "git+https://github.com/oraios/serena", "serena", "start-mcp-server"]
          },
          "gh-grep": {
            "type": "remote",
            "url": "https://mcp.grep.app"
          }
        }
      }
    }
  2. Run: opencode2 mcp list

Expected Behavior

The configured MCP servers should be listed with their status.

Actual Behavior

No MCP servers configured

Additional Context

Activity

  1. github-actions commented on Sep 16, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions