Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of trace-mcp

[email protected]

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

Summary

Clean. The postinstall chain installs a launcher shim and a macOS launchd plist for the package's own daemon (~/Library/LaunchAgents/com.trace-mcp.server.plist). Files written outside the package are in ~/.trace/ (its own state directory), not AI-agent config directories. No network egress, no canary reads, no credential exfiltration.

Intent

Framework-aware code intelligence MCP server. The postinstall hook installs a launcher shim to ~/.trace/bin/trace and, on macOS, manages a launchd daemon (~/Library/LaunchAgents/com.trace-mcp.server.plist) for its own background service. It does NOT write to other tools' config directories (~/.claude/, ~/.codex/, etc.) — those plugin manifests are bundled but only consumed if the user explicitly runs `trace init`.

Findings

Launcher shim installed to ~/.trace/bin/ info scripts/postinstall-control-plane.mjs:241-264
postinstall-control-plane.mjs copies hooks/trace-mcp-launcher.sh to ~/.trace/bin/trace (mode 0755). This is the package's own CLI entry point, not a hook into another tool.
macOS launchd persistence for own daemon info scripts/postinstall-control-plane.mjs:366-599
Writes ~/Library/LaunchAgents/com.trace-mcp.server.plist and bootstraps it via launchctl. Runs the trace-mcp daemon (dist/cli.js serve-http) as a per-user service.
.claude-plugin/ and .codex-plugin/ are bundled manifests only info .claude-plugin/plugin.json, .codex-plugin/plugin.json
These directories declare MCP server registration for Claude Code and Codex respectively, but the npm install hook does NOT copy them to ~/.claude/ or ~/.codex/. They are only consumed if the user runs `trace init`.
Environment passed to spawned children (not exfiltrated) info dist/proxy.js:2557, dist/proxy.js:27603, dist/proxy.js:27742
dist/proxy.js passes { ...process.env, ... } when spawning daemon workers. This is how the daemon forwards the calling process's environment to its own children, not network exfiltration.

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.b94d9eaa62e1, /home/andy/.trace/launcher.env, /home/andy/.trace/bin/trace.tmp.77.121b44eb324c, /home/andy/.trace/bin/trace, /home/andy/.trace/bin/trace (chmod 0755)