Skip to content
Docs

Deployments

Create and inspect deployments for your projects, including their files and build output. You can cancel a deployment or access a protected deployment to verify its content.

Cancel a deployment.

Parameters

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the deployment.
teamIdstringNoTeam ID to use for this operation.
slugstringNoTeam slug to use for this operation. Use instead of teamId.
requestBodyunknownNoRequest body for this tool.

Create a deployment from a Git source or files. Put name, project, gitSource or files, and projectSettings inside requestBody. Use requestBody.target: "production" for production, or omit target for a preview. Follow the tool's input schema for file formats and build settings.

Sample prompt: "Create a preview deployment of my project's main branch"

Parameters

ParameterTypeRequiredDescription
forceNewstringNoForces a new deployment even if there is a previous similar deployment. Set to 1 to bypass deployment deduplication and always trigger a fresh build. Allowed values: "0", "1".
skipAutoDetectionConfirmationstringNoSet to 1 to skip framework auto-detection and proceed without confirmation. By default, if Vercel detects a framework that differs from the project setting, the API returns a 400 asking you to confirm. Use this to suppress that check in automated pipelines. Allowed values: "0", "1".
teamIdstringNoTeam ID to use for this operation.
slugstringNoTeam slug to use for this operation. Use instead of teamId.
requestBodyobjectYesRequest body for this tool.

Deploy a small, simple project from inline file contents only when the Vercel CLI is unavailable and no usable remote git repository exists, or the user explicitly requests an inline file deployment. Prefer the Vercel CLI for local projects. It reads and uploads files directly without reproducing source as model output. If the intended source is pushed to a repository's production branch, use create_git_project. Do not reconstruct medium or large projects, binary assets, or dependency trees in tool arguments. This remote tool cannot read local paths or attachments. Files with actual contents are required. Limits: 300 files, 3 MiB per file, 4 MiB total encoded contents. Creation is asynchronous. Poll get_deployment until READY, ERROR, or CANCELED before reporting the build outcome.

Parameters

ParameterTypeRequiredDefaultDescription
targetstringYes-Required. "preview" for a shareable non-production URL, or "production" to go live. Allowed values: "preview", "production".
namestringYes-Project name. Vercel creates the project if it does not already exist.
filesArray<object>Yes-Required non-empty array of source files with their actual contents. A project name or local path alone cannot deploy. Do not include node_modules, .git, .env files, or secrets. Vercel installs dependencies and builds.
teamIdstringNo-The team ID or slug. Use the team that owns the resource.
projectSettingsobjectNo-Optional build settings. Omit to let Vercel auto-detect the framework.

This workflow is available on root connections that expose deploy_to_vercel. Project-scoped connections do not register it. Use create_deployment when your scoped connection exposes that tool.

Create a temporary shareable link that grants access to protected Vercel deployments.

ParameterTypeRequiredDefaultDescription
teamIdstringNo-The team ID or slug. Use the team that owns the resource.
urlstringYes-The full URL of the Vercel deployment (e.g. "https://myapp.vercel.app").

Sample prompt: "myapp.vercel.app is protected by auth. Please create a shareable link for it"

Get a deployment by ID or hostname.

ParameterTypeRequiredDescription
idOrUrlstringYesThe unique identifier or hostname of the deployment.
withGitRepoInfostringNoWhen true, the response includes the gitSource object with the commit SHA, branch name, and connected repository metadata. Defaults to false.
teamIdstringNoTeam ID to use for this operation.
slugstringNoTeam slug to use for this operation. Use instead of teamId.

Sample prompt: "Get details about my latest production deployment"

Workflow connection parameters

If your connection exposes the smaller workflow tool list, use these parameters instead. Follow your connection's tool schema.

ParameterTypeRequiredDefaultDescription
idOrUrlstringYes-The unique identifier or hostname of the deployment.
teamIdstringYes-The team ID or slug. Use the team that owns the resource.

Get the build logs for a deployment by ID or URL, to investigate why a build failed. Returns the most recent lines by default (where build errors appear). Use errorsOnly to see just the failing lines. Omit since and until for latest logs. Use since to narrow the window, and omit until when the end should be the current time.

