Skip to content

Org Rollout

github-actions[bot] edited this page Nov 5, 2026 · 3 revisions

Org rollout with managed settings

Since 0.20.0.

Marketplace output reaches a team through each repository's .claude/settings.json: a teammate who opens the project and trusts the folder is prompted to install the plugins. To install the same plugins for everyone in an organization, whatever repository they open, deploy them as managed settings: an org policy file that Claude Code and GitHub Copilot read above every user and project setting.

bluetemberg managed-settings writes those files from the project's config and lockfile. It does not install them. An admin deploys them with MDM, a file push or the host's own admin console. bluetemberg sync never writes them, and the command adds nothing to bluetemberg.config.json.

flowchart LR
  config["bluetemberg.config.json<br/>marketplace.remote"] --> sync["bluetemberg sync"]
  sync --> index[".claude-plugin/marketplace.json<br/>plugins/*/ bundles"]
  index --> publish["push to marketplace repo<br/>(tag a release)"]
  index --> ms["bluetemberg managed-settings"]
  lock["llm/packages-lock.json"] --> ms
  mcp["llm/mcp.json"] --> ms
  ms --> files["claude-code/managed-settings.json<br/>github-copilot/managed-settings.json<br/>README.md"]
  files --> admin["admin deploys<br/>(MDM / file / console / .github-private)"]
Loading

Prerequisites

  1. marketplace.remote is set to the GitHub owner/repo that hosts the published plugins. Without it the command refuses to run.
  2. bluetemberg sync has generated .claude-plugin/marketplace.json and the plugins/ bundles: claude-marketplace in platforms for Claude Code, agent-plugins for Copilot.
  3. That output is pushed to the marketplace repo. Tag the commit if you want to pin it (--ref).

Generate the files

npx bluetemberg managed-settings --ref v1.4.0 --out managed-settings

The output directory holds one file per host and a README that says where each file goes on macOS, Linux and Windows, which other delivery methods the host supports, and which pack versions the bundles were built from. Preview without writing with --dry-run; get the plan as JSON with --json. Use a dedicated --out directory: the command refuses to write a file at a host's live policy path (so --out /etc can't install the policy by accident), inside ~/.claude, through a symlink, or over a file it did not generate. Warnings go to stderr even with --silent. Paths here say llm/, the default config source dir; the command reads whichever source you configured. All flags are in Commands.

What goes into the files

Key Written Derived from
extraKnownMarketplaces Always The marketplace name in .claude-plugin/marketplace.json, the repo in marketplace.remote, --ref, --auto-update
enabledPlugins Always Every plugin the index lists (plugin@marketplace: true), or the --plugin selection
strictKnownMarketplaces With --strict Your marketplace with the same ref, plus each --allow-marketplace. The Claude Code file adds { "source": "skills-dir" }
allowedMcpServers With --mcp-allowlist The servers in llm/mcp.json (presets resolved) and the root .mcp.json, as exact serverCommand or serverUrl matchers
env (Claude Code), telemetry (Copilot) With --telemetry-endpoint Your collector URL and protocol, the marketplace name and ref, a digest of the pack set, and each --telemetry-attribute. Content capture is always written off. See Telemetry
deniedMcpServers Never Nothing in the project says what to deny

A managed enabledPlugins entry set to true force-enables the plugin: users can't turn it off. If your plugins split by profile (frontend, backend), use --plugin and deploy a different file to each group. Each host's file only lists plugins that have a bundle in that host's format: a plugin whose name isn't a valid Agent Plugins name has a Claude bundle but no Agent Plugins one, so it is left out of the Copilot file.

The host formats

Both hosts read the same top-level keys from a file named managed-settings.json, but they are not one schema. Each host gets its own file because of these differences:

