mac-diagnostics-mcp
v0.7.0FastMCP server exposing macOS diagnostic scripts as MCP tools
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
triage Triage
Map a symptom description to an ordered diagnostic tool plan. Deterministic word-boundary keyword routing ("slow", "battery", "sleep", "crash", "disk", "network", "security", "startup", ...) to the right sequence of tools. Call this first when the user describes a complaint in plain language, then follow the plan; stop when a finding explains the symptom. Runs nothing itself — it only returns the plan.
| Parameter | Type | Description |
|---|---|---|
symptom * | string | The user's complaint in their own words, e.g. "battery drains overnight" or "Mac feels slow and the fan spins up" |
quick_health_check Quick Health Check
Fast macOS health snapshot (CPU, memory, disk, network, sleep, battery). Completes in under 30 seconds. Run this first to find which area needs deeper investigation.
| Parameter | Type | Description |
|---|---|---|
compare_last | boolean | Diff findings against the previous run with the same parameters |
include_report | boolean | Include the full prose report (set False for low-token sweeps) |
investigate_sleep Investigate Sleep
Investigate why macOS did not sleep or is waking unexpectedly. Checks pmset assertions, power settings, wake reasons, and sleep-blocking processes. The expensive unified-log checks run only when a cheap trigger fires (active sleep blocker, explicit until window, many recent wakes) or deep=True; skipped checks are listed as SKIPPED lines in the report.
| Parameter | Type | Description |
|---|---|---|
compare_last | boolean | Diff findings against the previous run with the same parameters |
deep | boolean | Force the expensive unified-log checks even without a trigger |
include_report | boolean | Include the full prose report (set False for low-token sweeps) |
since | string | How far back to look — e.g. "12h", "24h", "2026-05-21 22:00" |
until | Optional end time — e.g. "2026-05-22 08:00" | |
verbose | boolean | Include full pmset log (much larger output) |
investigate_cpu_memory Investigate Cpu Memory
Diagnose high CPU usage, memory pressure, and swap activity. Collects top processes, vm_stat, memory pressure level, and thermal throttling events. The expensive unified-log checks run only when a cheap trigger fires (memory pressure, swap in use, active thermal throttling) or deep=True; skipped checks are listed as SKIPPED lines in the report.
| Parameter | Type | Description |
|---|---|---|
compare_last | boolean | Diff findings against the previous run with the same parameters |
deep | boolean | Force the expensive unified-log checks even without a trigger |
include_report | boolean | Include the full prose report (set False for low-token sweeps) |
since | string | How far back to check unified log — e.g. "1h", "2h" |
investigate_disk Investigate Disk
Check disk health (SMART status), free space, storage breakdown, and Time Machine state.
| Parameter | Type | Description |
|---|---|---|
compare_last | boolean | Diff findings against the previous run with the same parameters |
include_report | boolean | Include the full prose report (set False for low-token sweeps) |
verbose | boolean | Include detailed per-partition info for every disk node |
investigate_network Investigate Network
Test network connectivity, DNS resolution, routing, and interface configuration. Runs ping tests, nslookup, and an HTTP latency check to apple.com, plus native DNS-tamper checks: cross-resolver answer comparison (default resolver vs 1.1.1.1 vs the macOS resolver stack), DHCP vs manual vs effective DNS config, /etc/hosts overrides, proxy/PAC detection, configuration profiles, ARP duplicate-MAC and gateway identity, and process-attributed connections (lsof). Native macOS tools only; third-party integrations (Little Snitch, KnockKnock) live in check_network_addons.
| Parameter | Type | Description |
|---|---|---|
compare_last | boolean | Diff findings against the previous run with the same parameters |
include_report | boolean | Include the full prose report (set False for low-token sweeps) |
check_network_addons Check Network Addons
Audit third-party network/security tool integrations (Little Snitch, KnockKnock, Netiquette, LuLu, DNSMonitor, Mac Monitor, eslogger, osquery, dnscrypt-proxy). Reports presence, versions, running state, Little Snitch network and Endpoint Security (BPF) extension states, Mac Monitor Security Extension state (live ES telemetry), Apple eslogger availability, and DNS-encryption path conflicts. Everything is read-only and feature-detected — absent tools are skipped explicitly, and root-gated data (Little Snitch CLI export, traffic log, eslogger/macmonitor capture) is reported with the manual sudo…
| Parameter | Type | Description |
|---|---|---|
compare_last | boolean | Diff findings against the previous run with the same parameters |
deep | boolean | Also run KnockKnock persistence scan and osquery snapshot |
include_report | boolean | Include the full prose report (set False for low-token sweeps) |
investigate_crashes Investigate Crashes
Collect recent app crash logs, system panics, OOM kills, and watchdog terminations, plus crash/hang trend analysis over the since window. A cheap file scan always runs: per-app crash counts (an app crashing >=3 times in the window is a WARN repeat offender), kernel panics (CRIT only inside the window), JetsamEvent memory-pressure kill files as OOM evidence, and Microstackshots hang reports. Modern .ips/.diag formats count alongside legacy .crash/.panic. The expensive unified-log checks run only when crash/panic reports exist on disk or deep=True; skipped checks are listed as SKIPPED lines in…
| Parameter | Type | Description |
|---|---|---|
compare_last | boolean | Diff findings against the previous run with the same parameters |
deep | boolean | Force the expensive unified-log checks even without a trigger |
include_report | boolean | Include the full prose report (set False for low-token sweeps) |
since | string | How far back to look — e.g. "24h", "48h", "2026-05-21 10:00" |
investigate_battery Investigate Battery
Check battery health, cycle count, current charge state, and charging history. Reports desktop-Mac status explicitly when no battery is present.
| Parameter | Type | Description |
|---|---|---|
compare_last | boolean | Diff findings against the previous run with the same parameters |
include_report | boolean | Include the full prose report (set False for low-token sweeps) |
investigate_startup_items Investigate Startup Items
List all launch agents, launch daemons, and login items. Identifies third-party services loaded at startup that may affect performance or privacy.
| Parameter | Type | Description |
|---|---|---|
assess | boolean | Also spot-check third-party persistence items for unsigned/ad-hoc binaries, interpreter-wrapped payloads, and temp-path programs (default: True). Set False for a faster, inventory-only listing. |
compare_last | boolean | Diff findings against the previous run with the same parameters |
include_report | boolean | Include the full prose report (set False for low-token sweeps) |
security_audit Security Audit
Audit macOS security posture — read-only snapshot of built-in controls. Checks FileVault, SIP, Gatekeeper, XProtect version, application firewall (state/stealth), sharing services via system-wide listening TCP ports (SSH, VNC, ARD, SMB, AFP, plus wildcard listeners), account hygiene (automatic login, guest account, screensaver password, admin users), and spot-checks third-party persistence items for unsigned/ad-hoc binaries, interpreter wrappers, and temp-path programs. Not a malware scanner — a baseline-controls audit. Follow up startup warnings with investigate_startup_items.
| Parameter | Type | Description |
|---|---|---|
compare_last | boolean | Diff findings against the previous run with the same parameters |
include_report | boolean | Include the full prose report (set False for low-token sweeps) |
backup_audit Backup Audit
Audit Time Machine backup health. Checks destination configured (CRIT if none), automatic backups enabled, last successful backup age (WARN >3 days, CRIT >7 days), whether a backup is running now, and local snapshot usage.
| Parameter | Type | Description |
|---|---|---|
compare_last | boolean | Diff findings against the previous run with the same parameters |
include_report | boolean | Include the full prose report (set False for low-token sweeps) |
storage_breakdown Storage Breakdown
Break down what is consuming the boot volume. Overall usage, purgeable space, local Time Machine snapshots, and the size of the usual heavyweight directories (Xcode DerivedData, CoreSimulator, Containers, Docker, iOS backups, Downloads, caches). Follow-up for "the disk is full — of what?" after investigate_disk.
| Parameter | Type | Description |
|---|---|---|
compare_last | boolean | Diff findings against the previous run with the same parameters |
include_report | boolean | Include the full prose report (set False for low-token sweeps) |
wifi_quality Wifi Quality
Measure Wi-Fi link quality: RSSI, noise, SNR, channel, transmit rate. Complements investigate_network (which tests connectivity, not signal quality). RSSI >= -60 dBm is strong, < -70 is weak; SNR < 15 dB means interference. The SSID is not reported — network names are identifying.
| Parameter | Type | Description |
|---|---|---|
compare_last | boolean | Diff findings against the previous run with the same parameters |
include_report | boolean | Include the full prose report (set False for low-token sweeps) |
check_software_updates Check Software Updates
Check macOS software-update status: pending updates and auto-update settings. Runs softwareupdate -l (can take up to a minute — it contacts Apple's servers) plus instant reads of automatic-update preferences and XProtect definition age. Pending updates with Security/Safari in the label are CRIT, other pending updates WARN. Also warns when automatic checking or critical-update installation is disabled, or XProtect is >14 days old. Never installs anything.
| Parameter | Type | Description |
|---|---|---|
compare_last | boolean | Diff findings against the previous run with the same parameters |
include_report | boolean | Include the full prose report (set False for low-token sweeps) |
list_mcp_servers List Mcp Servers
Audit MCP server configs across AI clients. Deep-audits Claude Desktop (claude_desktop_config.json): name, type (python-venv / npx / uvx / docker / ssh), command, args, and whether key paths exist on disk. Also detects server configs for Claude Code, Cursor, VS Code, and Windsurf. Env var NAMES are shown — values are redacted.
| Parameter | Type | Description |
|---|---|---|
compare_last | boolean | Diff findings against the previous run with the same parameters |
include_report | boolean | Include the full prose report (set False for low-token sweeps) |
inspect_node_packages Inspect Node Packages
Audit the Node.js and Bun ecosystem: versions, global packages, and updates. Detects all Node installations (Claude Code/Hermes, Homebrew on Apple Silicon or Intel, nvm/fnm/volta), reports npm global packages per installation, Bun global tools in ~/.bun/bin, and which packages have updates available.
| Parameter | Type | Description |
|---|---|---|
compare_last | boolean | Diff findings against the previous run with the same parameters |
include_report | boolean | Include the full prose report (set False for low-token sweeps) |
update_node_packages Update Node Packages
Show or apply updates for global Node.js and Bun packages. Default (dry-run): reports what npm outdated -g shows. No changes made. apply=True: runs brew upgrade bun and npm update -g (Homebrew prefix only). include_mcp_venvs=True: also audits Python MCP server venvs for pip updates, and upgrades them when apply=True. Mutating calls (apply=True) additionally require the server to be started with the environment variable MAC_DIAG_ALLOW_MUTATIONS=1; otherwise the request is refused. This keeps a prompt-injected or over-eager agent from modifying the system.
| Parameter | Type | Description |
|---|---|---|
apply | boolean | If True, actually run update commands (default: dry-run only) |
include_mcp_venvs | boolean | If True, also audit Python venv MCP servers for pip updates |
include_report | boolean | Include the full prose report |