Repository navigation
Release 0.4.0: hand off to lpm mcp serve - #6
Merged
Merged
Conversation
The LPM CLI serves MCP itself from 0.86.0, so this is the package's last release. When it finds LPM CLI 0.86.0 or later, it starts `lpm mcp serve` on its own stdio, passing stop signals on and mirroring the exit, so editors that start the package through npx get the CLI's server. With an earlier CLI, or none, it serves its own tools as before and tells agents it is retired. CLIs before 0.86.0 run this package for their own `lpm mcp serve`, so it must keep working for them. The hand-off sets LPM_MCP_NPM_HANDOFF, and a server started with it never hands off again. 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.
The LPM CLI serves MCP itself from 0.86.0 (lpm-dev/rust-client#1137, released in v0.86.0), so this is the last release of
@lpm-registry/mcp-server.What 0.4.0 does
LPM_CLI_PATHor aslpmonPATHoutside the project (the existing discovery), it startslpm mcp serveon its own stdio. It passes SIGINT, SIGTERM and SIGHUP on, and exits as the CLI's server exits. Editors configured withnpx -y @lpm-registry/mcp-server@latestget the CLI's server.@lpm-registry/mcp-server@latestfor their ownlpm mcp serve, so this path must keep working for them.LPM_MCP_NPM_HANDOFF, and a server started with it never hands off again.lpm mcp serve.The version comes from the first line of
lpm --version. 0.86.0's nightlies predate the native server, so a prerelease of 0.86.0 doesn't count. Older CLIs print an update notice below the version, so only the first line is read. Nothing reads stdin before the hand-off, so requests the client sends while the version is checked reach the CLI's server.Verification
npm test: 371 passed.npm run lintis clean.lpm_searchreturned results.lpm_searchreturned results, and the retirement instructions were sent.After merging: publish 0.4.0, then deprecate earlier versions on npm with a pointer to
lpm mcp serve.🤖 Generated with Claude Code