Skip to main content
Set up MCP Governance once through your MDM, and every device in scope reports its AI agents’ MCP tool calls to Lumos.
Looking for the Lumos MCP servers? This page is about governing the MCP servers your employees’ agents call. To connect an AI client to Lumos, see the Lumos User MCP Server or the Lumos Admin MCP Server.
Early access. The Jamf steps have been walked end to end. The Intune and Kandji steps follow each vendor’s documentation and have not been. The Intune Windows steps have been tested on Windows but not yet in a live Intune tenant. Talk to your Lumos contact before scoping this to a large fleet.

Before you begin

About 30 minutes. At the end, every device in scope holds a Lumos device token, and Claude Code, Codex and Cursor run the Lumos hooks. You need:
  • Lumos: Organization Admin, or the MCP Governance role, with MCP Governance enabled on your domain. Creating the enrollment token in step 3 also needs permission to create API tokens.
  • Your MDM: permission to create scripts, policies and configuration profiles. In Jamf Pro, that means Advanced Computer Searches, Scripts, Policies and Configuration Profiles.
  • Devices: Macs running Claude Code, Codex, Cursor, or any combination. If your Claude organization also uses server-managed settings, Claude Code 2.1.242 or later is needed to merge them with the MDM profile; see Check it worked. Windows devices running Claude Code enroll through Intune with a PowerShell script; see the Intune Windows tabs below. Linux is covered by the per-user install only; see Linux. Cursor on Windows is not covered yet.
The same steps appear in Lumos under MCP Governance → Deployment → MDM hooks → First-Time Setup, with your MDM preselected. Do the steps in order. On a Mac whose hooks arrive before it enrolls, Claude Code and Codex tool calls run without a policy check until the enrollment script runs. They are not attributed to the device’s owner. See Security & Privacy.
Each person can also set up their own machine from the install page, without an MDM. Use that for a pilot, not for enforcement.The install page offers a command for macOS and Linux, and one for Windows PowerShell. Both use the same token:
Run it in PowerShell, not Command Prompt.The per-user install covers Claude Code and Codex on macOS, Linux and Windows, and Cursor on macOS and Linux. Its token is bound to the person who opened the install page and expires after one day.With per-user install, the email the agent reports comes from that person’s own machine (their Claude Code account or git config user.email), which they can change, and they can remove the hooks. If you intend to block anything, deploy by MDM.

1. Bring your devices into Lumos

Lumos needs each device’s serial number and its owner. There are two ways to supply them. If Jamf or Kandji is connected to Lumos, the devices it manages sync in on their own and you can skip the export and the import in step 2. Otherwise, export a CSV from your MDM and import it.

From a connected Jamf or Kandji integration

A connected MDM integration is a live inventory. Lumos reads it once a day and keeps the Devices tab in step with what your MDM reports, with no file to export or re-import.
  • Jamf: turn on Include Devices on the integration. It needs the Read Computers privilege on the API role. See Jamf.
  • Kandji: managed devices sync by default. The API token needs List Devices. See Kandji.
  • The integration’s regular sync brings each managed computer into Lumos as a Device permission, held by the person your MDM assigns it to. You can see them on the integration’s permissions.
  • Once a day, at 06:00 UTC, MCP Governance reads those devices and writes them to the Devices tab with the connection type MDM sync. The read takes whatever the integration’s own sync has brought in by then, so expect a machine to appear within a day or two of being assigned in your MDM. New machines start as Pending, exactly like an imported row, and enroll the next time the enrollment script runs on them.
  • A device is written only when Lumos can attribute it to exactly one person in your directory. A computer with no assigned user, one assigned to several people, or one whose holder does not match a directory identity is skipped. Fix the assignment in your MDM and it is picked up on the next sync. Nothing is guessed.
  • Each device is matched by serial number. A serial that is already on the Devices tab, from an earlier import or sync, is updated rather than duplicated.
  • A machine your MDM stops reporting is Retired on the next sync. Its token is cleared, and its tool calls are denied at once, the same as a revoke. It returns to Pending if the MDM reports it again, or if a later CSV import lists its serial. No row is ever deleted.
  • An owner you assigned by hand on the Devices tab is kept. The rest of the owner details follow your MDM’s assignment.
  • A Revoked device stays revoked through every sync, until an admin clicks Allow.
  • Two safeguards keep a broken sync from retiring a working fleet. A sync that reports no machines at all, or none with a serial, changes nothing. And a sync that would retire more than half of the machines it previously reported is refused, once that MDM has ten or more devices on the tab. In both cases nothing is written and the previous inventory stands. If you are decommissioning most of your fleet, revoke the machines by hand.
  • Each connected MDM keeps its own population. With both Jamf and Kandji connected, one never retires the other’s machines.
