Skip to content

v0.2.1

Latest

Choose a tag to compare

@github-actions github-actions released this 09 Mar 13:32

Bug fix

Fix `--` consumed by npm shim on Windows — When installed via npm i -g, the -- separator was consumed by the npm shim chain (sh/cmd wrapper), causing CLI mode to break. Now uses a two-layer fix:

  • Strict flag extraction: mcp2win flags are only consumed before the provider command, preventing sub-command flags like -y (from npx -y) from being stolen
  • Heuristic separator inference: providers detect where the command starts by scanning for known command names (npx, uvx, node, python, etc.), so -- is no longer strictly required for common commands
  • npm wrapper: added windowsVerbatimArguments as defense against Node.js arg escaping on Windows

Before (broken)

mcp2win claude mcp add srv -s user -- npx -y @pkg
Error: expected '--' separator

After (works)

mcp2win claude mcp add srv -s user -- npx -y @pkg  # works (-- preserved or not)
mcp2win claude mcp add srv -s user npx -y @pkg     # also works (heuristic)