GitHub Copilot: managed-settings.json
PromptReports ID makes GitHub Copilot's managed-settings.json from your org's agent policy. Your device management puts it on each machine, where GitHub Copilot reads it.
State: Planned: built behind AGENT_POLICY, which is off
PromptCompute built the policy and these files behind the AGENT_POLICY switch, which is off in production. Until it is on, the Agent policy page and the downloads are not served.
What it holds
allowedMcpServers names each server by serverUrl or serverCommand, with allowManagedMcpServersOnly.
permissions.ask holds Shell(<pattern>) for a shell command, Edit(<pattern>) for a file path and Shell(git commit *) for a commit.
How device management pushes it
- An owner or admin sets the org's agent policy on the Agent policy page at PromptReports ID, or through
set_agent_policyon the family MCP. Each change is an approval in the credentials class: an owner or admin other than the person who asked decides it, never an agent, and the applied change is anagent_policy.appliedentry in the org's signed ledger. - Download
copilot-managed-settings.jsonfrom the Agent policy page. Any member of the org may download it, from an address the org allows. The ID serves it atGET /v1/agent-policy/files/copilot-settings?org_id=<org id>. - In your device management, put it at
/Library/Application Support/GitHubCopilot/managed-settings.jsonon macOS,/etc/github-copilot/managed-settings.jsonon Linux and%ProgramFiles%\GitHubCopilot\managed-settings.jsonon Windows. - Download it again after each change to the policy and push the new copy. The
X-Agent-Policy-Versionheader names the policy version the file was made from, and theETagchanges whenever the file's bytes do.
What GitHub Copilot cannot enforce from it
Copilot has no rule for one MCP tool, so tool lists and mcp patterns are left to the gateway. A shell rule matches a prefix (git push *) or exact text, so a pattern with a wildcard inside asks for its leading words; one that starts with a wildcard is left to the hook package. A commit rule asks for every commit.
From the example policy
{
"allowedMcpServers": [
{
"serverUrl": "https://api.githubcopilot.com/mcp/"
},
{
"serverCommand": [
"npx",
"-y",
"@modelcontextprotocol/server-filesystem",
"."
]
}
],
"allowManagedMcpServersOnly": true,
"permissions": {
"ask": [
"Shell(npm run *)",
"Edit(infra/**)",
"Shell(git commit *)"
]
}
}
The example policy is on the agent policy page.
Docs: https://docs.github.com/en/copilot/reference/enterprise-administrators/enterprise-managed-settings, https://docs.github.com/en/copilot/how-tos/administer-copilot/manage-mcp-usage/configure-enterprise-allowlist