You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Increase WebSocket read limit from 64 MB to 512 MB to handle large
heap snapshots wrapped in Target routing JSON escaping
- HeapSnapshot now saves directly to temp file instead of buffering
in memory, with a 5-minute timeout
- New restart_iwdp tool to recover after iwdp crashes (kills old
process, starts fresh, clears stale WebSocket connection)
- Add restart_iwdp to README tools table
- Bump version to 0.3.0
returnnil, map[string]any{"running": true, "started": true, "message": "ios-webkit-debug-proxy was not running — started it automatically"}, nil
484
484
})
485
485
486
+
mcp.AddTool(server, &mcp.Tool{
487
+
Name: "restart_iwdp", Description: "Restart ios-webkit-debug-proxy. Use this to recover after a crash (e.g., after a large heap snapshot kills the connection).",
returnnil, map[string]any{"restarted": true, "message": "ios-webkit-debug-proxy restarted. Use list_devices and select_page to reconnect."}, nil
500
+
})
501
+
486
502
// --- Device/Page management ---
487
503
mcp.AddTool(server, &mcp.Tool{
488
504
Name: "list_devices", Description: "List connected iOS devices (from iwdp listing port 9221). Each device's URL shows which port to use for list_pages.",
Name: "heap_snapshot", Description: "Take a heap snapshot",
1551
+
Name: "heap_snapshot", Description: "Take a heap snapshot and save to file. Warning: can be very large (50-200+ MB) on heavy pages and may take minutes.",
0 commit comments