feat(vtex): migrate to Cloudflare Workers deploy#424
Merged
Conversation
Move vtex MCP off the kubernetes-bun pipeline onto the same Cloudflare Workers pattern as github/dropbox: wrangler.toml with custom domain, Workers fetch entrypoint, dedicated deploy-vtex.yml workflow, and bumped runtime/sdk deps. Removes the vtex entry from deploy.json so the kubernetes-bun pipeline no longer picks it up. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This was referenced May 6, 2026
viktormarinho
added a commit
that referenced
this pull request
May 6, 2026
Reverts the Workers migration (#424–#427). The runtime cache fix from decocms/studio#3299/#3300 didn't restore acceptable tools/list latency (~5s/call still observed after 1.6.2). Going back to the working kubernetes-bun pipeline; vtex stays on @decocms/runtime 1.3.1 with the serve()-style entrypoint. Restores: deploy.json entry, wrangler.toml deleted, deploy-vtex.yml workflow deleted, server/main.ts back to bun serve(), package.json back to deco-cli/openapi-ts deps, tsconfig/app.json restored. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
vtex/wrangler.toml(custom domainvtex-mcp.decocms.com), convertsserver/main.tsto a Workers fetch entrypoint, and adds a dedicated.github/workflows/deploy-vtex.ymltriggered onvtex/**changes.vtex/package.jsonto use wrangler-based scripts, bumps@decocms/runtimeto ^1.6.0 and@modelcontextprotocol/sdkto ^1.27.1, dropsdeco-cli, and tightenstsconfig.json(no DOM libs, narrowed include).vtexentry fromdeploy.jsonso the old pipeline stops picking it up; collapses the per-packagevtex/bun.lockinto the workspace root lockfile.Test plan
bun run checkpasses invtex/bunx wrangler deploy --dry-run --outdir=distsucceeds (5.1MB / 775KB gzip bundle)vtex-mcp.decocms.comas a custom domain in the Cloudflare zone (otherwise first deploy will fail)Deploy VTEX MCPworkflow runs green and the new endpoint serves/mcp🤖 Generated with Claude Code
Summary by cubic
Migrate the VTEX MCP from the kubernetes-bun pipeline to Cloudflare Workers with a wrangler-based deploy and the custom domain
vtex-mcp.decocms.com. This aligns VTEX with the existing Workers pattern and simplifies operations.Refactors
vtex/wrangler.toml(custom domain, logs), convertedserver/main.tsto a Workersfetchentrypoint, and added.github/workflows/deploy-vtex.yml.https://vtex-mcp.decocms.com/mcp;package.jsonscripts usewrangler; tightenedtsconfig.json(no DOM libs,serveronly).vtexfromdeploy.jsonand the per-packagevtex/bun.lock; bumped deps (@decocms/runtime^1.6.0,@modelcontextprotocol/sdk^1.27.1,@decocms/bindings^1.4.0); addedwranglerand@types/node; removeddeco-cli.Migration
vtex-mcp.decocms.comas a custom domain in Cloudflare.https://vtex-mcp.decocms.com/mcpresponds.Written for commit 3e2330a. Summary will update on new commits.