Skip to content

fix(mcp-registry): Wait up to 20 minutes for npm by default - #987

Merged
BYK merged 1 commit into
masterfrom
fix/mcp-registry-longer-npm-wait
Nov 24, 2026
Merged

BYK merged 1 commit into
masterfrom
fix/mcp-registry-longer-npm-wait

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Before it publishes, the mcp-registry target 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:

  • getsentry/toolkit 0.51.0 (publish run): @sentry/mcp-server@0.51.0 was 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.0 took roughly 8 minutes.
  • For 0.50.0, the same wait passed only on try 25 of 30, after about 4m16s.

This change:

  • Raises the default wait to 20 minutes per npm package. It still checks every 10 seconds, so a fast npm adds no delay.
  • Adds an npmTimeout option (in seconds) so a project can set its own limit. Values that aren't positive finite numbers are rejected as a configuration error.
  • Keeps the error message for a timeout as it was, and updates the target docs to match.

via @BYK.

--

View Session [Sentry]

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>
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-11-24 18:53 UTC

@sentry-junior
sentry-junior Bot marked this pull request as ready for review November 24, 2026 18:23
@sentry-junior
sentry-junior Bot requested a review from BYK November 24, 2026 18:23
@BYK
BYK merged commit 2e34223 into master Nov 24, 2026
28 of 31 checks passed
@BYK
BYK deleted the fix/mcp-registry-longer-npm-wait branch November 24, 2026 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant