PromptReports
Agent policy

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

  1. An owner or admin sets the org's agent policy on the Agent policy page at PromptReports ID, or through set_agent_policy on 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 an agent_policy.applied entry in the org's signed ledger.
  2. Download copilot-managed-settings.json from the Agent policy page. Any member of the org may download it, from an address the org allows. The ID serves it at GET /v1/agent-policy/files/copilot-settings?org_id=<org id>.
  3. In your device management, put it at /Library/Application Support/GitHubCopilot/managed-settings.json on macOS, /etc/github-copilot/managed-settings.json on Linux and %ProgramFiles%\GitHubCopilot\managed-settings.json on Windows.
  4. Download it again after each change to the policy and push the new copy. The X-Agent-Policy-Version header names the policy version the file was made from, and the ETag changes 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