Skills/PyPI/mac-diagnostics-mcp

mac-diagnostics-mcp@0.6.0

CAUTION

Publisher claims: "FastMCP server exposing macOS diagnostic scripts as MCP tools" Observed in sandbox: calls pypi.org only, touches nothing outside the project, writes no memory.

Registry PyPI (MCP server)Publisher docdyhr · publishing for 518 daysInstalls 110Last detonated 3d ago

Coverage

Server started and answered tools/list.
Tested
MCP initialize and tools/list · every tool description, for hidden instructions · every file read, file written and host contacted by what ran
Not tested
what the tools do when called with real credentials

Behavior

In our sandbox run on 2026-11-26, [email protected] read no files and called 1 host, and its code names 3 environment variables. Coverage: full.

Files read

None recorded.

Hosts called

  • pypi.orgdeclared

Environment variables its code names

MAC_DIAG_STATE_DIR, MCP_APPLY, XDG_STATE_HOME

Names only, read from the code. We never hold a value.

Tools offered

backup_audit, check_network_addons, check_software_updates, inspect_node_packages, investigate_battery, investigate_cpu_memory, investigate_crashes, investigate_disk, investigate_network, investigate_sleep, investigate_startup_items, list_mcp_servers, quick_health_check, security_audit, storage_breakdown, triage, update_node_packages, wifi_quality

Changes since the prior version

No prior version with a result to compare.

What we did not test

  • what the tools do when called with real credentials
Run date2026-11-26
Coveragefull
Engine1.9.2, script@linux
Reproducenpx -y vet-skills try mac-diagnostics-mcp
This recordbehavior.json, behavior.md, signed attestation

This is a record of what one version did in the runs we made. It is evidence, not a certificate.

Before you give it your token

It will ask for
no credential variables read in the code
Where it talks to
no vendor host named in the codeAlso apple.com — not the publisher's domain; check what for before connecting.
What we saw when it ran
no credential files read · reached only pypi.org
What we could not test
what the tools do when called with real credentials

Connect it under the guard; read the third-party hosts first. The code names apple.com as well as its own vendor. The guard pins the network to the hosts the honeypot saw.

$vet-skills run --net declared -- uvx mac-diagnostics-mcp

Never paste a credential into a chat, a ticket or a report, including ours. How the guard holds it.

Is [email protected] safe to install?

KillerSkills ran it in the KillerSkills honeypot sandbox (2 scenarios) on 2026-11-26 and scored it 74/100 (Caution). It is not known to be malicious, but it has behaviour or code a security policy should decide on before install. Notable findings: Privileged sudo command; Privileged sudo command; Privileged sudo command. Summary: calls pypi.org only, touches nothing outside the project, writes no memory.

Behavior trace

Honeypot run · 42 s · 2 scenarios
t+CategoryObserved action
0.0sprocessno install scripts in bundle
22sprocessdependency install exit 0
42sfilesystemwrote ~/.local/share/fastmcp/version_cache.json
42snetworkCONNECT tcp://pypi.org:443
42sprocessexec .venv/bin/mac-diagnostics-mcp
42sclaimed18 tools: triage, quick_health_check, investigate_sleep, investigate_cpu_memory, investigate_disk, investigate_network, check_network_addons, investigate_crashes, investigate_battery, investigate_startup_items, security_audit, backup_audit, storage_breakdown, wifi_quality, check_software_updates, list_mcp_servers, inspect_node_packages, update_node_packages
42stools80896116ece2cbad
42stoolsd5e83ac807d4b2a7
42stoolsadc6ca3b544a81e4
42stools24f48e7107ec4d2d
42stoolse7d4a61557fcf10b
42stools2d59e19b825c28e8
42stools482ae843749100c5
42stools395a59728eb6fb1f
42stoolsafcb97161331b9d5
42stools20def205eb68da1b
42stools130dd1cf5df9c1be
42stools54cc3561f3232293
42stools1f271b1d8861b29b
42stools0a487a003ed932f4
42stools8c9b9218e649412b
42stoolscc2c181dd6ce882d
42stools69b8a3fa47c2f9a3
42stools4d472aa9bb47db1b
42sprocessscript backend runs setup only
42sprocessno install scripts to re-run

