Skip to content

bug: mcp.json resets to default after update, causing time server to fail (npx used instead of uvx) #17442

Closed as not planned

Description

@wangzhihaolighter

Description

Bug Description

Two related issues with the time MCP server configuration:

  1. The default mcp.json template uses npx to start @modelcontextprotocol/server-time, but this is a Python package and cannot be run with npx. It should use uvx mcp-server-time instead.

  2. Every time OpenCode updates, mcp.json is reset to the default template, overwriting any user customizations. This means the broken time config keeps coming back after each update.

Steps to Reproduce

  1. Install OpenCode and notice time MCP server shows a red dot (failed to start)
  2. Fix the config manually to use uvx mcp-server-time
  3. Update OpenCode
  4. mcp.json reverts to the default broken config

Expected Behavior

  • The default config should use uvx mcp-server-time for the time server
  • User-modified mcp.json should not be overwritten on update

Current Broken Config

"time": {
  "command": ["cmd", "/c", "npx", "-y", "@modelcontextprotocol/server-time"],
  "enabled": true,
  "type": "local"
}

Correct Config (workaround)

"time": {
  "command": ["cmd", "/c", "uvx", "mcp-server-time"],
  "enabled": true,
  "type": "local"
}

Environment

  • OS: Windows
  • OpenCode version: latest

Plugins

No response

OpenCode version

OpenCode Desktop v1.2.26

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

OpenCode Desktop v1.2.26

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 14, 2026
  2. Hona commented on Mar 14, 2026

    @Hona
    Member

    I think this is an issue with your config, not what we've shipped?

  3. removed
    bugSomething isn't working
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  4. github-actions commented on Jul 3, 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