Parameters

ParameterTypeRequiredDefaultDescription
idOrUrlstringYes-The unique identifier or hostname of the deployment.
directionstringNo"tail"Which end of the build log to return. "tail" (default) returns the most recent lines, where build errors appear. "head" returns the earliest lines. Allowed values: "tail", "head".
errorsOnlybooleanNofalseReturn only error, stderr, exit, and fatal events.
limitnumberNo100Maximum number of log lines to return.
sincestringNo-Start of the window as an ISO date or relative lookback from now (e.g. "1h", "30m").
untilstringNo-Optional end of the window as an ISO date, relative lookback, or "now". Omit this when the end should be the current time.
buildIdstringNo-Filter to a specific build ID (bld_...) for multi-build deployments.
teamIdstringYes-The team ID or slug. Use the team that owns the resource.

Retrieve the feature flags of a deployment.

Parameters

ParameterTypeRequiredDescription
deploymentIdstringYesThe deployment ID.
teamIdstringNoTeam ID to use for this operation.
slugstringNoTeam slug to use for this operation. Use instead of teamId.

Get Deployment File Contents.

Parameters

ParameterTypeRequiredDescription
idstringYesThe unique deployment identifier
fileIdstringYesThe unique file identifier
pathstringNoPath to the file to fetch (only for Git deployments)
teamIdstringNoTeam ID to use for this operation.
slugstringNoTeam slug to use for this operation. Use instead of teamId.

List your teams, their plans, linked Git projects, and connected Cursor Origin workspaces. This tool takes no parameters and is available on the root MCP connection.

Sample prompt: "Which of my Git repositories already have Vercel projects?"

This tool is available on the root connection. Project-scoped connections already bind a team and project and do not register this discovery tool.

Import a self-contained HTML bundle from Claude Design and deploy it to Vercel. The bundle must use a public HTTPS claudeusercontent.com URL and include all images, fonts, and styles.

ParameterTypeRequiredDefaultDescription
urlstringYes-Public HTTPS URL to the design file. Valid for ~1 hour. Fetched server-side.
titlestringNo-Suggested title for the imported design.
claude_design_project_idstringNo-Stable Claude Design project identifier. Reuse it to update the same imported Vercel project.

Sample prompt: "Import this Claude Design into Vercel: https://claudeusercontent.com/example"

Get deployment events, including build output. Use direction: "backward" for recent events and numeric timestamps for since and until.

ParameterTypeRequiredDescription
idOrUrlstringYesThe unique identifier or hostname of the deployment.
directionstringNoOrder of the returned events based on the timestamp. Allowed values: "backward", "forward". Default: "forward".
follownumberNoWhen enabled, this endpoint will return live events as they happen. Allowed values: 0, 1.
limitnumberNoMaximum number of events to return. Provide -1 to return all available logs.
namestringNoDeployment build ID.
sincenumberNoTimestamp for when build logs should be pulled from.
untilnumberNoTimestamp for when the build logs should be pulled up until.
statusCodenumber | stringNoHTTP status code range to filter events by.
delimiternumberNoAllowed values: 0, 1.
buildsnumberNoAllowed values: 0, 1.
teamIdstringNoTeam ID to use for this operation.
slugstringNoTeam slug to use for this operation. Use instead of teamId.

Sample prompt: "Show me the latest build logs for the failed deployment"

List Deployment Files.

Parameters

ParameterTypeRequiredDescription
idstringYesThe unique deployment identifier
teamIdstringNoTeam ID to use for this operation.
slugstringNoTeam slug to use for this operation. Use instead of teamId.

List deployments, optionally filtered by project.

