Home / Servers / Vercel API / edit_redirect

Edit a project-level redirect.

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

Edit a project-level redirect. Edits a single redirect identified by its source path. Stages a new change with the modified redirect and returns the alias for the new version in the response. [PATCH /v1/bulk-redirects]

Name on the gateway: vercel_api__edit_redirect · may change things.

Parameters

NameTypeDescription
projectId requiredstringprojectId parameter
teamIdstringThe Team identifier to perform the request on behalf of.
slugstringThe Team slug to perform the request on behalf of.
namestring
redirect requiredobjectThe redirect object to edit. The source field is used to match the redirect to…
restorebooleanIf true, restores the redirect from the latest production version to staging.

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__edit_redirect",
  "arguments": {
    "projectId": "…",
    "redirect": "…"
  }
}

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 edit a project-level redirect. tool with projectId set to ….

More from Vercel API