Repository navigation
fix(mcp-registry): Wait up to 20 minutes for npm by default - #987
Merged
Merged
Conversation
npm now processes new versions asynchronously and can take several minutes to serve them, so the five-minute wait was too short. Raise the default to 20 minutes and add an `npmTimeout` option (seconds). Co-Authored-By: Burak Yigit Kaya <126780+BYK@users.noreply.github.com>
Contributor
|
BYK
approved these changes
Nov 24, 2026
8 tasks
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.
Before it publishes, the
mcp-registrytarget waits for npm to serve each npm package version. That wait was fixed at 30 tries 10s apart, about 5 minutes. npm now processes new versions asynchronously ("Your package is being processed and may take a few minutes to become available"), and 5 minutes isn't enough anymore:0.51.0(publish run):@sentry/mcp-server@0.51.0was published at about 17:47:31 UTC. It got HTTP 404 on all 30 tries, and the target gave up at 17:52:29. npm started serving it at about 17:54:30, roughly 7 minutes after publish.sentry@0.51.0took roughly 8 minutes.0.50.0, the same wait passed only on try 25 of 30, after about 4m16s.This change:
npmTimeoutoption (in seconds) so a project can set its own limit. Values that aren't positive finite numbers are rejected as a configuration error.via @BYK.
--
View Session [Sentry]