ParameterTypeRequiredDescription
appstringNoName of the deployment.
fromnumberNoGets the deployment created after this Date timestamp. (default: current time)
limitnumberNoMaximum number of deployments to list from a request.
projectIdstringNoFilter deployments from the given ID or name.
projectIdsArray<string>NoFilter deployments from the given project IDs. Cannot be used when projectId is specified.
targetstringNoFilter deployments based on the environment.
tonumberNoGets the deployment created before this Date timestamp. (default: current time)
usersstringNoFilter out deployments based on users who have created the deployment.
sincenumberNoGet Deployments created after this JavaScript timestamp.
untilnumberNoGet Deployments created before this JavaScript timestamp.
statestringNoFilter deployments based on their state (BUILDING, ERROR, INITIALIZING, QUEUED, READY, CANCELED, BLOCKED)
rollbackCandidatebooleanNoFilter deployments based on their rollback candidacy
branchstringNoFilter deployments based on the branch name
shastringNoFilter deployments based on the SHA
teamIdstringNoTeam ID to use for this operation.
slugstringNoTeam slug to use for this operation. Use instead of teamId.

Sample prompt: "Show me deployments for my blog project"

Workflow connection parameters

If your connection exposes the smaller workflow tool list, use these parameters instead. Follow your connection's tool schema.

ParameterTypeRequiredDefaultDescription
projectIdstringYes-The project ID to list deployments for.
teamIdstringYes-The team ID or slug. Use the team that owns the resource.
sincenumberNo-Get deployments created after this timestamp.
untilnumberNo-Get deployments created before this timestamp.

Show deployments in a live card with expandable build logs. In clients without app support, receive the deployment state, preview URL, and commit as text. Track the latest deployment for a branch or commit until the build finishes.

This tool appears when your connection enables deployment cards. Pass a project ID or name, a repository URL, or a commit SHA. teamId can be omitted when the project identifies its team. Use branch and sha to track the source you just pushed. For repositories linked to multiple projects, select a project in the card. Calling the tool again refreshes the card.

The view parameter only accepts "preview". target filters production or preview deployments. A missing deployment is a separate state from a successful build.

Sample prompt: "Show the deployment for the branch and commit I just pushed."

Parameters

ParameterTypeRequiredDescription
viewstringNoThe deployment card view. Value: "preview".
teamIdstringNoThe team ID or slug. Use the team that owns the resource.
projectIdstringNoThe project ID or name. Read projectId from .vercel/project.json when the repository has one. Without it, pass repo for a preview instead of guessing, or use a project name the user gave. Required unless a preview call has repo or sha.
branchstringNoThe git branch name.
shastringNoThe full git commit SHA.
repostringNoPreview only. The git remote URL or owner/name (git remote get-url origin). Finds the linked project when projectId is unknown, even before the deployment exists.
targetstringNoOnly consider deployments for this environment. Allowed values: "production", "preview".

The deployments card uses this app-only tool to read its latest build-log lines. App-capable clients expose it to the card. Use get_deployment_build_logs for the standalone workflow when your connection exposes it.

This tool appears with the deployments card. Its response includes log entries and latestAt. Pass the previous latestAt as since to fetch newer events. Build logs are separate from runtime logs.

Parameters

ParameterTypeRequiredDescription
teamIdstringYesThe team ID or slug. Use the team that owns the resource.
idOrUrlstringYesThe unique identifier or hostname of the deployment.
limitintegerNoHow many of the most recent log lines to return. Defaults to 120. Minimum: 1. Maximum: 1000.
sincenumberNoOnly events after this timestamp (ms), oldest first, so a live view can fetch just what is new. Pass the previous latestAt.

Upload Deployment Files.

Parameters

ParameterTypeRequiredDescription
contentLengthnumberNoThe file size in bytes
xVercelDigeststringNoThe file SHA1 used to check the integrity
xNowDigeststringNoThe file SHA1 used to check the integrity
xNowSizenumberNoThe file size as an alternative to Content-Length
teamIdstringNoTeam ID to use for this operation.
slugstringNoTeam slug to use for this operation. Use instead of teamId.
requestBodystringNoProvide this binary value as a base64 string.

Fetch content directly from a Vercel deployment URL (with authentication if required).

ParameterTypeRequiredDefaultDescription
urlstringYes-The full URL of the Vercel deployment including the path (e.g. "https://myapp.vercel.app/my-page").

Sample prompt: "Make sure the content from my-app.vercel.app/api/status looks right"


Was this helpful?

supported.