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
| Name | Type | Description |
|---|---|---|
sessionId required | string | The unique identifier of the session to update the network… |
teamId | string | The Team identifier to perform the request on behalf of. |
slug | string | The Team slug to perform the request on behalf of. |
mode required | allow-all | deny-all | custom | default-allow | default-deny | The network access policy mode. Use \"allow-all\" to permit all outbound… |
allowedDomains | array | List of domain names the sandbox is allowed to connect to. Only applies when… |
allowedCIDRs | array | List of IP address ranges (in CIDR notation) the sandbox is allowed to connect… |
deniedCIDRs | array | List of IP address ranges (in CIDR notation) the sandbox is blocked from… |
injectionRules | array | HTTP 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:
{
"name": "vercel_api__update_session_network_policy",
"arguments": {
"sessionId": "…",
"mode": "…"
}
}Or connect the Vercel API server directly, which lists 472 tools including this one:
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 ….