Skip to content

fix(mcp): upgrade wrangler for worker-scoped deploy tokens - #1570

Merged
betegon merged 2 commits into
mainfrom
fix/wrangler-granular-token-deploy
Oct 21, 2026
Merged

betegon merged 2 commits into
mainfrom
fix/wrangler-granular-token-deploy

Conversation

@betegon

@betegon betegon commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Worker-scoped deployment tokens can upload a version with Wrangler 4.80.0, then fail with authentication error 10000 while looking up the account's workers.dev subdomain. Pin the MCP package to the current stable release, 4.151.3, which includes Cloudflare's Worker-scoped URL fix. This allows the upload to finish without broadening token permissions.

Wrangler now uploads source maps by default. Set upload_source_maps: false to preserve the existing behavior: the Vite plugin uploads them to Sentry. Node 22 already satisfies the runtime requirement. The lockfile includes the new Wrangler runtime and exact release-age exceptions for its two newly published packages; the Vite plugin and test runtime retain their versions.

Validation on 4.151.3: full typecheck/build and lint, 441 Cloudflare tests, 15 local Wrangler smoke tests, 15 deployment contract tests and a bundle dry-run passed. Real-CLI probes against a local mock API confirm the token fix, compatibility with the deployment parser, and omission of source maps when explicitly disabled.

Local validation limits: the full suite hits the existing macOS musl-test failure, missing Xcode actool, and an account-routing timing failure also reproduced with unchanged main source. An issue-link test failed in the full run and passed on a targeted rerun. Vite dev smoke retains the same three MCP failures seen with 4.80.0 and 4.136.1. No production deployment has been performed with this change.

@vercel

vercel Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentry-local Ready Ready Preview Oct 21, 2026 11:40am UTC

Request Review

@betegon
betegon marked this pull request as ready for review October 21, 2026 11:27
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Oct 21, 2026
@betegon
betegon merged commit 3adb6c1 into main Oct 21, 2026
55 of 58 checks passed
@betegon
betegon deleted the fix/wrangler-granular-token-deploy branch October 21, 2026 12:04

This branch was successfully deployed

1 active deployment
Preview — 406d5b72 Deployed Oct 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant