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
- 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
managed-mcp.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/claude-code-mcp?org_id=<org id>. - In your device management, put it at
/Library/Application Support/ClaudeCode/managed-mcp.jsonon macOS,/etc/claude-code/managed-mcp.jsonon Linux andC:\Program Files\ClaudeCode\managed-mcp.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 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.