The sync is read-only on the MDM side. Lumos never writes to Jamf or Kandji.
Intune has no device sync yet. Export a CSV from Intune and import it, as below. A CSV import and a connected MDM can be used side by side. A row’s Connection Type is whichever wrote it last, and only the MDM sync retires devices; a CSV import never does.

From a CSV export

The plain Computers list does not export serials and owners, so use an Advanced Computer Search.
  1. Go to Computers → Search inventory → + New, or open an existing search and click Edit.
  2. Criteria: leave empty for the whole fleet, or restrict it to your pilot smart group.
  3. On the Display tab, tick:
    • Hardware → Serial Number
    • Computer → UDID
    • User and Location → Email Address and Username
    • Optional: Computer → Computer Name, so Lumos shows the Mac’s name next to its serial.
  4. Click Save, then View. Check the columns are there, then click Report (bottom right).
  5. On the Reports tab, pick Comma-Separated Values (.csv) and click Download Report.
Upload the file as downloaded. Lumos reads Jamf’s own headers.
Lumos also reads the headers your MDM exports under other names, such as Serial Number, Device Serial Number, Hardware UUID, Email Address, Device User Email, Primary user UPN, User Principal Name, Assigned User, Intune device ID, Computer Name and Device name. Header names are case-insensitive, spacing and punctuation are ignored, and order does not matter.A file can hold up to 10,000 rows and 5 MB, and must be UTF-8.

2. Import the export into Lumos

Skip this step if your devices sync from a connected Jamf or Kandji integration.
  1. Go to MCP Governance → Devices, then click the import icon (top right, next to search).
  2. Drop the CSV and click Import.
Lumos previews the import before writing anything. Each owner is looked up in your directory; a row whose owner matches nobody is skipped, and the preview says why. Every imported device starts as Pending: known to Lumos, not enrolled yet. Only serials in your inventory can enroll, so scope the import to the machines you intend to govern.
  • Pending: in your inventory, not enrolled yet.
  • Enrolled: holds a device token. Its tool calls are attributed to its owner.
  • Revoked: an admin cut the device off and its token is cleared. It stays revoked through enrollment script re-runs and re-imports until an admin clicks Allow. It then returns to Pending and enrolls with a fresh token the next time the script runs.
  • Refused: a machine tried to enroll with a serial that is not in your inventory. Review these: they show you agents running on machines you are not governing. To let one in, click Allow. If Lumos could not match the owner the machine claimed to someone in your directory, pick the owner in the Owner column first.
  • Retired: a connected MDM’s nightly sync no longer lists it. Its token is cleared, and it returns to Pending if a later import or sync lists its serial. A CSV import never retires a device.
The Connection Type column shows how each row arrived: Imported from a CSV, MDM sync from a connected Jamf or Kandji, or Per-user install from the install page. It’s hidden by default, so turn it on under Columns.
Re-import whenever the fleet changes. Re-importing updates each listed serial’s owner, udid, email and name. A blank udid or email cell clears that value, but a blank name never does. An owner an admin assigned by hand is kept.A Retired device whose serial is in the file returns to Pending, so leave retired machines out of the file. A Refused serial that is now in the file also becomes Pending and can enroll. A Revoked device stays revoked. Other statuses, and each device’s token and timestamps, stay as they are.A name from the file wins over the name the machine reports when it enrolls. On macOS, the enrollment script reports the machine’s Computer Name rather than its DNS hostname.

3. Create an enrollment token

  1. In Lumos, go to Settings → API Tokens → Add, or click Create token in step 2 of the First-Time Setup checklist.
  2. Choose MCP Enrollment Token and name it after the rollout. Lifetimes run from 7 days to 1 year. On Jamf, the default 90-day lifetime is fine because the token stays in the policy. On Intune and Kandji the token sits in the script body, where anyone who can read your script library can see it, so pick the shortest lifetime that covers your rollout. Click Add.
  3. Copy the lmcpe_… value. It is shown once.
