Graphrt

Vercel

Deployments (list, inspect, build logs, cancel), projects, domains and DNS config check, environment variables, redeploys and deletes node only, secrets unreachable by agent tools

Beta v0.1.0 Node.js 21 actions
Use in Graphrt Desktop

About

A Graphrt plugin for the Vercel REST API. It lists and inspects deployments and their build logs, cancels or redeploys them, reads projects and domains, adds project domains, and manages environment variables from workflow nodes. It is built with the declarative REST layer (definition.mjs) plus two small wrappers (lib/vercel-wrappers.mjs).

What it can do

  • Account and projects: get_user, list_teams, list_projects, get_project
  • Deployments: list_deployments, get_deployment, list_deployment_events (build logs), cancel_deployment, redeploy (node only), delete_deployment (node only)
  • Environment variables (node only): list_env_vars, get_env_var, create_env_var, update_env_var, delete_env_var
  • Domains: list_domains, get_domain, get_domain_config (misconfiguration check), list_project_domains, add_project_domain
  • api_request: any other endpoint on api.vercel.com (agents: GET only, on an allowlist of non-secret paths)

Actions

Each action is a step you can add to a workflow. Agents can also use most of them as tools.

  • Current user vercel.get_user
  • List teams vercel.list_teams
  • List projects vercel.list_projects
  • Get project vercel.get_project
  • List deployments vercel.list_deployments
  • Get deployment vercel.get_deployment
  • Deployment build logs vercel.list_deployment_events
  • Cancel deployment vercel.cancel_deployment
  • Redeploy vercel.redeploy
  • Delete deployment vercel.delete_deployment
Show all 21 actions
  • List environment variables vercel.list_env_vars
  • Get environment variable vercel.get_env_var
  • Create environment variable vercel.create_env_var
  • Update environment variable vercel.update_env_var
  • Delete environment variable vercel.delete_env_var
  • List domains vercel.list_domains
  • Get domain vercel.get_domain
  • Domain DNS configuration vercel.get_domain_config
  • List project domains vercel.list_project_domains
  • Add project domain vercel.add_project_domain
  • Vercel REST API request vercel.api_request

Settings

Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.

  • VERCEL_TOKEN Required
    Access token (Authorization: Bearer)
  • VERCEL_TEAM_ID Optional
    Default team (team_...) sent as teamId when a call has no team_id (also for api_request, unless its query names teamId or slug)
  • VERCEL_TOOL_ALLOW_WRITE Optional
    1 lets agent tools cancel deployments and add project domains
  • VERCEL_TOOL_API_EXTRA_PATHS Optional
    More read paths for agent api_request, comma-separated, * = one segment
  • VERCEL_TOOL_TOKEN_SOURCE

How to use it

In Graphrt Desktop

  1. Open Plugins and search for Vercel.
  2. Click Install and approve it.
  3. Follow the setup steps on the plugin's page, then paste the settings it needs.
  4. Describe a job that needs it, and the builder adds the steps.
Plugins in Graphrt Desktop

With the CLI

terminal
$ graphrt plugin install vercel
workflow.yaml
- id: failed
  type: vercel.list_deployments
  project_id: web
  state: ERROR
  limit: 1
- id: logs
  type: vercel.list_deployment_events
  id_or_url: "{{#failed.data.0.uid#}}"
  direction: backward
  max_events: 100
Plugins in the docs