Prerequisites
- SimpleMDM admin access
- Devices enrolled via User-Approved MDM or Automated Device Enrollment (for Full Disk Access)
Deployment Steps
Deploy PPPC Profile
Detect needs to read MCP config files in TCC-protected directories (Desktop, Documents, Application Support). Without a PPPC profile, macOS shows a permission dialog on every scan.Download the PPPC profile from the Detect configuration page in the Runlayer dashboard (Settings → Shadow MCPs), or use the button below:
The profile targets a dedicated
runlayer-scan wrapper binary so that Full Disk Access is scoped to the scan process only — not to general-purpose tools like uvx.- Go to Profiles in SimpleMDM
- Click Create Profile > Custom Configuration Profile
- Upload the downloaded
.mobileconfigfile - Assign to the same devices/groups that will run the script
- Push the profile to devices
Get Deployment Artifacts
In the Runlayer dashboard, go to Settings → Shadow MCPs and open or create a Detect configuration to copy the generated script and API key.
Add the Script in SimpleMDM
- Open Scripts in the SimpleMDM admin console
- Click Add Script and paste the generated script
- Name it (e.g., “Runlayer Detect”)
Verification
Log Locations
| Platform | Log Location |
|---|---|
| macOS | /var/log/runlayer/ai_watch_detect.log |
Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | General failure (missing config) |
| 2 | Network failure |
| 3 | Installation failure |