Tracing setup for things-mcp.
stderr is always wired; if log_dir is provided we also append to <log_dir>/stdio.log. Safe to call exactly once per process.
log_dir
<log_dir>/stdio.log