Skip to content

fix: read memory version from package.json, add missing zod deps - #4557

Open
Timelovers wants to merge 5 commits into
modelcontextprotocol:mainfrom
Timelovers:fix/memory-version-and-zod-deps
Open

fix: read memory version from package.json, add missing zod deps#4557
Timelovers wants to merge 5 commits into
modelcontextprotocol:mainfrom
Timelovers:fix/memory-version-and-zod-deps

Conversation

@Timelovers

Copy link
Copy Markdown

Fixes #4406, fixes #4330.

Two small fixes:

  1. memory server version — reads serverInfo.version from package.json at startup instead of hardcoding "0.6.3", so it stays in sync with the published package version.

  2. missing zod dependencyzod is imported at runtime by both server-memory and server-sequential-thinking but was only available transitively through @modelcontextprotocol/sdk. With strict package managers (pnpm), this causes ERR_MODULE_NOT_FOUND at startup. Added zod: "^3" to both dependencies.

- Read serverInfo.version from package.json instead of hardcoding
  "0.6.3", so it stays in sync with the published package version
- Add missing zod dependency to server-memory and
  server-sequential-thinking package.json files — both import zod
  at runtime but it was only available transitively through the SDK

Fixes modelcontextprotocol#4406, fixes modelcontextprotocol#4330

Co-authored-by: Timelovers <46080686+Timelovers@users.noreply.github.com>
Co-authored-by: Timelovers <46080686+Timelovers@users.noreply.github.com>
Co-authored-by: Timelovers <46080686+Timelovers@users.noreply.github.com>
Co-authored-by: Timelovers <46080686+Timelovers@users.noreply.github.com>
createRequire is the standard Node.js ESM pattern for reading JSON files
and avoids file path resolution issues in CI test environments.

Co-authored-by: Timelovers <46080686+Timelovers@users.noreply.github.com>
@Timelovers

Copy link
Copy Markdown
Author

Hi — friendly ping. Let me know if any changes are needed. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant