Repository navigation
Conversation
npm deprecate is a point-in-time write, so every v1 release landed un-deprecated unless someone remembered to run it by hand. Add a step after publish-all that deprecates the exact version just published on all four package names, refusing an empty message, a non-v1 version, or a missing NPM_DEPRECATE_TOKEN. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: cliffhall <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
Retrying a failed deprecation step reruns publication of already-published package versions, causing npm to reject the retry before deprecation can complete.
1 open issue
What changed in this PR
Automates npm deprecation notices for v1 releases, complementing the existing runtime notices and removing the routine manual registry update described in #2104.
Changes:
- Deprecates the exact published version of all four Inspector packages.
- Rejects non-v1 versions, empty messages, and missing credentials.
- Uses
NPM_DEPRECATE_TOKEN, which maintainers must provision on thereleaseenvironment.
| File | Description |
|---|---|
.github/workflows/main.yml |
Adds post-publication deprecation calls, safety checks, and credential documentation. |
Review effort: Balanced
Address review: as a step after publish-all, re-running the failed job re-ran the publish, which npm rejects for an existing version. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: cliffhall <[email protected]>
|
Copilot round 1 summary:
|
There was a problem hiding this comment.
🔵 Needs a closer look
Introducing the repository’s first long-lived npm write credential requires maintainer acceptance and verification of package scope, expiry, 2FA compatibility, and release-environment reviewer protections that the diff does not establish.
No open issues 🎉
1 resolved since last review
Review effort: Balanced
|
Copilot review loop closed: round 2 was clean (no inline or suppressed findings, and round 1's finding is resolved). Its headline only restates the credential decision, which is the maintainer prerequisite in the PR body: provision a granular, scoped, expiring |
|
Closing unmerged: maintainers decided not to add a long-lived npm token to the repo, which this step would need, so npm deprecation stays a manual step. #2104 is closed as not planned. A follow-up issue will add the deprecate step to the release skill's v1 flow. |
|
Not going to create another token to manage. Maybe in the future but not now. Instead, we will add a step to the v1 flow of the release skill that steps the maintainer through the process of deprecating each package of the v1 inspector manually. |

Closes #2104
What changed
A
Deprecate the published v1 packagesstep in.github/workflows/main.yml'spublishjob, right afternpm run publish-all. It runsnpm deprecateon the exact version just published (read from the rootpackage.json, whichcheck-versionalready holds in lockstep with the three workspaces) for all four names:inspector,inspector-cli,inspector-client,inspector-server.npm deprecateis a point-in-time write, not a standing rule, so until now every v1 release shipped un-deprecated unless someone remembered the manual step (1.0.2 didn't get it).Acceptance criteria
npm deprecatecalls at@${VERSION}.<2.0.0would also match2.0.0-rc.*. As a further guard, the step refuses any version that doesn't start with1..set -ualso catches an unsetMSG.The message is byte-identical to the one already on 1.0.4 (checked with
npm view @modelcontextprotocol/[email protected] deprecated). The runtime banners from #1827 say the same thing in different words, so the comment asks for their intent to stay in sync, not for an exact match.NPM_DEPRECATE_TOKENon thereleaseenvironmentOIDC trusted publishing covers
npm publishonly.npm deprecateneeds a real token, so this is the repo's first long-lived npm credential. Merging this PR is what makes that decision. Before the next v1 release:@modelcontextprotocol/inspector*packages only, and give it an expiry.release, not repo-wide, so it sits behind the existing required reviewers.Without the secret, the step fails the job with an error saying the version was published but NOT deprecated. It doesn't skip silently. The publish itself has already succeeded by then.
Verification
[email protected] --checkandactionlint(which includes shellcheck) both pass on the workflow.run:block from the YAML and ran it withnpmshimmed to log its calls:deprecate @modelcontextprotocol/<pkg>@1.0.4MSG=""package.jsonversion2.0.0-rc.4🤖 Generated with Claude Code