The mcp policy object

⚠️
Preview — this feature is being built; the design below is the spec.

The mcp_policy object as the API returns it. Every field below appears in every response that returns this object; fields with no value are null rather than missing.

Example

{
  "type": "mcp_policy",
  "mode": "allowlist",
  "allowed_servers": [
    {
      "url_prefix": "https://mcp.example.com/",
      "note": "Internal CRM"
    },
    {
      "tunnel_id": "tnl_01JCE4G6J8L0N2Q4S6U8",
      "note": "On-prem ERP"
    }
  ],
  "require_tunnel_for_private": true,
  "updated_at": "2026-11-05T10:00:00Z"
}

Fields

FieldTypeDescription
typestringThe object type, always mcp_policy.
modestringopen (any public HTTPS server), allowlist (only listed servers and tunnels) or disabled (the mcp_servers field is refused).
allowed_serversarrayEntries with either url_prefix or tunnel_id.
require_tunnel_for_privatebooleanRefuse servers on private addresses unless reached through an MCP tunnel.
updated_atstringWhen it last changed.

Returned by

Was this page helpful?