servers icon indicating copy to clipboard operation
servers copied to clipboard

server-memory and server-sequential-thinking fail at startup due to missing zod dependency

Open AndresMpa opened this issue 5 months ago • 2 comments

Describe the bug

The published npm packages @modelcontextprotocol/server-memory and @modelcontextprotocol/server-sequential-thinking fail immediately on startup because they import zod, but zod is not listed in their published dependencies.

This reproduces outside of Continue and appears to be a package publishing/dependency issue.

To Reproduce

  1. Install Node.js 22
  2. Run:
pnpm dlx @modelcontextprotocol/server-memory

or

pnpm dlx @modelcontextprotocol/server-sequential-thinking
  1. Observe that the process exits immediately with a module resolution error.

Expected behavior

The MCP server should start successfully and wait for stdio connections.

Logs

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'zod' imported from .../dist/index.js

Did you mean to import "zod/index.cjs"?

Environment:

Node.js v22.22.3
pnpm v11.3.0
Arch Linux

Additional context

The published package contains imports from zod:

grep -R 'from "zod"' node_modules/@modelcontextprotocol/server-memory

Output:

node_modules/@modelcontextprotocol/server-memory/dist/index.js:import { z } from "zod";

However, the published dependencies do not include zod:

pnpm view @modelcontextprotocol/server-memory dependencies

Output:

{
  "@modelcontextprotocol/sdk": "^1.25.2"
}

I observed the same behavior with @modelcontextprotocol/server-sequential-thinking.

AndresMpa avatar Jun 13 '26 20:06 AndresMpa

Confirmed: both server-memory and server-sequential-thinking are missing the zod dependency in their package.json files, causing startup failures.

fjcobu14 avatar Jun 13 '26 22:06 fjcobu14

Closing as a duplicate of #4288; let's track it there.

localden avatar Jul 30 '26 00:07 localden