Mosyle MDM Deployment
Deploy MCP Endpoint Shield across your organization using a single script via Mosyle MDM.
Overview
MCP Endpoint Shield can be deployed enterprise-wide via Mosyle MDM (Mobile Device Management) for seamless, automated installation across your organization's macOS devices.
Why Use MDM Deployment?
MDM deployment provides significant advantages over manual installation:
Zero-touch deployment - Automatic installation at user login
Centralized management - Configure and monitor from a single Mosyle console
Consistent configuration - Ensure all devices have the same security posture
Automated updates - Push new versions across the organization
Compliance tracking - Monitor deployment status and coverage
Key Features of Mosyle Deployment
One script handles everything: downloads the installer, deploys the token, installs to each user's home directory, and starts services automatically
Runs at user sign-in: installs once per user, retries automatically if it fails
No PKG upload to Mosyle required: the script downloads the installer directly from a URL provided by Akto.
Minimal configuration: only 3 values to configure in the script
Prerequisites
Before deploying MCP Endpoint Shield via Mosyle, ensure you have the following:
1. Akto Credentials
AKTO_API_TOKEN: obtain from your Akto platform dashboard
AKTO_API_BASE_URL: your Akto instance URL (e.g.
https://<account-id>-guardrails.akto.io)
2. Installer URL
PKG download URL: request this from Akto ([email protected]); Akto will provide a direct download URL for the installer
⚠️ Important: Keep this URL confidential as it's tied to your organization
3. Mosyle Admin Access
Permissions to create/edit and manage:
Custom Commands
Device Group assignments
Execution results and logs
4. Device Enrolment
Target Macs must be enrolled and appear in your Mosyle dashboard
Devices must have internet connectivity to download the installer
Users must be able to log in to devices for installation to trigger
Deployment Process
Prepare the Installation Script
1. Obtain credentials from Akto
Contact Akto support team to request following information:
Installation Script:
install.shfile.Direct download URL for the installer (
PKG_URL)Confirmation of your
AKTO_API_TOKENYour
AKTO_API_BASE_URL
2. Configure the installation script
Open install.sh and fill in the CONFIG section at the top:
All other values (hook flags, wrap flags) can be left at their defaults or adjusted as needed.
Upload to Mosyle
1. Create Custom Command profile
Log into your Mosyle Business console
Navigate to Management → Custom Commands
Click Add new profile
Name it:
Akto Endpoint Shield - InstallChoose Category: Security (or create custom category)
2. Upload the script
Click the Code tab
Select code format: Shell Script (bash)
Paste the entire contents of your configured
install.shfileReview the pasted content for accuracy (verify CONFIG section is filled)
Click Save

3. Configure execution settings
Click the Execution Settings tab and configure:
Execute command
Select: Immediately when saving the profile, upon assignment, or based on schedule or events
Execution trigger
Tick Every user sign-in✅
Schedule
Only once (Event Required)✅

Why this configuration?
This combination runs the script on each user sign-in until it succeeds, then stops. If the download fails or no user is logged in, it retries automatically at the next sign-in.
The "only once" setting prevents repeated executions for the same user on the same device.
Leave all other options unchecked. Click Save to create the profile.
Deploy to Devices
1. Add Profile Assignment Based on Your Preferences
Click + Add Assignment, choose users or devices, then select and confirm your assignment.

Save the Custom Commands.
The script will run the next time each assigned user signs in.
2. Monitor deployment
Go to Management → Custom Commands, select your profile, and click View Results to see execution status:
Success: Installation completed
Pending: Awaiting user sign-in
Failed: See troubleshooting section

Updating Akto Endpoint Shield
Request the updated installer URL from Akto ([email protected])
Update
PKG_URLin the script with the new URLEdit the script in Mosyle and save — Mosyle will re-run it on next sign-in
Force Upgrade:
The script skips reinstallation if the binary is already present. To force an upgrade, run the uninstall script first (see below), then the install script will run again on next sign-in.
Uninstall Script
To remove Akto Endpoint Shield from devices:
In Mosyle → Custom Commands → Add new profile
Paste the contents of
uninstall.shName it:
Akto Endpoint Shield - UninstallExecution Settings:
Event: ✅ Every user sign-in (or trigger manually)
Schedule: ✅ Only once (Event Required)
Assign to the target devices
Troubleshooting
Issue: Script shows "Failed" in Mosyle View Results
Symptoms: Custom Command status shows "Failed" or "Error"
Diagnostic command:
Common causes and solutions:
PKG_URL is empty or unreachable
Look for URL errors in install log
Verify the URL provided by Akto is correctly pasted in CONFIG; test: curl -I $PKG_URL
AKTO_API_TOKEN is empty
Search install log for "TOKEN"
Check the CONFIG section of the script has the token value
AKTO_API_BASE_URL is empty
Search install log for "BASE_URL"
Check the CONFIG section of the script has the base URL value
No user logged in
Check timestamp when script ran
Will retry automatically on next sign-in; no action needed
Issue: Services Not Running After Installation
Symptoms: launchctl list shows no Akto Endpoint Shield services
Solution - Manually load services:
Issue: Token Needs Updating After Installation
Symptoms: Services running but not authenticated; logs show "AKTO_API_TOKEN not configured"
Solution:
Edit the script in Mosyle with the new token. Then on the device:
Support
For Akto platform issues: [email protected]
For Mosyle issues: your IT administrator
Last updated