The token can only enroll serials that are in your inventory, so it is safe to hand to an MDM policy.
You never see or handle a device token. The script writes it and the hooks read it.

4. Enroll your devices

The enrollment script runs as root. On macOS it writes the device token to /Library/Lumos/device-token. Once the device holds a token, the script also writes Cursor’s hooks, because LUMOS_CURSOR_HOOKS=1 is set in every snippet below. On a device that is already enrolled, it changes nothing unless Lumos has newer Cursor hooks, and exits 0. Run the script on a recurring schedule. Cursor reads its hooks only from a file, so no configuration profile can deliver them. Each run of the enrollment script is how Cursor’s hooks reach new devices and stay current when Lumos updates them.
With LUMOS_CURSOR_HOOKS=1, the --cursor-hooks flag, or Jamf Parameter 8 set to 1, the script writes two files:The script rewrites a file only when its contents differ from the copy Lumos ships. The hook script is always written. hooks.json is replaced only when it is absent or matches the copy Lumos ships. If your device already has its own hooks.json, the script leaves that file alone and prints the entries to add to it. The entries name only the hook script, not a version, so a file you merged them into keeps working as Lumos updates the script.Without the setting, the script writes only the device token. Cursor’s hooks on Windows are not covered yet.
Create the script
  1. Go to Settings (bottom of the left rail) → Computer management → Scripts, and click + New.
  2. General tab → Display name: Lumos MCP Governance · Enroll.
  3. Script tab → language Shell/Bash, then paste exactly this:
  4. Options tab → Parameter 4 label: Lumos enrollment token (lmcpe_…), so the policy screen explains itself.
  5. Click Save.
The token is not in the script; the policy supplies it.Create the policy that runs itGo to Computers → Policies → + New.Skip the Startup and Login triggers. They only fire if login hooks are enabled under Settings → Check-in, and most tenants do not have them. Recurring Check-in reaches every Mac within one check-in interval (15 minutes by default); Enrollment Complete covers new Macs.Save. Each Mac runs the policy at its next check-in and moves from Pending to Enrolled in Lumos.

5. Install the hooks profile

On Windows, skip this step. The enrollment script already wrote the hook config.
Do this about 15 minutes after step 4, once most of the fleet shows Enrolled. A Mac that gets the hooks while it is still Pending runs its Claude Code and Codex tool calls without a policy check, and they are not attributed to its owner, until the enrollment script runs. This needs hook config 1.5 or later for Claude Code and 1.9 or later for Codex; on older configs those calls are denied instead. Devices that were offline catch up on their own, so there is no need to wait for every last one.
In Lumos, go to MCP Governance → Deployment → MDM hooks → Update Hooks, choose Locked or Unlocked, and download the hook config. Do not edit it. It carries the hooks for both Claude Code and Codex. Cursor’s hooks are not in the profile; the enrollment script in step 4 writes them.
  • Locked: only the Lumos hooks run. People can’t add their own.
  • Unlocked: people’s own hooks keep running beside the Lumos hooks. They still can’t remove the Lumos hooks.
The choice starts on what your fleet already runs, and on Unlocked for a first rollout. The Status tab shows what your fleet runs under Hooks. You can also download the hooks profile directly; that URL is locked unless you add ?lock=false.
Already push a com.openai.codex profile? macOS applies only one profile per preferences domain, so uploading this one replaces your Codex requirements, or yours replace the Lumos hooks. Talk to your Lumos contact before uploading it. A /etc/codex/requirements.toml file on the device is fine; Codex reads both. If you manage Codex another way, use the Claude Code-only profile instead.
  1. Go to Computers → Configuration profiles → Upload, and pick the file.
  2. Scope: the same smart group as the enrollment policy. Save.
The Completed / Pending / Failed columns show the rollout.
Claude Code may ask each user to approve the hooks once. The profile tells Claude Code and Codex to run the Lumos hooks, and nothing more. Each hook is a curl call, so nothing is installed. Optional switches. When you download from the URL directly, append these before uploading: To use both, combine them: ?lock=false&capture=none. ?capture=none is separate from the tool input settings on the Deployment tab, which decide what Lumos stores of the inputs it receives. By default, Lumos stores no tool input. See Tool input settings.

Linux

