Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of trace-mcp

[email protected]

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

Summary

Install hook runs three scripts: preflight-native.mjs (macOS codesign preflight on .node binaries, harmless), postinstall-app.mjs (downloads a GitHub release zip and replaces the trace-mcp.app desktop bundle, SHA-256 verified), and postinstall-control-plane.mjs (writes ~/.trace/launcher.env, installs a launcher shim at ~/.trace/bin/trace, and on macOS writes ~/Library/LaunchAgents/com.trace-mcp.server.plist for daemon persistence). The .claude-plugin/ and .codex-plugin/ directories contain plugin manifests for manual MCP registration — they are not auto-installed. The large dist/proxy.js spreads process.env only when spawning the daemon child process (standard Node behavior). Lab wrote files only to ~/.trace/ (the package's own data directory), no network egress, no canary credential reads.

Intent

A framework-aware code intelligence MCP server. The postinstall hook warms macOS codesign validation, self-updates the desktop .app from GitHub releases, and installs a launcher shim + macOS launchd daemon plist for background operation.

persistence

Findings

macOS launchd daemon persistence 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 with launchd, keeping the trace-mcp daemon alive across reboots.
Desktop app self-update from GitHub releases info scripts/postinstall-app.mjs:523-622
postinstall-app.mjs fetches the latest GitHub release, downloads the .zip asset, verifies SHA-256 against a sibling .sha256 asset, and replaces the installed trace-mcp.app bundle in place (or stages a pending zip for the running app to apply on restart).
Launcher shim installation to ~/.trace/ info scripts/postinstall-control-plane.mjs:241-264, 647-655
postinstall-control-plane.mjs copies hooks/trace-mcp-launcher.sh (or .cmd/.ps1) to ~/.trace/bin/trace and writes ~/.trace/launcher.env with absolute node and cli.js paths.
Plugin manifests for manual MCP registration (not auto-installed) info .claude-plugin/plugin.json:1-33, .codex-plugin/plugin.json:1-30
.claude-plugin/plugin.json and .codex-plugin/plugin.json describe MCP server registration but are bundled files only — no hook writes them to ~/.claude/ or ~/.codex/.
process.env spread for daemon spawning (standard Node behavior, not credential exfiltration) info dist/proxy.js:2557, 27567, 27706
dist/proxy.js spreads process.env when spawning the daemon child process (lines 2557, 27567, 27706) — this is standard for ensuring the child inherits the parent environment, not for stealing credentials.

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.a68ca6875b5d, /home/andy/.trace/launcher.env, /home/andy/.trace/bin/trace.tmp.77.23df1fd0b033, /home/andy/.trace/bin/trace, /home/andy/.trace/bin/trace (chmod 0755)