Skip to content

MCP Docker servers fail to connect after upgrade from v1.1.6 to v1.1.7+ #8171

Closed as not planned

Description

@pomazanbohdan

Description

Docker-based MCP servers that were working correctly in OpenCode v1.1.6 fail to connect after upgrading to v1.1.7. The MCP server container starts successfully and reports healthy status, but OpenCode cannot establish connection. Tools become unavailable with no error message displayed.

Expected Behavior

Docker-based MCP servers should connect and register tools just as they did in v1.1.6. The server should show all tools available and respond to operations.
Actual Behavior

  • MCP server container starts successfully (logs show "Server healthy")
  • Container reports model loaded, tools registered
  • OpenCode shows no MCP tools available OR connection fails silently
  • No explicit error message in OpenCode UI
  • Downgrading to v1.1.6 restores functionality immediately

Configuration

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "memory-mcp": {
      "type": "local",
      "command": [
        "docker", "run", "--rm", "-i",
        "--name", "memory-mcp",
        "-v", "memory-mcp-data:/data",
        "-v", "/path/to/project:/project:ro",
        "-e", "RECONNECT_TIMEOUT=60",
        "ghcr.io/pomazanbohdan/memory-mcp-1file:latest"
      ],
      "enabled": true
    }
  }
}

Related Issues

  • #6909 — MCP timeout after v1.1.1 update (same pattern: MCP fails after version upgrade)
  • #829 — Unstable MCP servers, no retry mechanism (OpenCode gives up on connection)
  • #731 — MCP hangs without health checks
  • #834 — SSE remote servers fail
  • oh-my-opencode #493 — MCP detected as type=remote instead of local after reinstall

Additional Context

  • Issue appeared immediately after upgrading from v1.1.6 to v1.1.7
  • Rolling back to v1.1.6 restores full functionality
  • Docker container runs correctly outside OpenCode (tested manually with docker run)
  • No changes to configuration between versions
  • Similar pattern reported in oh-my-opencode Formatter for Kotlin #493 (MCP detected as type=remote instead of local after reinstall)

OpenCode version

v1.1.7+

Steps to reproduce

  1. Have a working MCP configuration with Docker-based server (type: local, command: docker run ...)
  2. Verify MCP works in OpenCode v1.1.6 (all tools available, operations succeed)
  3. Upgrade OpenCode from v1.1.6 to v1.1.7
  4. Start a new OpenCode session
  5. Observe MCP section - server appears disconnected or tools unavailable

Operating System

  • OS: Linux (Ubuntu)
  • OpenCode Version: v1.1.7 (fails) / v1.1.6 (works)
  • MCP Server: Docker container (STDIO transport)

Activity

  1. github-actions commented on Jan 13, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. yanosh-k commented on Jan 14, 2026

    @yanosh-k
    Contributor

    I had the same issue and a temp fix, in my case, was to start opencode form the native Bun binary directly (more info the issue: #8434) - in my case this was /srv/ai/open_code/node_modules/opencode-linux-x64/bin/opencode

  3. pomazanbohdan commented on Jan 14, 2026

    @pomazanbohdan
    Author
  4. pomazanbohdan commented on Jan 21, 2026

    @pomazanbohdan
    Author

    1.1.28 not work

  5. yanosh-k commented on Feb 11, 2026

    @yanosh-k
    Contributor

    When installing with npm, the issue still persists even in v1.1.57 (the same described here #8434).

  6. jimlyas commented on Mar 6, 2026

    @jimlyas

    Are there any work around for this when installing using curl command?

  7. removed
    bugSomething isn't working
    on May 3, 2026
  8. github-actions commented on Jul 6, 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

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions