iai-personal-memory-engine icon indicating copy to clipboard operation
iai-personal-memory-engine copied to clipboard

mcp-wrapper reports version 3.0.2 in the 3.0.3 release (hardcoded WRAPPER_VERSION not bumped)

Open gepenniman opened this issue 3 months ago • 0 comments

Summary

The 3.0.3 release ships the MCP wrapper still reporting version 3.0.2. The constant is hardcoded and was not bumped with the release.

Where

At tag/commit bc28bd9 (Release 3.0.3):

  • mcp-wrapper/src/lifecycle.ts:29 — export const WRAPPER_VERSION = "3.0.2";
  • mcp-wrapper/src/index.ts:81 — version: "3.0.2", (serverInfo returned in the MCP initialize response)

Meanwhile mcp-wrapper/package.json correctly says 3.0.3.

Observed

A raw initialize handshake against a freshly built dist/index.js from the 3.0.3 tree returns:

{"serverInfo":{"name":"iai-mcp","version":"3.0.2"}}

lifecycle.ts also reports the stale value via wrapper_version (line 232), so anything monitoring wrapper/engine version parity sees a false mismatch against a 3.0.3 daemon.

Impact

Cosmetic/diagnostic only — no functional breakage observed. But it defeats version-skew checks between wrapper and engine, which is exactly the situation where you'd read this field.

Suggested fix

Derive the version from package.json at build time (or a single generated version module) instead of two hand-maintained string literals, so a release bump can't miss them.

Environment: macOS (arm64), node 24.x, package 3.0.3, repo at bc28bd9. Reproduced on two machines.

gepenniman avatar Aug 20 '26 02:08 gepenniman