mcpField
V
vercel-deploy

vercel-deploy

github.com/hainrixzCloud & DevOps28480 installsUpdated 5d ago
Repository

About vercel-deploy

vercel-deploy is a deployment skill for projects targeting Vercel, intended for agents or developers carrying out deployments. It defaults to preview deployments and includes a fallback script for cases where CLI authentication is unavailable.

Key features

  1. 01Deploy projects to Vercel
  2. 02Default to preview deployments
  3. 03Use Vercel CLI when available
  4. 04Fallback script for unauthenticated deployment
  5. 05Return preview and claim URLs

Use cases

  1. 01Deploy a project as a preview
  2. 02Deploy a specified project path
  3. 03Deploy to production when explicitly requested

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/hainrixz/claude-webkit --skill vercel-deploy

After installing, type/vercel-deployin Claude Code to confirm it loaded.

Bundled filesLICENSE.txtscripts/deploy.sh

Details

From the project README

Note: In claude-webkit this skill is the primary deployment path. CLAUDE.md Phase 6 calls bash .claude/skills/vercel-deploy/scripts/deploy.sh site directly.

Vercel Deploy

Deploy any project to Vercel instantly. Always deploy as preview (not production) unless the user explicitly asks for production.

Prerequisites

  • Check whether the Vercel CLI is installed without escalated permissions (for example, command -v vercel).
  • Only escalate the actual deploy command if sandboxing blocks the deployment network calls (sandbox_permissions=require_escalated).
  • The deployment might take a few minutes. Use appropriate timeout values.

Quick Start

  1. Check whether the Vercel CLI is installed (no escalation for this check):
command -v vercel
  1. If vercel is installed, run this (with a 10 minute timeout):
vercel deploy [path] -y

Important: Use a 10 minute (600000ms) timeout for the deploy command since builds can take a while.

  1. If vercel is not installed, or if the CLI fails with "No existing credentials found", use the fallback method below.

Fallback (No Auth)

If CLI fails with auth error, use the deploy script:

skill_dir="<path-to-skill>"

# Deploy current directory
bash "$skill_dir/scripts/deploy.sh"

# Deploy specific project
bash "$skill_dir/scripts/deploy.sh" /path/to/project

# Deploy existing tarball
bash "$skill_dir/scripts/deploy.sh" /path/to/project.tgz

The script handles framework detection, packaging, and deployment. It waits for the build to complete and returns JSON with previewUrl and claimUrl.

Tell the user: "Your deployment is ready at [previewUrl]. Claim it at [claimUrl] to manage your deployment."

Production Deploys

Only if user explicitly asks:

vercel deploy [path] --prod -y

Output

Show the user the deployment URL. For fallback deployments, also show the claim URL.

Do not curl or fetch the deployed URL to verify it works. Just return the link.

Troubleshooting

Escalated Network Access

If deployment fails due to network issues (timeouts, DNS errors, connection resets), rerun the actual deploy command with escalated permissions (use sandbox_permissions=require_escalated). Do not escalate the command -v vercel installation check. The deploy requires escalated network access when sandbox networking blocks outbound requests.

Example guidance to the user:

The deploy needs escalated network access to deploy to Vercel. I can rerun the command with escalated permissions—want me to proceed?

Comments

Markdown supported