Skip to content

[Bug]: Opencode configuration is incorrect #550

@LuisPeregrina

Description

@LuisPeregrina

code-review-graph version

2.3.6

Operating system

macOS

Python version

3.13.3

AI platform

opencode

Output of code-review-graph status

n/a

Steps to reproduce

  1. pip install code-review-graph
  2. code-review-graph install --platform opencode

Expected vs actual behavior

Expected:
Upsert opencode.json or opencode.jsonc (no dot):

{
  "mcp": {
    "code-review-graph": {
      "enabled": true,
      "type": "local",
      "command": [
        "uvx",
        "code-review-graph",
        "serve"
      ]
    }
  }
}

Actual:
New file .opencode.json (with dot) with claude schema:

{
  "mcpServers": {
    "code-review-graph": {
      "command": "uvx",
      "args": [
        "code-review-graph",
        "serve"
      ],
      "cwd": "eval of pwd",
      "type": "stdio",
      "env": []
    }
  }
}

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions