v0.1.1 — bin entrypoint fix
Patch release fixing a bug where rest-magpie@0.1.0 failed to start under any symlinked launch path (npx, npm install -g, MCP clients invoking the bin directly). Upgrade strongly recommended —
v0.1.0 as published is not usable.
Fixed
- Server silently exited (code 0) when launched via a symlink. The bootstrap guard compared
import.meta.urlto a literalfile://+process.argv[1]. Under npx and other bin shims,argv[1]
points tonode_modules/.bin/rest-magpie(a symlink) whileimport.meta.urlresolves to the realdist/index.js— strings never matched, the bootstrap branch was skipped, no transport was started.
Nowargv[1]is resolved throughrealpathSync+pathToFileURLbefore comparison, and a regression smoke test launches the server through a temporary symlink.
(#13)
Full changelog: CHANGELOG.md