> ## Documentation Index
> Fetch the complete documentation index at: https://docs.runlayer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Automatic Configuration Provisioning

> Automatically deploy MCP server configurations to client applications across your organization

Automatic Configuration Provisioning pushes managed MCP configurations directly into client applications. Admins mark connectors or plugins as auto-synced in the dashboard, and the Runlayer CLI writes them into each developer's tools.

## How It Works

1. **Admin enables auto-sync** on connectors or plugins in the Runlayer dashboard
2. **CLI fetches configuration** for auto-synced connectors and plugins accessible to the user
3. **Client detection** — the CLI auto-detects installed clients
4. **Config injection** — MCP entries are written into each client's config file

> [!NOTE]
>
> Sync to devices doesn't grant access. Who can use a connector is still decided by its Policies; the switch only puts the connector into the local clients of people who already have access. If nobody has access yet, nothing is synced. Limiting sync to teams only narrows that group; it never adds people.

![Enabling Auto Sync on a connector](https://mintcdn.com/anysource/dfKWkIxyYUlFMaEh/images/enabling-auto-sync.gif?s=8df4f8942a2bf9e60e649f78afd75038)

## Quick Start

First deploy the self-contained [Runlayer CLI package](https://docs.runlayer.com/deploy-cli.md) to the device. The package installs `runlayer` on `PATH` at `/usr/local/bin/runlayer` on macOS, `C:\Program Files\Runlayer\CLI\runlayer.exe` on Windows, or `/usr/bin/runlayer` on Linux. Then run the sync as the target user:

```bash macOS/Linux theme={null}
# Log in to Runlayer
runlayer login --host https://your-instance.runlayer.com

# Sync all auto-synced MCPs to your clients
runlayer setup sync --yes
```

```powershell Windows theme={null}
# Log in to Runlayer
runlayer login --host https://your-instance.runlayer.com

# Sync all auto-synced MCPs to your clients
runlayer setup sync --yes
```

Credentials are stored in your OS keychain when available, with a fallback to `~/.runlayer/config.yaml`.

Use `--client cursor` to target a specific client. Run without `--yes` to preview changes before applying.

Auto-detection requires an existing client config. To provision a client before it has created one, target it explicitly—for example, `runlayer setup sync --client codex --yes`—and run the command as that user.

> [!NOTE]
>
> The `uv tool install runlayer` / `uvx runlayer` path is for legacy, manual, or developer use. Managed deployment scripts on the pages below expect the packaged CLI to be installed first.

## Supported Clients

| Client | macOS | Windows | Linux |
| - | :-: | :-: | :-: |
| **Cursor** | ✓ | ✓ | ✓ |
| **VS Code** | ✓ | ✓ | ✓ |
| **Codex** | ✓ | ✓ | ✓ |
| **Claude Desktop** | ✓ | ✓ | |
| **Claude Code** | ✓ | ✓ | ✓ |
| **Windsurf** | ✓ | ✓ | ✓ |
| **Goose** | ✓ | ✓ | ✓ |
| **Zed** | ✓ | ✓ | ✓ |
| **OpenCode** | ✓ | ✓ | ✓ |

***

## Keep connectors in sync

`runlayer setup sync` is a one-shot command: it writes the connectors and plugins that have **Sync to devices** turned on at the moment it runs, then exits. To pick up connectors you turn on later, and to restore entries users delete, run it on a recurring schedule.

> [!WARNING]
>
> The [Runlayer CLI package](https://docs.runlayer.com/deploy-cli.md) installs an hourly scheduler (`runlayer schedule`), but that scheduler delivers [managed skills](https://docs.runlayer.com/platform-skills.md#sync-to-devices) only. It does not run connector or plugin sync. The **Sync to devices** switch on the **Manage skills** page also covers skills only; connectors and plugins have their own **Sync to devices** setting on the **Manage connectors** page and in each Plugin's **Share** dialog.

Use your MDM to run `runlayer setup sync --yes` on a schedule. The MDM guides below generate a script that does this:

| MDM | How the schedule runs |
| - | - |
| [Jamf Pro](https://docs.runlayer.com/auto-provisioning/jamf-pro.md) | Policy on Recurring Check-in (every 15 minutes by default) |
| [Iru/Kandji](https://docs.runlayer.com/auto-provisioning/kandji.md) | Custom Script set to **Run daily** or **Run every 15 minutes** |
| [Intune](https://docs.runlayer.com/auto-provisioning/intune.md) | **Platform Script** registers a `RunlayerConfigSync` scheduled task (hourly by default); **Remediation** runs on Intune's own schedule |
| [SimpleMDM](https://docs.runlayer.com/auto-provisioning/simplemdm.md), [Mosyle](https://docs.runlayer.com/auto-provisioning/mosyle.md), [other MDMs](https://docs.runlayer.com/auto-provisioning/other-mdm.md) | A recurring script, at least daily |

Running `runlayer setup sync --yes` by hand once is fine for a test, but it won't pick up later changes.

## MDM Deployment

For enterprise-wide deployment, use your MDM solution to run the sync command across all devices:

> [card] [SimpleMDM](https://docs.runlayer.com/auto-provisioning/simplemdm.md)
>
> macOS deployment

> [card] [Jamf Pro](https://docs.runlayer.com/auto-provisioning/jamf-pro.md)
>
> macOS deployment

> [card] [Mosyle](https://docs.runlayer.com/auto-provisioning/mosyle.md)
>
> macOS deployment

> [card] [Iru/Kandji](https://docs.runlayer.com/auto-provisioning/kandji.md)
>
> macOS deployment

> [card] [Intune](https://docs.runlayer.com/auto-provisioning/intune.md)
>
> Windows deployment

### Can users remove synced MCPs?

Synced entries are written into each client's standard config file, which lives in the user's own profile — they are not made read-only, so a user can edit or delete an entry locally. However, every sync run re-writes **all** auto-synced connectors and plugins, so local removals are reverted on the next scheduled run (each MDM guide recommends a recurring schedule, e.g. daily on macOS MDMs or every 60 minutes with Intune's scheduled task).

Note that the synced config entries point at the Runlayer gateway, so access control doesn't depend on the local file: what a user can actually reach is enforced server-side by their Runlayer permissions and [policies](https://docs.runlayer.com/platform-policies.md), whether or not the local entry is present.

***

## Monitoring Sync Status

There are three places to check whether auto-sync is actually landing on devices:

1. **On the device** — open a client application (e.g., Cursor) and confirm the synced MCPs appear, or re-run `runlayer setup sync` manually; it lists the detected clients (and, without `--yes`, the connectors it will write) and ends with `Sync complete.` or the clients that failed. The MDM scripts from the guides below log each run to `/var/log/runlayer/auto_provisioning.log` on macOS, or `%ProgramData%\Runlayer\auto_provisioning.log` on Windows. That file appears after the first scheduled run of that script; running `runlayer setup sync` by hand doesn't write it, and `runlayer status` doesn't report connector sync.
2. **In your MDM console** — use your MDM's script/policy execution reporting for fleet-level visibility: policy execution status in Jamf Pro, the Custom Script **Status** tab in Iru/Kandji, script execution results in SimpleMDM and Mosyle, and Task Scheduler status or remediation compliance for [Intune](https://docs.runlayer.com/auto-provisioning/intune.md).
3. **In the Runlayer dashboard** — confirm which connectors and plugins have auto-sync enabled, and use [audit logs](https://docs.runlayer.com/platform-audit-logs.md) (UI or `runlayer logs`) to see gateway activity from synced clients once devices start using them.

Each MDM guide includes a platform-specific verification step; see the cards above.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.