Home / Servers / Vercel API / update_session_network_policy

Update network policy

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

Update network policy Replaces the network access policy of a running session. Use this to control which external hosts the session can communicate with. This is a full replacement. Any previously configured network… [POST /v2/sandboxes/sessions/{sessionId}/network-policy]

Name on the gateway: vercel_api__update_session_network_policy · may change things.

Parameters

NameTypeDescription
sessionId requiredstringThe unique identifier of the session to update the network…
teamIdstringThe Team identifier to perform the request on behalf of.
slugstringThe Team slug to perform the request on behalf of.
mode requiredallow-all | deny-all | custom | default-allow | default-denyThe network access policy mode. Use \"allow-all\" to permit all outbound…
allowedDomainsarrayList of domain names the sandbox is allowed to connect to. Only applies when…
allowedCIDRsarrayList of IP address ranges (in CIDR notation) the sandbox is allowed to connect…
deniedCIDRsarrayList of IP address ranges (in CIDR notation) the sandbox is blocked from…
injectionRulesarrayHTTP header injection rules for outgoing requests matching specific domains.…

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__update_session_network_policy",
  "arguments": {
    "sessionId": "…",
    "mode": "…"
  }
}

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 update network policy tool with sessionId set to ….

More from Vercel API