vercel

v0.1.3
com.pulsemcp/vercel Checked 1 hour ago Published 5 months ago

MCP server for Vercel — manage deployments and view build and runtime application logs.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_deployments

List Vercel deployments with optional filtering by project, target environment, and state. Returns deployment ID, name, URL, state, creator, and creation time for each deployment. Supports pagination via the "until" parameter. **Example response:** ```json { "deployments": [ { "uid": "dpl_abc123", "name": "my-app", "url": "my-app-abc123.vercel.app", "state": "READY", "target": "production", "created": 1700000000000 } ], "pagination": { "count": 20, "next": 1699999000000 } } ``` **Use cases:** - List all recent deployments for a project - Fin…

ParameterTypeDescription
appstringFilter by deployment name (the project name used in the URL). Example: "my-app"
limitnumberMaximum number of deployments to return (1-100). Default: 20. Use with pagination to page through results.
projectIdstringFilter by project ID or name (e.g., "prj_abc123" or "my-app"). When set, only deployments for this project are returned.
statestringFilter by deployment state. Options: "BUILDING", "ERROR", "INITIALIZING", "QUEUED", "READY", "CANCELED". Omit to return deployments in any state.
targetstringFilter by deployment target environment. Options: "production", "preview". Omit to return deployments for all targets.
untilnumberReturn deployments created before this timestamp (milliseconds since epoch). Used for pagination: pass the "next" value from a previous response.

get_deployment

Get detailed information about a specific Vercel deployment. Returns comprehensive deployment data including state, aliases, regions, git source info, and inspector URL. **Example response:** ```json { "uid": "dpl_abc123", "name": "my-app", "url": "my-app-abc123.vercel.app", "state": "READY", "readyState": "READY", "target": "production", "alias": ["my-app.vercel.app", "my-app-production.vercel.app"], "regions": ["iad1", "sfo1"], "inspectorUrl": "https://vercel.com/team/my-app/dpl_abc123", "created": 1700000000000 } ``` **Use cases:** - Check the current state of a speci…

ParameterTypeDescription
idOrUrl *stringThe deployment ID (e.g., "dpl_abc123") or deployment URL (e.g., "my-app-abc123.vercel.app"). Use the deployment ID from list_deployments or the URL shown in the Vercel dashboard.

list_projects

List Vercel projects in the account or team. Returns project IDs, names, and framework information. Useful for looking up project IDs needed by other tools like promote_deployment, rollback_deployment, and get_runtime_logs. **Example response:** ```json { "projects": [ { "id": "prj_abc123", "name": "my-app", "framework": "nextjs" }, { "id": "prj_def456", "name": "my-api", "framework": "other" } ], "pagination": { "count": 2, "next": null } } ``` **Use cases:** - Look up the project ID for use with promote, rollback, or log tools - Browse all projects in the account or team - S…

ParameterTypeDescription
limitnumberMaximum number of projects to return (1-100). Default: 20.
searchstringSearch projects by name. Example: "my-app"
untilnumberReturn projects created before this timestamp (milliseconds since epoch). Used for pagination.

get_deployment_events

Get build logs (events) for a Vercel deployment. Returns the build output events including commands run, stdout/stderr output, and deployment state changes. Use this to debug build failures or review the build process. **Example response:** ```json [ { "type": "command", "created": 1700000000000, "payload": { "text": "npm run build" } }, { "type": "stdout", "created": 1700000001000, "payload": { "text": "Build completed" } }, { "type": "deployment-state", "created": 1700000002000, "payload": { "text": "READY" } } ] ``` **Event types:** command, stdout, stderr, exit, deployment-state,…

ParameterTypeDescription
idOrUrl *stringThe deployment ID (e.g., "dpl_abc123") or URL to get build logs for.
directionstringOrder of events. "forward" (oldest first) or "backward" (newest first). Default: "forward".
limitnumberMaximum number of events to return. Use -1 for all events. Default: 100.

get_runtime_logs

