Settings reference

Every Mondoo Security extension setting with its default value and scope.

All settings live under the mondoo. namespace (File → Preferences → Settings, search for "mondoo"). In the Settings UI they're organized into three groups — General, Infrastructure security (cnspec), and Code security (xgrep) — which this page mirrors.

Settings with machine scope can only be set in user settings, not per workspace — they control which binaries run, so a repository you open cannot change them. Settings with resource scope can also be set per workspace or folder.

General

Executable paths for the tools the extension drives.

SettingDefaultScopeDescription
mondoo.cnspecPath""machinePath to the cnspec executable; empty resolves cnspec from PATH
mondoo.mqlrPath""machinePath to the MQLr language server binary; empty uses auto-discovery
mondoo.mqlrAutoInstalltruemachineOffer to go install mqlr when it is missing and a .lr file is opened
mondoo.xgrepPath""machinePath to the xgrep binary; empty uses auto-discovery and, if needed, automatic installation

Infrastructure security (cnspec)

Scan targets

SettingDefaultScopeDescription
mondoo.targetConfigurations[]resourceSaved scan targets (SSH, Docker, cloud, …) — see scan targets

Policy editing

SettingDefaultScopeDescription
mondoo.format.enabledtrueresourceFormat .mql.yaml bundles with cnspec on Format Document / format-on-save. Disable to opt out without changing editor.formatOnSave.
mondoo.cnspecStatusBartruewindowShow the policy-lint status bar item while a .mql.yaml bundle is the active editor (hidden for other files)
SettingDefaultScopeDescription
mondoo.search.caseSensitivefalseresourceCase-sensitive search
mondoo.search.useRegexfalseresourceTreat the search term as a regular expression
mondoo.search.searchContenttrueresourceAlso search inside MQL query content
mondoo.search.maxResults50resourceMaximum number of search results

Pins

SettingDefaultScopeDescription
mondoo.pins.enabledtrueresourceEnable pinning in the policy explorer
mondoo.pins.maxItems20resourceMaximum number of pinned items
mondoo.pins.showSectiontrueresourceShow the pinned section in the policy explorer

Code security (xgrep)

SettingDefaultScopeDescription
mondoo.xgrepEnabledtruemachineMaster switch for the code security scanner
mondoo.xgrepAutoInstalltruemachineAllow the extension to install @mondoohq/xgrep from npm when no binary is found
mondoo.xgrepRulesPath""machineCustom rule file or directory; empty uses the built-in security and secrets rules
mondoo.xgrepExcludePatterns[]resourceGlob patterns excluded from scanning — see excluding files
mondoo.xgrepIncludePatterns[]resourceGlob patterns that scope scanning to matching files only (e.g. src/**); empty scans everything, and exclude still wins over include
mondoo.xgrepScanJobs0windowParallel workers for on-demand scans (Scan Workspace / Changed Files); 0 picks a count from CPU cores — raise it (up to 32) for large repos, or lower it to cap CPU
mondoo.xgrepExplainUseGraphtrueresourceEnrich the AI "Explain finding" answer with the xgrep code graph (call neighborhood and dataflow); disable on very large repositories

After changing any mondoo.xgrep* setting, run Mondoo: Restart xgrep Language Server (changes to mondoo.xgrepExcludePatterns apply immediately for newly excluded files).

On this page