Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of trace-mcp

[email protected]

clean   confidence 75%   action allow   analyzed 2026-09-24 20:44 UTC by yolo in 23 tool calls, with lab detonation

Summary

Install hooks run three scripts: preflight-native.mjs primes macOS code-signing validation on .node binaries; postinstall-app.mjs stops the running daemon and updates legacy macOS .app bundles from GitHub releases (SHA-verified); postinstall-control-plane.mjs writes ~/.trace/launcher.env, installs the launcher shim at ~/.trace/bin/trace, and registers a macOS LaunchAgent. The lab wrote only ~/.trace/ (launcher.env, launcher shim, postinstall.log) — no credential files touched, no external network calls.

Intent

A framework-aware code intelligence MCP server for AI coding agents. The postinstall hooks set up a local daemon (launchd agent on macOS, pidfile-based on Linux/Windows) and a launcher shim — nothing more.

code_execution

Findings

LaunchAgent plist written on macOS info scripts/postinstall-control-plane.mjs:124-129
postinstall-control-plane.mjs writes ~/Library/LaunchAgents/com.trace-mcp.server.plist and bootstraps it with launchd.
Launcher shim installed to ~/.trace/bin/ info scripts/postinstall-control-plane.mjs:241-264
Copies hooks/trace-mcp-launcher.sh (or .cmd/.ps1) to ~/.trace/bin/trace for MCP clients to invoke.
Legacy .app bundle update from GitHub releases info scripts/postinstall-app.mjs:1-36
postinstall-app.mjs downloads a zip from the package's GitHub Releases, verifies SHA-256 against a sibling .sha256 asset, Gatekeeper-verifies with spctl, and swaps the .app.
Daemon stop on install info scripts/postinstall-app.mjs:117-145
Stops the running trace-mcp daemon via launchctl stop (macOS) or kill -SIGTERM (Linux/Windows) so it respawns with the new binary.

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.5cc56c8ad094, /home/andy/.trace/launcher.env, /home/andy/.trace/bin/trace.tmp.77.0f7bae56248a, /home/andy/.trace/bin/trace, /home/andy/.trace/bin/trace (chmod 0755)