When to use it
- A production or preview build fails
- A deploy that worked locally but fails on Vercel
- A build that suddenly got slow or timed out
What it looks like
Why did the last deploy of the web app fail?
list_deploymentsget_deployment_eventsget_deploymentget_project+1 moreThe build failed at "Module not found: Can't resolve './components/Header'". The file is components/header.tsx; macOS ignores case but Vercel's Linux build does not. It broke in commit a91e3f0, which renamed the file. Fix: change the import in app/layout.tsx to ./components/header.
The SKILL.md file
name: vercel-failed-deployFind out why a Vercel deployment failed by reading its build events, pinpointing the first real error, comparing with the last good deploy and proposing the fix in code or settings. Use when the user says a Vercel build or deploy failed, errored or is stuck, or shares a failed deployment link.
Steps
- Find the deployment: the one the user linked, or the latest with state ERROR from
list_deploymentsfor the project. - Read the build log with
get_deployment_events. Find the first real error, not the final "Command exited with 1". Common ones:- a missing environment variable at build time;
- a TypeScript or lint error that fails
next build; - a module not found, from a case-sensitive import or a dependency missing from package.json;
- a Node.js version mismatch;
- the output directory not found, from a wrong framework preset or root directory;
- an out-of-memory or build timeout.
- Compare with the last READY deployment of the same target from
list_deployments, usingget_deploymentfor its commit. What changed between the two commits is usually the cause. - Check project settings with
get_project: framework, root directory, build command and Node.js version. - Use
search_vercel_documentationfor platform-specific errors.
Report
The error line quoted, the cause, and the fix: a code change when the repo is open, or the exact setting to change in the dashboard. Then say how to redeploy, by pushing a commit or using Redeploy in the dashboard.
Vercel tools it uses
list_deploymentsget_deployment_eventsget_deploymentget_projectsearch_vercel_documentation
Tool list from Vercel MCP documentation.
FAQ
Can it redeploy after fixing?
It fixes the code in your repo; you push the commit or press Redeploy, because the MCP tools are read-only.
What if the error is in Vercel settings?
It names the exact setting, such as root directory, Node.js version or build command, and where to change it.