Skip to content

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

@AndresMpa

Description

@AndresMpa

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.

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