Brings iOS memory and performance debugging into chat by wrapping Xcode command-line tools like `leaks`, `heap`, and `xctrace`. Parse `.memgraph` files to hunt retain cycles, analyze `.trace` bundles for hangs and time profiles, or ingest MetricKit diagnostics from production builds. The MCP layer exposes over 40 tools covering cycle classification against SwiftUI and Combine patterns, diff comparisons between two memory snapshots, network activity timelines, and verification hooks that check whether a proposed fix actually clears the leak. Works on macOS against simulators and Mac apps. Physical iOS device captures still require Xcode's GUI, but once you have the artifact the analysis runs entirely through Claude or Cursor without opening Instruments. Ships with honest fault surfaces when Apple tooling breaks, like the macOS 26 `task_for_pid` regression.
claude mcp add --transport stdio carloshpdoc-memorydetective uvx memorydetective