Static findings

HIGH
Privileged sudo commandmac_diagnostics_mcp/scripts/mac-battery.sh:189 · Privileged sudo command — agent may execute with elevated privilegessudo powermetrics --samplers smc,battery -n 1Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandmac_diagnostics_mcp/scripts/mac-network-addons.sh:16 · Privileged sudo command — agent may execute with elevated privileges# exact sudo command for manual use — the script itself never sudo's.Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandmac_diagnostics_mcp/scripts/mac-disk-health.sh:212 · Privileged sudo command — agent may execute with elevated privileges- If backup stalls: sudo tmutil stopbackup && sudo tmutil startbackupFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandmac_diagnostics_mcp/scripts/mac-cpu-memory.sh:255 · Privileged sudo command — agent may execute with elevated privilegessudo purge (clears disk cache — not harmful, temporary)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedmac_diagnostics_mcp/scripts/mac-node-update.sh:255 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Process kill commandmac_diagnostics_mcp/scripts/mac-network.sh:412 · Process kill command — agent can terminate processes# and set -e would kill the script (happens on machines with noFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandmac_diagnostics_mcp/server.py:164 · Privileged sudo command — agent may execute with elevated privilegestraffic log) is reported with the manual sudo command instead. TheFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
npx invocation of non-well-known packagemac_diagnostics_mcp/scripts/mac-mcp-servers.sh:233 · npx invocation of non-well-known package — may execute untrusted codeprint("No npx servers found.")Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
npx invocation of non-well-known packagemac_diagnostics_mcp/scripts/mac-mcp-servers.sh:203 · npx invocation of non-well-known package — may execute untrusted codesection "Health check: npx servers"Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
HIGH
Privileged sudo commandmac_diagnostics_mcp/scripts/mac-network-addons.sh:359 · Privileged sudo command — agent may execute with elevated privilegessudo littlesnitch export-model ~/ls-model.json # full JSON backupFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Process kill commandmac_diagnostics_mcp/scripts/mac-storage.sh:130 · Process kill command — agent can terminate processes# du gets a per-directory timeout: one slow directory must not kill theFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedmac_diagnostics_mcp/scripts/mac-node-update.sh:270 · Python subprocess execution detectedup = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedmac_diagnostics_mcp/runner.py:70 · Python subprocess execution detectedproc = subprocess.Popen(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Process kill commandmac_diagnostics_mcp/scripts/mac-crashes.sh:113 · Process kill command — agent can terminate processes# .ips (JSON) crash reports, JetsamEvent-*.ips kill reports, andFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandmac_diagnostics_mcp/scripts/mac-sleep-investigate.sh:295 · Privileged sudo command — agent may execute with elevated privilegessudo pmset restoredefaultsFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
npx invocation of non-well-known packagemac_diagnostics_mcp/scripts/mac-mcp-servers.sh:218 · npx invocation of non-well-known package — may execute untrusted codeprint(f"npx binary: {npx_path or 'NOT FOUND'}")Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
HIGH
Privileged sudo commandmac_diagnostics_mcp/scripts/mac-network-addons.sh:360 · Privileged sudo command — agent may execute with elevated privilegessudo littlesnitch log-traffic # recent connectionsFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedmac_diagnostics_mcp/scripts/mac-mcp-servers.sh:258 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Process kill commandmac_diagnostics_mcp/server.py:183 · Process kill command — agent can terminate processes(CRIT only inside the window), JetsamEvent memory-pressure kill filesFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Process kill commandmac_diagnostics_mcp/scripts/mac-crashes.sh:325 · Process kill command — agent can terminate processesfinding --suggest "investigate_cpu_memory(since=1h)" WARN memory "${oom} memory-pressure kill report(s) (JetsamEvent files) in the last ${SINCE}"Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandmac_diagnostics_mcp/scripts/mac-network.sh:446 · Privileged sudo command — agent may execute with elevated privilegessudo killall -HUP mDNSResponderFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandmac_diagnostics_mcp/scripts/mac-network-addons.sh:318 · Privileged sudo command — agent may execute with elevated privilegesfinding INFO addons "Little Snitch rules/traffic-log export is root-gated — run manually: sudo littlesnitch export-model ~/ls-model.json"Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandmac_diagnostics_mcp/scripts/mac-network.sh:433 · Privileged sudo command — agent may execute with elevated privilegesFlush: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponderFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Process kill commandtests/test_runner.py:131 · Process kill command — agent can terminate processes# Even the post-kill communicate() can itself hang (e.g. aFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
npx invocation of non-well-known packagemac_diagnostics_mcp/server.py:304 · npx invocation of non-well-known package — may execute untrusted code(python-venv / npx / uvx / docker / ssh), command, args, and whether keyFix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
Process kill commandmac_diagnostics_mcp/scripts/mac-crashes.sh:370 · Process kill command — agent can terminate processes- JetsamEvent-*.ips files are the on-disk evidence — one per killFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
npx invocation of non-well-known packagemac_diagnostics_mcp/scripts/mac-mcp-servers.sh:404 · npx invocation of non-well-known package — may execute untrusted codenpx server not working:Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
HIGH
Privileged sudo commandmac_diagnostics_mcp/scripts/mac-network-addons.sh:361 · Privileged sudo command — agent may execute with elevated privilegessudo littlesnitch list-preferences # incl. DNS encryptionFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandmac_diagnostics_mcp/scripts/mac-network.sh:432 · Privileged sudo command — agent may execute with elevated privilegesFix: sudo networksetup -setdnsservers Wi-Fi 1.1.1.1 8.8.8.8Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandmac_diagnostics_mcp/scripts/mac-network.sh:250 · Privileged sudo command — agent may execute with elevated privileges# Note: without sudo this sees only the current user's processes — rootFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
npx invocation of non-well-known packagemac_diagnostics_mcp/scripts/mac-mcp-servers.sh:201 · npx invocation of non-well-known package — may execute untrusted codeecho "Running: npx health checks" >&2Fix: Pin versions and sources; vendor anything fetched at install time.
AST06