Linux is not part of the MDM setup. Linux users install the hooks for Claude Code, Codex and Cursor themselves from the install page, as in the per-user install above. Their machines appear on the Devices tab as Per-user install.

6. Check it worked

Ask someone on an enrolled device to use Claude Code for a minute, then open MCP Governance → Events. Their tool calls appear within seconds, under their name. Click a row: User is the owner from your export. Under Trace, Harness is the agent that made the call, such as Claude Code, Codex or Cursor, and Hook source reads MDM (hook config 1.8 or later). Nothing is blocked by policy until you write one. If events show up under the right people, you are done.
Enrolled, hooks approved, still no events? Your Claude organization uses server-managed settings, which outrank the MDM profile. In the Claude console (Admin Settings → Claude Code → Managed settings), add "managedSourcesBehavior": "merge". Until then, /status in Claude Code lists the ignored profile under “Skipped sources”.Do not paste the hook config into the console itself until every device is enrolled. Console settings reach every Claude Code install at once, and a machine with no device token has all of its tool calls denied.
MCP Governance → Devices shows how far each device got.
  • Enrolled: the enrollment ran. If events are still missing, see the warning above and restart Claude Code on that device.
  • Pending: the enrollment has not run there yet. Check its scope and your MDM’s logs.
  • Refused: the device presented a serial you did not import. Add it to the export and re-import, or click Allow on its row; the next check-in enrolls it.
  • Revoked: an admin revoked it. It stays revoked until someone clicks Allow.
The policy (step 4) and the profile (step 5) each keep a per-computer log, and they read the same way.
  • Policy: open the policy and click Logs (bottom right, or Control+L). Completed means the script ran, so that Mac should be Enrolled in Lumos. Pending means the Mac has not checked in since you saved the policy. Failed: click Details for the script output; the Lumos error text is in there. Flush clears the entry so the policy runs again at that Mac’s next check-in.
  • Profile: on Computers → Configuration profiles, the Completed / Pending / Failed counts next to the profile work the same way, and View under Logs lists each Mac.
Then open Claude Code and run /hooks. The Lumos hooks are listed under managed settings.

Troubleshooting

The enrollment has not run there yet. On hook config 1.5 or later (Claude Code) and 1.9 or later (Codex), a Mac that is Pending and has never enrolled runs its tool calls without a check instead, so download the current hook config from the Deployment tab. If the Mac has enrolled before, or its row is not Pending, its calls are denied until it enrolls. Wait one check-in, or run sudo jamf policy on it.
The device was revoked, or its token file was deleted. If its row reads Enrolled, revoke it first. Then click Allow on its row, which returns it to Pending, and re-run the enrollment script. In Jamf, flush that computer’s entry in the policy Logs so the policy runs again at its next check-in.
The token is dead. Create a new one (step 3) and update your MDM policy or script.
A machine presented a serial that is not in your inventory. Add the serial to your CSV and re-import, or click Allow on its row, and it becomes eligible to enroll. Allow appears once the row has an owner: either the owner the machine claimed matches someone in your directory, or you pick one in the Owner column.
The token’s card counts devices not in your inventory that presented it. Fix the MDM scope or re-import a wider export, and revoke and re-mint the token if it has leaked.
The Failed enrollments column (hidden by default; add it from the column settings) counts every refused enrollment attempt for that serial. Each re-run of the enrollment script on an enrolled Mac counts as one, so a count that rises with your policy runs is expected and harmless. Revoke the device only if a different machine is presenting its serial: check the hostname and claimed owner on the device row.
Click Allow on its row on the Devices tab. It returns to Pending. In Jamf, flush that computer’s entry in the policy Logs, and its next check-in enrolls it with a fresh token.
Check the enrollment script’s output. In Jamf, click Details on the computer’s entry in the policy Logs.
  • No Cursor hooks: line: the script ran without LUMOS_CURSOR_HOOKS=1. Add it to the script, as in step 4.
  • holds hooks Lumos did not write and was left as it is: the Mac already has its own Cursor hooks.json. Add the entries the script printed to that file, then let the next policy run confirm it.
