Skip to content

v0.3.1 — Bug fixes for stack files

Choose a tag to compare

@m1ngshum m1ngshum released this 06 Apr 08:32
· 60 commits to main since this release
Immutable release. Only release title and notes can be modified.

Bug fixes

Two bugs found during end-to-end testing of the v0.3.0 stack files feature:

Fixed: mcpm lock failing with `latest` version alias

mcpm export generates version: latest for servers without a pinned version. mcpm lock then couldn't resolve it because semver.valid('latest') returns null, causing "No versions available" errors.

The fix: resolveVersion() now handles "latest" as a first-class alias that returns the highest semver version from the available list.

Fixed: mcpm remove crashing with "Unexpected end of JSON input"

When a client config file was 0 bytes (e.g., VS Code creates an empty mcp.json on first run), BaseAdapter.readRaw() called JSON.parse("") which throws. The fix treats empty/whitespace-only files the same as missing files, returning {}.

Tests

821 tests passing. Two regression test cases added for each fix.