Claude Code GitHub Copilot
File locations /Library/Application Support/ClaudeCode/, /etc/claude-code/, C:\Program Files\ClaudeCode\ /Library/Application Support/GitHubCopilot/, /etc/github-copilot/, %ProgramFiles%\GitHubCopilot\
Other delivery macOS profile (com.anthropic.claudecode), HKLM\SOFTWARE\Policies\ClaudeCode value Settings, claude.ai admin console .github-private repo copilot/managed-settings.json, MDM string values (com.github.copilot, HKLM\SOFTWARE\Policies\GitHubCopilot)
Drop-in files managed-settings.d/*.json, merged after the main file None: merge into the existing file
Marketplace ref Branch or tag Branch, tag or commit SHA
strictKnownMarketplaces side effects Blocks the official Anthropic marketplace unless listed; skills-directory plugins need a skills-dir entry Turns off the built-in marketplaces
allowedMcpServers from several sources Merged (union), unless allowManagedMcpServersOnly Intersected
File requirements None documented Copilot CLI on macOS and Linux: a regular file owned by root, not group- or world-writable, no symlink

Sources: Claude Code Deploy managed settings, Settings reference and Marketplace sources; GitHub Enterprise managed settings reference and Choosing how to deploy enterprise-managed settings. Checked 2026-11-04.

Version pinning

Neither host pins a plugin version: enabledPlugins only names plugin@marketplace. The only pin is the marketplace source's git ref, so users get whatever the marketplace repo holds at that ref. Without --ref, hosts follow the repo's default branch.

To keep that in step with llm/packages-lock.json:

  • The command refuses to run when an Agent Plugins bundle lock (plugins/*/digital.prototyp.bluetemberg/bundle-lock.json) records a pack version or integrity that the lockfile no longer has. Run bluetemberg sync, publish, then generate again. Only Agent Plugins bundles carry a lock. With claude-marketplace alone nothing is checked: the command warns Drift NOT checked and the generated README says so, so run bluetemberg sync --check before publishing. A plugin without a lock (for example one left out of the Agent Plugins format) is named in a warning too.
  • A pack installed after the last sync is in the lockfile but in no bundle lock, so the check above can't catch it. The command warns about every locked pack no bundle records; packs that ship nothing bundled (guardrails only, or another profile's content) show up there too, which is why it is a warning. bluetemberg sync --check is the exact test.
  • The generated README lists the pack versions the bundles were built from. The command can't see the remote repo, so make sure the tag you pass to --ref points at the commit you published from this output.
  • Claude Code takes a branch or tag only. A full commit SHA is refused unless --host copilot; tag the commit instead.

Locking the marketplace list (--strict)

strictKnownMarketplaces blocks every marketplace it does not list, on add, install, update and auto-update, including marketplaces users added before the policy. Before you deploy it:

  • Add every marketplace your users still need with --allow-marketplace owner/repo, including anthropics/claude-plugins-official for Claude Code's official marketplace. The command warns about each marketplace the project's .claude/settings.json registers that the list would block, and about the official one; a non-GitHub source has to be added to the file by hand.
  • Matching is exact and includes ref: an entry pinned to v1.4.0 does not match the same repo added without a ref. The command always writes the allowlist entry with the same ref as the marketplace it registers, so the policy never blocks its own marketplace. Users who added it by hand without a ref may need to remove it once (claude plugin marketplace remove <name>).
  • An empty allowlist blocks everything; the command never writes one.

MCP allowlists and deny lists

--mcp-allowlist writes allowedMcpServers with exactly the servers this project runs: those in llm/mcp.json and those in the root .mcp.json, including servers someone added there by hand (sync keeps them). They are matched by command and arguments (stdio) or URL (remote). Every other server users add is then blocked. Commands match exactly, so a server started another way, such as cmd /c npx … on Windows, needs its own entry. An entry that uses ${VAR} expansion gets a warning: Claude Code expands policy entries from a pinned environment, so it may not match. The command refuses to write an empty allowlist (no servers in either file), and refuses an llm/mcp.json with errors or a .mcp.json that isn't valid JSON, because both hosts read an empty list as "block every server".

No deny list is generated. If you add deniedMcpServers yourself, a deny entry wins over every allow entry in both hosts, so check it against the servers in llm/mcp.json and .mcp.json before you deploy.

Marketplace name

The policy keys everything by the marketplace name in .claude-plugin/marketplace.json, which sync takes from the project folder name. Generate the files from the same checkout you publish from. The command warns when the index name differs from the folder name.

Clone this wiki locally