Skip to content

v4.3.1

Choose a tag to compare

@LuiggiVal08 LuiggiVal08 released this 03 Aug 18:54

Fixes

  • Windows: ERR_UNSUPPORTED_ESM_URL_SCHEME crashtoon-memory (CLI and MCP mode) crashed on Windows because dynamic imports passed raw C:\... paths to import(). Entry points now convert paths via pathToFileURL (new shared helper src/cli/entry.ts), so it works again on Windows.
  • install.ps1 pinned an ancient release — the Windows installer hard-coded toon-memory@1.0.9 with a placeholder checksum, so it installed a version whose init wrote the legacy OpenCode MCP format ({"command","args"} without type/enabled). OpenCode 1.17+ rejects that entry and blocks the whole opencode.json from loading. The installer now resolves the latest version + dist.integrity from the npm registry at runtime and verifies the tarball with SHA-512.
  • No silent config wipe — config writers now skip (with a warning) instead of overwriting an existing agent config that isn't valid JSON, so other MCP servers and user settings are never destroyed.

If your opencode.json shows Expected { type: local } | { type: remote } or Missing key mcp.toon-memory.enabled

Install 4.3.1 and re-run toon-memory init --agent opencode --scope global — it repairs the entry in place while keeping every other MCP server. Or edit ~/.config/opencode/opencode.json (C:\Users\<you>\.opencode\opencode.json) and set:

"mcp": { "toon-memory": { "type": "local", "command": ["npx", "-y", "toon-memory", "mcp"], "enabled": true } }

Full changelog: see CHANGELOG.md.