Cost to the agent

Instructions loaded
≈55 tok
1 file · 38 in bundle
Tool list per prompt
≈3,177 tok
18 tools · 177 per tool
Handshake
1974 ms
launch to tools/list, stdio
Undocumented tools
0
description under 20 chars · avg 411

Tokens estimated at four characters each. The tool list is re-read by the agent on every turn, so it is the number to compare between servers that do the same job: ranked across the index.

Known vulnerabilities

No advisories in OSV for mac-diagnostics-mcp@0.6.0 as of 3d ago. This is the package itself, not its dependencies.

What would make this Verified

6 points to 80 · weights: behavior 45%, static 25%, prompt 15%, publisher 15%
  1. Unclaimed publisher≈ +8 on the totalClaim docdyhr: a verified publisher gets +50 on publisher trust. It is free and usually instant with GitHub sign-in.
  2. Touches files outside the project≈ +7 on the totalKeep reads and writes inside the working directory, or declare the exact paths in `filesystem:` and explain why in the README.
  3. Privileged sudo command≈ +4 on the totalBuild commands from fixed arguments; do not interpolate untrusted strings into a shell.
  4. Python subprocess execution detected≈ +2 on the totalBuild commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
  5. Process kill command≈ +2 on the totalBuild commands from fixed arguments; do not interpolate untrusted strings into a shell.
  6. npx invocation of non-well-known package≈ +2 on the totalPin versions and sources; vendor anything fetched at install time.
Publish a new version to PyPI, then queue it here. Not your skill? Claim the handle to get verdict changes by email.Claim docdyhrPropose a patch to the maintainer