Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of trace-mcp

[email protected]

clean   confidence 85%   action allow   analyzed 2026-09-24 19:23 UTC by yolo in 17 tool calls, with lab detonation

Summary

Install hook writes the package's own launcher shim and config to ~/.trace/ and, on macOS, registers a LaunchAgent for its daemon. Downloads updates from api.github.com (GitHub releases) with SHA-256 verification. No credential theft, no exfiltration, no unexpected network egress.

Intent

An MCP server for code intelligence that installs a local daemon (LaunchAgent on macOS, pidfile-based on Linux/Windows) and a launcher shim at ~/.trace/bin/trace. The postinstall hook manages its own state directory (~/.trace/) and, on macOS, updates legacy Electron bundles from GitHub releases.

Findings

Launcher shim installed to ~/.trace/bin/trace info scripts/postinstall-control-plane.mjs:241-263
postinstall-control-plane.mjs copies hooks/trace-mcp-launcher.sh to ~/.trace/bin/trace (chmod 0755) and writes ~/.trace/launcher.env. This is the package's own launcher, not a hook into other tools.
macOS LaunchAgent plist for daemon persistence info scripts/postinstall-control-plane.mjs:536-600
Writes ~/Library/LaunchAgents/com.trace-mcp.server.plist and bootstraps it with launchd. Standard macOS daemon management for the package's own server.
GitHub release download for app update info scripts/postinstall-app.mjs:75,238-242
postinstall-app.mjs downloads a zip from https://api.github.com/repos/…/releases/assets/… for legacy Electron bundles, verifies SHA-256 against a sibling .sha256 asset, and swaps the .app. Gated on TRACE_MCP_NO_AUTO_UPDATE=1.
process.env passed to child processes (standard Node) info dist/proxy.js:2557,27588,27727,29945
dist/proxy.js passes ...process.env to worker threads, git commands, and daemon spawns. This is standard Node.js behavior, not credential harvesting.

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.8618a2d8dca9, /home/andy/.trace/launcher.env, /home/andy/.trace/bin/trace.tmp.77.982d43ad8375, /home/andy/.trace/bin/trace, /home/andy/.trace/bin/trace (chmod 0755)