Download the hook config again with Unlocked selected, or from the ?lock=false URL, and replace the profile in your MDM.
The enrollment script removes the self-installed hooks by default once your hooks are on the device. To keep them, add LUMOS_CLEANUP_LEGACY=0 to the script. In Jamf, add LUMOS_CLEANUP_LEGACY="$7" before sh in the script. Set Parameter 7 to 0. On Windows, add $env:LUMOS_CLEANUP_LEGACY = '0' to the wrapper.The cleanup also removes the Cursor hooks people installed themselves, once the enrollment script has written Cursor’s hooks on that machine.For a single machine, have the person run this once. It removes the self-installed hooks and keeps the managed ones.
Hooks load when Claude Code starts. Restart Claude Code.
If the message reads “Lumos MCP Governance blocked this tool call” and ends with a reason code, the Claude plugin blocked it. Look up the code in When a tool call is blocked.

Rolling out in stages

Enrollment is the mechanical part. Getting from “installed” to “enforcing” without breaking anyone’s work is the part worth pacing.
1

Pilot (about a week)

Do: 5 to 10 devices, chosen from people who use agents heavily. Enroll them through the MDM, not the install page, so you test what you will actually run.Don’t: write any policies.Move on when: every pilot device reads Enrolled, tool calls appear under the right person, and you recognize the MCP servers showing up in Inventory.
2

Fleet enrollment (one to two weeks)

Do: import the full device inventory, or confirm the connected MDM’s sync has brought it in, and scope the enrollment and the hooks profile to the whole fleet.Don’t: write any policies yet. Nothing blocks at this stage, by design.Move on when: the enrolled count matches your fleet, every Refused row has been reviewed, and no row has been Pending for more than a few days.
3

Observe (at least two weeks)

Do: read the events: which MCP servers are in use, by whom, and which tools. Give each server in Inventory a status: Approved, Discovered, Blocklisted, or leave it Needs Review. Write your allow policies against real usage.Don’t: write deny policies.Move on when: every MCP server your people use has a status, and you can name the tool calls you intend to stop.
4

Enforce

Do: add deny policies, narrowest first: a specific tool on a specific server, or a specific group. Watch the events for a week before widening. A blocked call fails with the policy name in the message, so the employee knows why and who to ask.Don’t: open with an org-wide default-deny.Done when: your deny policies hold, the blocks you see are the ones you intended, and support volume has settled.

Keeping it running

  • New hires. A new device appears in your MDM and the enrollment policy runs on it. With Jamf or Kandji connected, the device reaches Lumos with the next nightly sync; otherwise include it in your next import. Keep the policy scoped to a dynamic group.
  • Leavers. With Jamf or Kandji connected, a machine your MDM stops reporting is Retired on the next sync and its token stops working. To cut a machine off sooner, revoke it on the Devices tab.
  • Token expiry. Devices already enrolled keep working when an enrollment token expires; new devices stop enrolling. Note the expiry date.
  • Re-imaged or replaced machines. A wiped Mac that Lumos still lists as Enrolled cannot re-enroll: the script exits with “already enrolled, but no device token”. On the Devices tab, Revoke the device, then click Allow. The next policy run enrolls it with a fresh token. In Jamf, flush the computer’s entry in the policy Logs if the policy already ran on it.
  • Lost, stolen or offboarded machines. Revoke the device on the Devices tab. Its token stops working immediately and nothing else in your fleet is affected.

Updating the hooks

When Lumos ships a new hook version, the hook config changelog says what changed and whether it asks anything of you beyond these steps. The Deployment tab shows which version each device reports.
  • macOS. The Claude Code and Codex hooks ship in the configuration profile. Download the profile from Deployment → MDM hooks → Update Hooks and replace the old one in your MDM. If you use the Claude Code-only profile, open Customize and paste the new Codex blocks over the old ones in your requirements.toml. Cursor’s hooks update the next time the enrollment script runs, so keep the policy on a recurring schedule.
  • Windows. The enrollment script writes every hook itself, so there is nothing to upload. If you set LUMOS_WRITE_HOOKS to 0, download the new hook config from Update Hooks and deliver it as before. A script deployed as a Remediation picks up the new version on its next run. A platform script runs again when you save it again.
  • Per-user installs. MCP Tool Usage shows these as Self-serve under Hook source. Ask the people who installed from the per-user install page to run its install command again. Codex then asks them to trust the updated hooks in /hooks. Only per-user installs cover Linux.
The enrollment scripts download their latest version from Lumos each time they run, so a change to a script reaches a device the next time your MDM runs it.

Security review

What is captured, where it goes, and what this does and does not stop is on its own page: MCP Governance: Security & Privacy.