Skip to content

v1.10.2 — Windows path fix, OPENCODE_SERVE_ARGS, model variant

Choose a tag to compare

@AlaeddineMessadi AlaeddineMessadi released this 19 May 23:19
· 39 commits to main since this release

User-facing bugfix release. Three commits sat unreleased on main since v1.10.1; cutting v1.10.2 unblocks Windows clients without dragging the larger SDK migration (PR #11) along.

Fixed

  • normalizeDirectory rejected valid Windows absolute paths (#5, #6, #13) — the resolved-path check used startsWith("/"), which only matches POSIX. On Windows hosts (including npx-spawned MCPs talking to a WSL OpenCode), path.resolve("/mnt/d/Projects/foo") returns "\\mnt\\d\\Projects\\foo", failing the check and rendering every tool's directory parameter unusable for Windows clients.

    Switched to the platform-aware path.isAbsolute from node:path, which accepts both POSIX (/home/user/project) and Windows (C:\Users\me\project, \\server\share) absolute paths. Updated the error message to show both forms.

Added

  • OPENCODE_SERVE_ARGS environment variable (#7, #9) — pass custom arguments to the opencode serve subprocess at auto-start. Useful for advanced server configuration. Thanks @xpufx for the issue.
  • Model variant parameter on all model-accepting tools (#8, #10) — opencode_ask, opencode_run, opencode_fire, opencode_reply, opencode_message_send* now accept an optional `variant` to target a specific model variant. Thanks @iamabigartist for the issue.

Install

```bash
npx -y opencode-mcp@1.10.2
```

Or pin in your MCP client config:

```json
{
"command": "npx",
"args": ["-y", "opencode-mcp@1.10.2"]
}
```

Stats

  • 79 tools
  • 321 tests passing

Full Changelog: v1.10.1...v1.10.2