{ "name": "memorydetective", "version": "1.18.2", "mcpName": "io.github.carloshpdoc/memorydetective", "description": "MCP server for iOS leak hunting and performance investigation. 42 tools across .memgraph, .trace, and .mxdiagnostic files. v1.18 adds analyzeMetricKitPayload (42nd tool, post-mortem production-diagnostics from MetricKit JSON payloads — crash clusters, hang hotspots, CPU/disk exceptions), open-enum SupportStatusKind, invocation-scoped schemaDiscovery cache (600-3000ms wall-clock win on summarizeTrace), and local-only integration tests against real Apple .trace bundles. v1.17 reliability pass: strtobool env truthy parsing, verifyFix whitelist match modes, Instruments.app AppleScript document query, inspectTrace fault-tolerant fallback, configurable countAlive noise filter. v1.16 added recordViaInstrumentsApp (macOS 26.x trace recording workaround). 36-pattern retain-cycle classifier with Swift fixTemplate snippets, abandoned-memory diff for KVO/NotificationCenter/cache shapes that escape leaks(1), per-test CI gate (detectLeaksInXCTest + detectLeaksInXCUITest), main-thread violation classifier, single-call build+boot+launch for the macOS 26.x leaks --outputGraph regression, replayScenario + captureScenarioState verify-fix loop, compareTracesByPattern, SourceKit-LSP source bridging. macOS only (depends on leaks(1) and xctrace).", "type": "module", "bin": { "memorydetective": "dist/index.js" }, "main": "./dist/index.js", "files": [ "dist", "README.md", "LICENSE", "NOTICE", "CHANGELOG.md", "USAGE.md" ], "scripts": { "build": "tsc && cp -R src/templates dist/templates && chmod +x dist/index.js", "dev": "tsx src/index.ts", "test": "vitest run", "test:watch": "vitest", "prepublishOnly": "npm run build" }, "keywords": [ "mcp", "model-context-protocol", "ios", "swift", "swiftui", "memory-leak", "retain-cycle", "memgraph", "xctrace", "instruments", "performance" ], "author": "Carlos Henrique", "license": "Apache-2.0", "homepage": "https://github.com/carloshpdoc/memorydetective#readme", "repository": { "type": "git", "url": "git+https://github.com/carloshpdoc/memorydetective.git" }, "bugs": { "url": "https://github.com/carloshpdoc/memorydetective/issues" }, "engines": { "node": ">=20" }, "dependencies": { "@modelcontextprotocol/sdk": "^1.0.0", "fast-xml-parser": "^5.7.2", "vscode-jsonrpc": "^8.2.1", "vscode-languageserver-protocol": "^3.17.5", "zod": "^3.23.0" }, "devDependencies": { "@types/node": "^22.0.0", "tsx": "^4.19.0", "typescript": "^5.6.0", "vitest": "^2.1.0" } }