Home / Servers / Vercel API / create_custom_environment

Create a custom environment for the current project.

An MCP tool from the Vercel API server, hosted on mcp.hjlabs.in.

Create a custom environment for the current project. Creates a custom environment for the current project. Cannot be named 'Production' or 'Preview'. [POST /v9/projects/{idOrName}/custom-environments]

Name on the gateway: vercel_api__create_custom_environment · may change things.

Parameters

NameTypeDescription
idOrName requiredstringThe unique project identifier or the project name
teamIdstringThe Team identifier to perform the request on behalf of.
slugstringThe Team slug to perform the request on behalf of.
body_slugstringThe slug of the custom environment to create.
descriptionstringDescription of the custom environment. This is optional.
branchMatcherobjectHow we want to determine a matching branch. This is optional.
copyEnvVarsFromstringWhere to copy environment variables from. This is optional.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "vercel_api__create_custom_environment",
  "arguments": {
    "idOrName": "…"
  }
}

Or connect the Vercel API server directly, which lists 472 tools including this one:

Run in your terminal
claude mcp add --transport http hj-vercel-api https://mcp.hjlabs.in/mcp/vercel-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the create a custom environment for the current project. tool with idOrName set to ….

More from Vercel API