Skip to content

Flags

Pass paths as positional arguments, or one comma-separated --allowed-paths. Do not repeat --allowed-paths. The last value wins.

At least one path is required. Missing paths exit 2, unless --insecure-open or --bench.

FlagDefaultMeaning
--allowed-pathsrequiredComma-separated roots.
--insecure-openoffLabs only. Entire disk.
--roots-modereplacereplace, union, or ignore.
--profileultraultra (29), agent (18), strict (17).
--git-networkoffEnable git push and fetch. Ignored in strict.
--git-remote-allowemptyOptional extra lock on push and fetch. Empty allows any configured remote.
--readonlyoffReject mutating tools.
--mutation-budget0 (off)Max applied mutations per process. Shared by all stdio clients.
--allow-secretsoffAllow secret filenames. Audited.
--compact-modeoffShorter text responses.
--file-security-configemptyJSON policy. Invalid file exits 2. Immutable until restart.
--auto-occwarnoff, warn, or block.
--cache-size100MBFile content cache limit.
--cache-ttl3mFile content cache life. Retention, not coherence. Not directory listings.
--parallel-ops2× CPU, max 16Max concurrent operations.
--max-response-size10MBMaximum response size.
--max-search-results1000Search cap.
--max-list-items500Directory listing cap.
--backup-dirsystem tempBackup storage. Empty uses temp/mcp-batch-backups.
--backup-max-age7Days.
--backup-max-count100Backups to keep.
--receipt-diremptyPersist e3-v1 receipts. Empty is process memory only.
--hooks-enabledoffPre/post hooks.
--hooks-configemptyHooks JSON path.
--log-diremptyAudit log and metrics. Empty disables that logging.
--log-levelinfodebug, info, warn, error.
--debugoffDebug logging.
--normalizer-rulesemptyExtra normalizer rules JSON.
--risk-threshold-medium20Percent change for medium risk.
--risk-threshold-high75Percent change for high risk.
--risk-occurrences-medium50Occurrence count for medium risk.
--risk-occurrences-high100Occurrence count for high risk.
--binary-threshold1MBSize threshold for the binary protocol.
--vscode-apionVS Code API integration when available.
--versionPrint version and exit.
--benchRun the performance benchmark.

Recommended agent args: --profile=strict --compact-mode --roots-mode=union.