Skip to content

v0.1.1 — bin entrypoint fix

Choose a tag to compare

@ed-smartass ed-smartass released this 09 May 19:46
· 19 commits to main since this release
32e2099

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.url to a literal file:// + process.argv[1]. Under npx and other bin shims, argv[1]
    points to node_modules/.bin/rest-magpie (a symlink) while import.meta.url resolves to the real dist/index.js — strings never matched, the bootstrap branch was skipped, no transport was started.
    Now argv[1] is resolved through realpathSync + pathToFileURL before comparison, and a regression smoke test launches the server through a temporary symlink.
    (#13)

Full changelog: CHANGELOG.md