You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This uses Node.js native fetch(), which completely bypasses the user's .npmrc registry configuration. For users behind corporate proxies or using private/internal registries (e.g. JFrog Artifactory), this request either gets blocked or fails silently on every startup.
Describe the solution you'd like
The script should respect the user's npm registry configuration instead of hardcoding the public registry. Some options:
Read the npm_config_registry environment variable (npm automatically sets this when invoked via npx)
Fall back to https://registry.npmjs.org only if no custom registry is configured
Setting CHROME_DEVTOOLS_MCP_NO_UPDATE_CHECKS=1 to disable the check entirely. This works but means losing update notifications.
Patching the script locally, but it gets overwritten whenever npx refreshes the package.
Additional context
The issue also affects users who configure npm registries via environment variables or project-level .npmrc files. The CHROME_DEVTOOLS_MCP_NO_UPDATE_CHECKS env var serves as a workaround but shouldn't be necessary for users who simply have a different registry configured.
Would the proposed solution help your specific use case? I ask because the npm_config_registry env var is only set when invoked as part of an npm script or via npx, so it won’t help in any other cases, e.g. when the CLI is invoked directly.
Would the proposed solution help your specific use case? I ask because the npm_config_registry env var is only set when invoked as part of an npm script or via npx
Yes, I believe it will since the MCP server is invoked via npx (the recommended setup use npx chrome-devtools-mcp@latest), so npm_config_registry is set and inherited by the detached child process that runs check-latest-version.js. I confirmed this locally.
it won’t help in any other cases, e.g. when the CLI is invoked directly
For direct CLI invocation where npm_config_registry isn't set, a simpler approach that covers both cases would be to use npm config get registry, which reads .npmrc regardless of how the server was started:
letregistry;try{registry=execSync('npm config get registry',{encoding: 'utf8'}).trim().replace(/\/$/,'');}catch{// npm not on PATH, fall back to default}registry||='https://registry.npmjs.org';
Since the update check only runs once every 24 hours, the overhead of shelling out is negligible.
Activity
mathiasbynens commentedon Apr 23, 2026
Would the proposed solution help your specific use case? I ask because the
npm_config_registryenv var is only set when invoked as part of annpm scriptor vianpx, so it won’t help in any other cases, e.g. when the CLI is invoked directly.Yohanna commentedon Apr 23, 2026
Yes, I believe it will since the MCP server is invoked via
npx(the recommended setup usenpx chrome-devtools-mcp@latest), sonpm_config_registryis set and inherited by the detached child process that runscheck-latest-version.js. I confirmed this locally.For direct CLI invocation where
npm_config_registryisn't set, a simpler approach that covers both cases would be to usenpm config get registry, which reads.npmrcregardless of how the server was started:Since the update check only runs once every 24 hours, the overhead of shelling out is negligible.
fix: respect user's npm registry configuration in update check (Chrom…