CCDV-P Study Guide
8. Domain 8: Agent Fleet Operations for Software Delivery
8.4. 8.4 Organization-wide coding agent configuration: managed settings, MCP allowlists, telemetry, routing and governance
CCDV-P · Domain 8 · Lesson 8.4 · 21 min read
Managed settings teams cannot override, MCP allowlists, fleet telemetry, gateway or direct routing, and a review bar for shared Skills and plugins.
Why 1,400 engineers cannot each configure their own agent
Arden Health System runs eleven hospitals and the software behind them: scheduling, test results, billing, the patient portal. Its engineering organization of 1,400 people in 30 teams spent two months piloting Claude Code with four teams and 120 engineers. The pilot worked. Then Rafael, the infrastructure engineer who owns the company-wide rollout, sat down with Ingrid from the security team to review it.
What they found was not one bad decision but 120 private ones. Engineers had connected 37 different MCP servers, nine of them from public repositories nobody at Arden had read. Two engineers ran sessions with every permission check skipped, one of them in a repository that holds de-identified patient fixtures under HIPAA rules. Finance could see one monthly bill and nothing about which team spent it. Each team had written its own Skills, and three teams had written the same deployment checklist three different ways.
Ingrid's condition for the rollout is short: the security team approves every MCP server, and no repository with patient data runs an agent with weaker settings than the policy. A wiki page cannot deliver that, and neither can a line in each team's instructions to Claude. Some rules have to be enforced by the client on every machine, whatever a developer or a repository says.
That is organization-wide configuration: a policy layer that the organization deploys and Claude Code enforces above every developer and project setting. Around it sit telemetry that shows what the fleet actually does, a chosen route to the model, and a review process for what teams share.
Settings layers: who wins when the organization and a developer disagree
Here is the question that decides every later design choice: when a developer's settings say one thing and the organization's say another, which one applies? Claude Code reads settings from several scopes, each a JSON file with its own audience, and resolves conflicts by a fixed precedence.
Settings precedence, highest first
--settings for one session.claude/settings.local.json, one person.claude/settings.json, committed~/.claude/settings.json, every projectManaged settings sit on top. They reach a machine in one of three admin-controlled ways. Server-managed settings are fetched from the claude.ai admin console on Teams and Enterprise plans. An MDM or OS-level policy is the com.anthropic.claudecode profile on macOS or the HKLM\SOFTWARE\Policies\ClaudeCode registry key on Windows. A managed-settings.json file sits in a system directory: /Library/Application Support/ClaudeCode/ on macOS, /etc/claude-code/ on Linux and WSL, C:\Program Files\ClaudeCode\ on Windows. By default Claude Code applies the highest-ranked source that delivers a policy and ignores the rest. Arden's laptops are all under MDM, so Rafael deploys the file through it.
Two rules make the layering subtle. First, list keys such as permissions.allow MERGE across scopes instead of overriding, so a team can add entries to a managed list but never remove one. Second, permission rules are evaluated deny, then ask, then allow, across every scope. A managed deny therefore beats any allow a team writes, and an allow can never carve an exception out of a deny.
That is why Arden can leave teams their own allow rules. Here is the core of Rafael's policy; look at the deny list, the bypass lock and the provider pin.
{
"forceLoginMethod": "claudeai",
"forceLoginOrgUUID": "<arden-organization-uuid>",
"allowedProviders": ["anthropic"],
"permissions": {
"deny": [
"Read(./.env)",
"Read(./.env.*)",
"Read(./secrets/**)",
"Read(./phi-fixtures/**)"
],
"disableBypassPermissionsMode": "disable"
},
"cleanupPeriodDays": 30
}
The login keys refuse any session that is not signed in to Arden's own Enterprise organization, including one that authenticates with a personal API key. disableBypassPermissionsMode turns off --dangerously-skip-permissions. Rafael deliberately does NOT set allowManagedPermissionRulesOnly, the lock that would ignore every non-managed permission rule: the deny rules hold anyway, and teams keep pre-approving their own test commands without a ticket.
Arden also deploys a managed CLAUDE.md with its coding standards. Developers cannot exclude it, but the docs are clear that it is context, not enforcement. Standards go in CLAUDE.md; anything that must hold goes in settings.
MCP allowlists: the security team approves, the client enforces
An MCP server gives the agent new tools, and a stdio server is a process running on the developer's machine. Anthropic reviews connectors for its directory but does not security-audit MCP servers, so the approval is Arden's job. How does Ingrid's team turn "we approve every server" into something the client checks?
Claude Code offers a range of patterns, from no MCP at all to no restrictions.
| Pattern | How it works | When it wins |
|---|---|---|
| Fixed deployment | A managed-mcp.json in the system directory; only its servers load and users cannot add any |
A small, stable set that every engineer needs |
| Provided servers | managedMcpServers in managed settings; remote HTTPS servers every user gets, alongside their own |
Shared servers without taking away personal ones |
| Approved catalog | allowedMcpServers plus allowManagedMcpServersOnly: true; users add what they need from the list |
Teams need different servers, all of them reviewed |
| Denylist only | deniedMcpServers; known-bad servers blocked, everything else allowed |
Low-risk environments with a few known problems |
Arden picks the approved catalog. Thirty teams need different servers (the pathology team needs a test-environment FHIR server, the billing team does not), so a fixed set would be too rigid, and a denylist only blocks what someone has already found to be bad.
How Claude Code decides whether an MCP server loads
serverUrl, stdio must match serverCommandThe lock matters. Without allowManagedMcpServersOnly, allowlists from every scope merge, so any engineer can broaden the list from ~/.claude/settings.json. The denylist always merges from every scope, which is safe: users can only block more.
How entries match matters as much. A serverName entry matches the label the user typed in claude mcp add, so anyone can call any server github; the docs warn it is not a security control. Ingrid's list uses serverUrl patterns for remote servers and exact serverCommand arrays for local ones.
{
"allowManagedMcpServersOnly": true,
"allowedMcpServers": [
{ "serverUrl": "https://mcp.arden.example/*" },
{ "serverUrl": "https://fhir-sandbox.arden.example/*" },
{ "serverCommand": ["/opt/arden/bin/schema-docs-mcp", "--read-only"] }
]
}
Once a serverUrl entry exists, every remote server must match a URL, and once a serverCommand entry exists, every stdio server must match a command exactly, argument for argument. An unset allowedMcpServers allows everything, while an empty array allows nothing.
Telemetry for the whole fleet
Once 1,400 engineers are running agents, Rafael needs answers to three questions: who uses it, what it costs per team, and which tools and servers the fleet actually calls. Each team configuring its own exporter would give him thirty partial answers, so telemetry is configured centrally too.
Claude Code exports OpenTelemetry (OTel, the vendor-neutral standard for metrics, logs and traces) when CLAUDE_CODE_ENABLE_TELEMETRY is set. Administrators put the variables in the managed env block, so every machine reports to the same collector. Claude Code ignores the exporter variables in a repository's .claude/settings.json and .claude/settings.local.json, so no repository can turn telemetry on, redirect it or start capturing content. A managed endpoint also removes any endpoint a developer sets. The exporter selectors are the exception: they follow normal precedence, so a developer could switch a signal to none unless managed settings set them too, which is why Rafael's block includes both.
{
"env": {
"CLAUDE_CODE_ENABLE_TELEMETRY": "1",
"OTEL_METRICS_EXPORTER": "otlp",
"OTEL_LOGS_EXPORTER": "otlp",
"OTEL_EXPORTER_OTLP_PROTOCOL": "grpc",
"OTEL_EXPORTER_OTLP_ENDPOINT": "https://otel.arden.example:4317",
"OTEL_LOG_TOOL_DETAILS": "1"
}
}
The metrics answer the cost and adoption questions: claude_code.session.count, claude_code.cost.usage, claude_code.token.usage, claude_code.lines_of_code.count, claude_code.pull_request.count, claude_code.commit.count and claude_code.active_time.total. Each record carries user.email and organization.id when available, so Arden's backend joins events to its staff directory and reports spend per team. Events such as claude_code.tool_decision and claude_code.api_error show permission decisions and failures as they happen.
The privacy defaults matter at a hospital. Prompt text stays redacted unless OTEL_LOG_USER_PROMPTS is set, and tool content and raw API bodies have their own off-by-default switches. Arden leaves all three off, because a prompt about a failing test can quote a fixture. It does turn on OTEL_LOG_TOOL_DETAILS, which reveals MCP server and tool names (otherwise reported as custom). That flag also logs tool input such as Bash commands, so Arden treats the telemetry store as sensitive: restricted readers and a fixed retention.
For leadership, the Teams and Enterprise analytics dashboard on claude.ai shows adoption and contribution metrics without any infrastructure, and the Enterprise Analytics API returns per-user usage for finance.
Routing: direct, through a gateway, or through a cloud platform
Which path should requests take from 1,400 laptops to the model? Three architectures are on the table, and each fits a different requirement.
| Route | When it wins | What it costs |
|---|---|---|
| Direct, on a Claude Teams or Enterprise plan | You want claude.ai sign-in, server-managed settings, the analytics dashboard and features that need a claude.ai account | Attribution and budgets come from the plan's own controls and your telemetry |
Through an LLM gateway (ANTHROPIC_BASE_URL) |
You need one place for provider credentials, per-team budgets, a request-level audit log, or switching providers without touching laptops | You operate the gateway and must keep it forwarding the headers and features each Claude Code release uses |
| Through a cloud platform (Amazon Bedrock, Google Cloud's Agent Platform, Microsoft Foundry) | You want to inherit existing cloud compliance controls and billing | Features that need a claude.ai account, such as cloud sessions started with --cloud, are not available on cloud credentials alone |
A gateway is a proxy you run between Claude Code and the provider: developers hold gateway credentials, the provider key stays server-side, and every request passes one point where it can be logged and budgeted. To make it the only route, managed settings set allowedProviders to ["customEndpoint"] and pin ANTHROPIC_BASE_URL in the managed env block; Claude Code then refuses a session pointed anywhere else.
For most organizations a gateway's audit log would be attractive. Arden's requirement decides otherwise. Arden has a Business Associate Agreement with Anthropic and the HIPAA configuration on its Enterprise plan, and that configuration takes effect only when a developer signs in with a Claude Enterprise account and Claude Code connects directly to the Claude API. Sessions through a gateway, a cloud platform or any custom ANTHROPIC_BASE_URL do not get it. That is why Rafael's policy pins allowedProviders to ["anthropic"]. Per-team cost comes from telemetry instead, and the decision record names the requirement that ruled the gateway out.
Governance for shared Skills, plugins and MCP servers
The pilot's three deployment checklists show the other half of the problem. Teams will share prompts, Skills and MCP servers whether or not there is a process, so the question is whether sharing has a quality and safety bar. A plugin bundles Skills, commands, agents, hooks and MCP servers for distribution through a marketplace, a catalog Claude Code fetches from a git repository or URL. A plugin can run arbitrary code with the user's privileges, and auto-update can change the files after you reviewed them.
Arden treats each shared artefact as software with a lifecycle.
Arden's path for a shared Skill, plugin or MCP server
.mcp.json, bin/; quality runs its eval casesThe quality bar asks whether the artefact does its job: a Skill ships with a handful of test tasks and expected outcomes, and the reviewer runs them. The safety bar asks what it can reach: which commands its hooks run, which hosts its servers call, whether it touches patient data. Every artefact has a named owning team, a version, and a retirement date when it is replaced.
Managed settings make the process the only path. strictKnownMarketplaces allows plugins only from Arden's own marketplace repository, extraKnownMarketplaces and enabledPlugins install the approved ones on every machine, and disableSideloadFlags rejects --plugin-dir and similar one-run loaders. Release channels are two marketplaces whose entries point at different refs of the same plugins, delivered to different groups. In Arden's stable marketplace each plugin source pins a reviewed tag with the optional ref field (or an exact commit with sha), while the early-access marketplace tracks a branch. Auto-update on the stable channel is then safe: it moves only when a reviewer moves the pinned tag.
Not everything is central. The line Arden draws:
What Arden enforces centrally and what it leaves to teams
Enforced centrally
Left to teams
CLAUDE.md and hooksThe exam traps
Every trap here either puts a rule where nothing enforces it or enforces it in a way someone can quietly undo.
- ✗ Publishing the security policy in a wiki or a managed
CLAUDE.md. ✓ Put rules that must hold in managed settings.CLAUDE.mdis context the model reads; the client enforces settings regardless of what the model decides. - ✗ Allowlisting MCP servers by
serverName. ✓ Match remote servers byserverUrland local ones byserverCommand. A name is whatever label the user typed. - ✗ Deploying
allowedMcpServersin managed settings and stopping there. ✓ AddallowManagedMcpServersOnly: true. Without it, every user's own allowlist merges in and broadens yours. - ✗ Asking each team to commit the OpenTelemetry exporter settings to its repositories. ✓ Set them in the managed
envblock. Claude Code ignores exporter variables in project files, and thirty copies drift. - ✗ Turning on prompt and raw-body logging so the fleet is "fully observable". ✓ Keep content off by default and enable only the detail a question needs. Prompts in a regulated codebase can carry the data you are protecting.
- ✗ Routing every session through a gateway for its audit log without checking what the route changes. ✓ Choose the route from the requirement. A gateway changes billing, feature availability and, at Arden, eligibility for the HIPAA configuration.
Put it together: enforce a policy and watch it hold
You now have every piece. Precedence puts managed settings on top and deny rules come first; the MCP allowlist cannot be widened and telemetry cannot be redirected; the route follows a requirement, and shared work has a governance path. The fastest way to own them is to enforce a small policy on one machine and try to get around it.
The rest of the domain runs under this policy. Parallel agents on worktrees (8.1) inherit the same deny rules in every worktree. The AI reviewer (8.2) is one more shared artefact that goes through review before it gates anything, and unattended runs (8.3) read the same managed settings with nobody there to answer a prompt. Identity and secrets practice (7.3) supplies the credentials your managed MCP servers authenticate with, per user rather than shared.
Key takeaways
- ✓ Managed settings override every developer, project and command-line value, delivered by the admin console, MDM or a system
managed-settings.jsonfile. - ✓ List settings merge across scopes and deny rules are evaluated before allow rules everywhere, so central deny rules hold while teams keep their own allow rules.
- ✓ An MCP allowlist is authoritative only with
allowManagedMcpServersOnly: true, and it matches byserverUrlorserverCommand, never by name; the denylist always wins. - ✓ Configure OpenTelemetry in the managed
envblock so no repository can redirect it, and keep prompt and content logging off unless a question requires it. - ✓ Choose direct, gateway or cloud-platform routing from the requirement, and enforce it with
allowedProviders. - ✓ Treat shared Skills, plugins and MCP servers as owned, reviewed, pinned and staged software, with marketplace allowlists making review the only path in.
Practise this
Practice questions for CCDV-P are being written and are not in this course yet. Read this lesson on the web to answer its check questions, with every option explained: https://claude.termidy.com/learn/ccdv-p/agent-fleet-operations/org-wide-coding-agent-configuration/.
Sources
- Settings files and precedence
- Deploy managed settings
- Set up Claude Code for your organization
- Configure permissions
- Control MCP server access for your organization
- Monitoring usage
- Other LLM gateways
- Set up Claude Code for a HIPAA-ready organization
- Manage Claude Code plugins for your organization
- Plugin security and trust
- How Claude remembers your project
- Security