Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of trace-mcp

[email protected]

clean   confidence 75%   action allow   analyzed 2026-09-24 19:22 UTC by yolo in 10 tool calls, with lab detonation

Summary

The postinstall chain (preflight-native.mjs, postinstall-app.mjs, postinstall-control-plane.mjs) performs benign housekeeping: primes macOS amfid for native bindings, downloads and swaps a legacy .app bundle from GitHub releases when detected, and installs a user LaunchAgent plist at ~/Library/LaunchAgents/com.trace-mcp.server.plist. Files written outside the package are ~/.trace/launcher.env, ~/.trace/bin/trace (launcher shim), and ~/.trace/postinstall.log — the package's own data directory, not another tool's config. No network egress, no credential reads, no unexpected behavior observed in the offline lab.

Intent

Framework-aware code intelligence MCP server that installs a launcher shim and, on macOS, a LaunchAgent daemon for background service. The postinstall hooks perform a macOS codesign cache prime, update a legacy Electron .app bundle from GitHub releases (SHA-256 verified), and install a user-launchd plist — all matching the package's stated desktop-app+CLI purpose.

persistence

Findings

LaunchAgent persistence on macOS info scripts/postinstall-control-plane.mjs:124-129, 576-593
postinstall-control-plane.mjs writes ~/Library/LaunchAgents/com.trace-mcp.server.plist and bootstraps it via launchctl. This is a standard macOS daemon persistence mechanism for a background service.
Launcher shim installed to ~/.trace/bin/ info scripts/postinstall-control-plane.mjs:241-263
Copies hooks/trace-mcp-launcher.sh (or .cmd/.ps1) to ~/.trace/bin/trace (or trace.cmd). This is the package's own bin directory, not a system location.
Legacy .app bundle update from GitHub releases info scripts/postinstall-app.mjs:366-521
postinstall-app.mjs downloads trace-mcp-*.zip from GitHub release assets, verifies SHA-256 against a sibling .sha256 asset, Gatekeeper-checks with spctl, and swaps the .app in place. Only runs on macOS for legacy bundles that lack electron-updater.
macOS codesign cache prime info scripts/preflight-native.mjs:55-64
preflight-native.mjs runs codesign --verify on all .node binaries in node_modules to warm amfid. Read-only, no file mutation.
Files written to ~/.trace/ (package's own data dir) info scripts/postinstall-control-plane.mjs:115-122
launcher.env, bin/trace, postinstall.log written to ~/.trace/ — the package's designated data directory, not ~/.claude/, ~/.codex/, or another tool's config.

Lab evidence

Install hooks ran in the isolated lab. Processes spawned: 11. Hooks: postinstall (exit 0), prepare (exit 127), require (exit 0).

Files written outside the package: /home/andy/.trace/postinstall.log, /home/andy/.trace/launcher.env.tmp.77.f533e2d6a504, /home/andy/.trace/launcher.env, /home/andy/.trace/bin/trace.tmp.77.2668967ad564, /home/andy/.trace/bin/trace, /home/andy/.trace/bin/trace (chmod 0755)