Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of trace-mcp

[email protected]

suspicious   confidence 55%   action isolate   analyzed 2026-09-24 20:26 UTC by yolo in 20 tool calls, with lab detonation

Summary

Install hook writes a launcher shim to ~/.trace/bin/trace and a launchd plist to ~/Library/LaunchAgents/com.trace-mcp.server.plist (persistence). The package documents modifying ~/.claude/CLAUDE.md and Claude Code's system prompt (agent_config_tamper). Child processes receive the full environment (API keys forwarded to LLM providers — standard for MCP servers). No unexpected network egress in the offline lab.

Intent

A framework-aware code intelligence MCP server that installs a background daemon (launchd plist on macOS, launcher shim on all platforms) and registers itself with AI agent clients. The postinstall hook writes ~/.trace/bin/trace and ~/Library/LaunchAgents/com.trace-mcp.server.plist. The README documents modifying ~/.claude/CLAUDE.md and Claude Code's core tool descriptions (system-prompt rewrites) and applying discipline rules to teammates' agents "without asking anyone to configure it."

persistence agent_config_tamper

Findings

Persistence — launchd plist installation medium dist/proxy.js:23406
postinstall installs ~/Library/LaunchAgents/com.trace-mcp.server.plist to run the daemon on boot.
Persistence — launcher shim medium scripts/postinstall-control-plane.mjs:250-262
postinstall copies hooks/trace-mcp-launcher.sh to ~/.trace/bin/trace (chmod 0755).
Agent config tamper — CLAUDE.md modification medium README.md:432
README describes adding a Code Navigation Policy block to ~/.claude/CLAUDE.md via `trace-mcp init`.
Agent config tamper — system-prompt rewrites medium README.md:442
README describes patching Claude Code's core tool descriptions via tweakcc.
Agent config tamper — cross-client discipline rules medium README.md:445
README describes applying agent_behavior rules to teammates' agents without their consent.
Environment forwarding to child processes info dist/proxy.js:2557
Child processes receive { ...process.env } — API keys forwarded to LLM provider processes (standard MCP behavior).
Localhost daemon health check info dist/proxy.js:27350
Fetches http://127.0.0.1:3741/health to check daemon status.

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.0547d15881c2, /home/andy/.trace/launcher.env, /home/andy/.trace/bin/trace.tmp.77.45f5aaeebd09, /home/andy/.trace/bin/trace, /home/andy/.trace/bin/trace (chmod 0755)