Agent Connector Access Policy
Stratégie d’accès du connecteur d’agent
Explanation
This policy setting allows you to define a list of allowed connections between MCP hosts and MCP servers.
The format of this list will be a JSON string that adheres to the schema at https://go.microsoft.com/fwlink/?LinkId=2363700.
If this policy is not configured, the MCP host may connect to any MCP server with user consent.
Ce paramètre de stratégie vous permet de définir une liste de connexions autorisées entre les hôtes MCP et les serveurs MCP.
Le format de cette liste est une chaîne JSON qui respecte le schéma disponible à l’adresse https://go.microsoft.com/fwlink/?LinkId=2363700.
Si cette stratégie n’est pas configurée, l’hôte MCP peut se connecter à n’importe quel serveur MCP avec le consentement de l’utilisateur.
Use cases
Defines the list of allowed connections between MCP hosts (the agents) and MCP servers on the device, as a JSON string that follows the schema given in the policy description. When not configured, an MCP host can connect to any MCP server with user consent; configuring it lets you allow only vetted pairs.
Background: the Windows On-device Agent Registry (ODR) lets apps discover local or remote MCP servers, and Microsoft says administrators can control which agents reach which servers and can log those interactions. The documentation notes that some information concerns prerelease features that may change: re-read the schema before freezing a list.
Microsoft source: Model Context Protocol (MCP) on Windows overview
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsAI- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: CAM_AI/AgentConnectorAccessPolicy
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsAI'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Configure allowed MCP Host/Server connections
Set-ItemProperty -Path $k -Name 'AgentConnectorAccessPolicy' -Value '<value>' -Type StringDisable
# Disable: CAM_AI/AgentConnectorAccessPolicy
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": CAM_AI/AgentConnectorAccessPolicy
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsAI'
Remove-ItemProperty -Path $k -Name 'AgentConnectorAccessPolicy' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Configure allowed MCP Host/Server connections:Configurer les connexions hôte/serveur MCP autorisées :AgentConnectorAccessPolicy_Name | Text boxtext | AgentConnectorAccessPolicy | REG_SZ |