PromptReports
Agent policy

Claude Code: managed-mcp.json

PromptReports ID makes Claude Code's managed-mcp.json from your org's agent policy. Your device management puts it on each machine, where Claude Code 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

Each server of the policy, as an http entry with its URL or a stdio entry with its command and arguments. Once the file is on a machine, Claude Code loads only these servers.

A policy with no servers gives { "mcpServers": {} }, which turns MCP off.

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 managed-mcp.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/claude-code-mcp?org_id=<org id>.
  3. In your device management, put it at /Library/Application Support/ClaudeCode/managed-mcp.json on macOS, /etc/claude-code/managed-mcp.json on Linux and C:\Program Files\ClaudeCode\managed-mcp.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 Claude Code cannot enforce from it

Claude Code loads only these servers. Tool lists and approvals are in managed-settings.json.

From the example policy

{
  "mcpServers": {
    "github": {
      "type": "http",
      "url": "https://api.githubcopilot.com/mcp/"
    },
    "files": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "."
      ]
    }
  }
}

The example policy is on the agent policy page.

Docs: https://code.claude.com/docs/en/managed-mcp