Skip to content

serverInfo.version hardcoded as "0.6.3" in @modelcontextprotocol/server-memory@2026.1.26 #4406

Description

@DrewGei

serverInfo.version hardcoded as "0.6.3" in @modelcontextprotocol/server-memory@2026.1.26

Describe the bug

The serverInfo.version field returned during MCP initialization is hardcoded as "0.6.3" in the compiled dist/index.js of the 2026.1.26 release. It does not reflect the actual npm package version.

To Reproduce

  1. Install @modelcontextprotocol/server-memory@2026.1.26
  2. Start the server and send an initialize request
  3. Observe the response:
{
  "serverInfo": {
    "name": "memory-server",
    "version": "0.6.3"
  }
}

Expected Behavior

serverInfo.version should reflect the published package version (2026.1.26).

Root Cause

The version string in dist/index.js is hardcoded rather than read dynamically from package.json at runtime. It was not updated when the package transitioned from 0.x semver to calendar versioning. First introduced in 2025.4.25 — the first calendar versioning release — and present in every release through 2026.1.26.

Impact

Causes confusion when diagnosing MCP startup issues — the reported version does not match the installed package version, making it appear the server has regressed to an older release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions