Repository navigation
Release 0.4.1: let the LPM CLI install the package again - #7
Merged
Merged
Conversation
Since MCP SDK 1.32.2, LPM CLI releases before 0.86.0 failed to install this package for their `lpm mcp serve`: the SDK takes zod as both a dependency and a peer, this package's `^3.24.0` resolved a second zod beside the SDK's 4.x, and the LPM CLI's linker refuses a peer with two installed versions. Ask for zod with the SDK's own range so one zod is installed, and run on zod 4. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
While checking 0.4.0 with a real LPM CLI 0.85.0, I found that
lpm mcp servecould not install this package at all:This isn't new in 0.4.0. 0.3.0 fails the same way, and has since MCP SDK 1.32.2 (2026-10-23). The SDK takes zod as both a dependency and a peer, with
^3.25 || ^4.0. This package asked for^3.24.0, so the install had zod 3.25.76 for this package beside zod 4.x for the SDK. The LPM CLI's linker looks a peer up by name, finds two versions, and stops. CLIs before 0.86.0 run this package for their ownlpm mcp serve, so their MCP server didn't start, and those users never saw the retirement notice.Change
^3.25 || ^4.0, so the install has a single zod. The lockfile moves to zod 4.6.7. The server's schemas run unchanged on zod 4.Verification
npm test: 372 passed, on zod 4.6.7.npm run lintis clean.lpm mcp serve, original 0.4.0 as latest: reproduces the store error above.lpm mcp serve, this branch as latest (0.4.1): installs and starts. The bundled server answers with 17 tools,lpm_searchreturns results, and the retirement instructions reach the client.lpm installof a project depending on 0.4.1: succeeds on CLI 0.85.0 and 0.86.0. Both fail on 0.4.0.lpm_searchagainst lpm.dev).The linker bug itself is in the LPM CLI, and 0.86.0 has it too. I'll report it separately for lpm-dev/rust-client.
🤖 Generated with Claude Code