Get runtime (application) logs for a Vercel deployment. Returns runtime log entries including serverless function invocations, edge function logs, and request/response information. Supports filtering by time range, log level, source, status code, search text, and environment. **Log retention varies by plan:** Hobby=1 hour, Pro=1 day, Enterprise=3 days. With Observability Plus add-on, up to 30 days (14 consecutive days queryable). **Example response:** ```json [ { "message": "GET /api/health 200 in 12ms", "timestampInMs": 1700000000000, "source": "serverless", "level": "inf…

ParameterTypeDescription
deploymentId *stringThe deployment ID to get runtime logs for (e.g., "dpl_abc123"). Must be a READY deployment with recent traffic.
projectId *stringThe project ID (e.g., "prj_abc123"). Use list_projects to find project IDs.
directionstringLog retrieval direction: "forward" (oldest first) or "backward" (newest first, default).
environmentstringFilter by deployment environment: "production" or "preview".
levelstringFilter by log level: "info", "warning", "error", or "fatal".
limitnumberMaximum number of log entries to return (e.g., 100). Defaults to server-side limit if not specified.
searchstringSearch query string to filter log messages (e.g., "error", "timeout", "/api/users").
sincenumberReturn logs after this Unix timestamp in milliseconds (e.g., 1700000000000). Useful for querying historical logs within your plan retention window.
sourcestringFilter by log source: "serverless", "edge-function", "edge-middleware", or "static".
statusCodenumberFilter by HTTP response status code (e.g., 500 to see server errors, 404 for not found).
untilnumberReturn logs before this Unix timestamp in milliseconds (e.g., 1700100000000). Use with "since" to define a time range.

create_deployment

Create a new Vercel deployment or redeploy an existing one. Can create deployments from a git source or by redeploying a previous deployment ID. Returns the newly created deployment with its ID, URL, and initial state. **Example response:** ```json { "uid": "dpl_new789", "name": "my-app", "url": "my-app-new789.vercel.app", "state": "BUILDING", "target": "production", "created": 1700000000000 } ``` **Use cases:** - Redeploy a previous deployment to the same or different target - Trigger a new deployment from a specific git branch - Create a preview deployment for testing - Deploy…

ParameterTypeDescription
name *stringThe project name for the deployment (used in the deployment URL). Example: "my-app"
deploymentIdstringID of a previous deployment to redeploy. The new deployment will use the same source. Example: "dpl_abc123"
gitRefstringGit branch or tag to deploy from. Example: "main", "feature/new-ui"
gitRepoIdstringGit repository ID (from Vercel project settings). Required when using gitRef.
gitTypestringGit provider type. Options: "github", "gitlab", "bitbucket". Required when using gitRef.
targetstringDeployment target environment. Options: "production", "preview", "staging". Default: "preview" if not specified.

cancel_deployment

Cancel an in-progress Vercel deployment. Only deployments in BUILDING or QUEUED state can be canceled. Returns the deployment with updated CANCELED state. **Example response:** ```json { "uid": "dpl_abc123", "name": "my-app", "state": "CANCELED", "readyState": "CANCELED" } ``` **Use cases:** - Stop a deployment that was triggered by mistake - Cancel a build that is taking too long - Abort a deployment to a wrong environment

ParameterTypeDescription
deploymentId *stringThe ID of the deployment to cancel (e.g., "dpl_abc123"). Only deployments in BUILDING or QUEUED state can be canceled.

delete_deployment

Delete a Vercel deployment permanently. This action is irreversible. The deployment URL will no longer be accessible after deletion. **Example response:** ```json { "uid": "dpl_abc123", "state": "DELETED" } ``` **Use cases:** - Remove old or unused deployments - Clean up failed or test deployments - Delete sensitive deployments that should no longer be accessible

ParameterTypeDescription
deploymentId *stringThe ID of the deployment to delete (e.g., "dpl_abc123"). This action is irreversible.

promote_deployment

Promote a Vercel deployment to production. Promotes an existing READY deployment to production without rebuilding it. The promoted deployment will serve traffic on the production domain. **Note:** This does NOT rebuild the deployment. To deploy new code, use create_deployment instead. **Use cases:** - Promote a preview deployment that has been verified to production - Move a staging deployment to production after testing - Quickly switch production to a known-good deployment

ParameterTypeDescription
deploymentId *stringThe deployment ID to promote to production (e.g., "dpl_abc123"). The deployment must be in READY state. This does NOT rebuild the deployment.
projectId *stringThe project ID (e.g., "prj_abc123"). Use list_projects to find project IDs.

rollback_deployment

Rollback to a previous Vercel deployment. Rolls back the project's production deployment to the specified deployment. The target deployment will become active and serve production traffic. **Use cases:** - Quickly revert production to a known-good deployment after a regression - Undo a broken production deployment - Restore a previous version while investigating an issue

ParameterTypeDescription
deploymentId *stringThe deployment ID to rollback TO (e.g., "dpl_abc123"). This deployment will become the active production deployment.
projectId *stringThe project ID (e.g., "prj_abc123"). Use list_projects to find project IDs.
descriptionstringOptional reason for the rollback. Useful for audit trails. Example: "Rolling back due to regression in v2.1"