CtrlK
BlogDocsLog inGet started
Tessl Logo

vercel-deployment

Vercel deployment workflows, environment management, domain configuration, and build troubleshooting. Use when deploying, checking deployment status, reviewing build logs, or managing environments.

100

Quality

100%

Does it follow best practices?

Impact

Pending

No eval scenarios have been run

SecuritybySnyk

Advisory

Suggest reviewing before use

SKILL.md
Quality
Evals
Security

Vercel Deployment

Vercel-specific deployment patterns and MCP tool usage. For project-specific deployment architecture, environment variables, and key files, see deployment-config.md.

Deployment Model

Branch → Environment mapping:

Branch patternEnvironment
mainProduction deployment (auto)
feature/*, fix/*Preview deployment (auto)

MCP Tools

The Vercel MCP server provides these tools through https://mcp.vercel.com:

ToolPurpose
deploy_to_vercelTrigger a deployment
get_deploymentCheck deployment status and metadata
get_deployment_build_logsRead build output for debugging
get_runtime_logsRead runtime logs for debugging
list_deploymentsList recent deployments
get_projectGet project configuration
list_projectsList all projects in the team
list_teamsList available teams
search_vercel_documentationSearch Vercel docs
check_domain_availability_and_priceDomain availability check

Environment Variables

Vercel Environment Scoping

Vercel supports three environment scopes — set variables for each appropriately:

ScopeWhen AppliedUse For
Productionmain branch deploysLive secrets, production API keys
PreviewAll non-production branchesStaging/test API keys
Developmentvercel dev local serverLocal development overrides

Best Practices

Verify required env vars exist in production and preview scopes; see REFERENCE.md for details.

Build Troubleshooting

When builds fail, follow this workflow:

  1. Read build logs — use get_deployment_build_logs to get the full output
  2. Check common causes:
    • Missing environment variables
    • Node.js version mismatch (check engines in package.json)
    • Build command mismatch (verify in project settings)
    • Dependency resolution issues (lockfile out of sync)
  3. Check runtime logs — use get_runtime_logs for post-deploy errors
  4. Verify deployment status — use get_deployment to check state and error details

Example troubleshooting commands (MCP payloads)

  1. Get build logs:
// tool: vercel/get_deployment_build_logs
{ "deployment_id": "dpl_abc123" }
  1. Get runtime logs:
// tool: vercel/get_runtime_logs
{ "deployment_id": "dpl_abc123", "limit": 200 }
  1. Re-deploy a specific commit after fixing an issue:
// tool: vercel/deploy_to_vercel
{ "project_id": "proj_xxx", "gitCommitSha": "abcd1234" }

After re-deploying, re-check get_deployment_build_logs and get_runtime_logs to confirm the fix. Repeat until build succeeds.

Cron Jobs (vercel.json)

Configure cron jobs in vercel.json under crons[] with path and schedule.

Repository
monkilabs/opencastle
Last updated
Created

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.