Code Reaper
JSON →CodeReaper is an AI-driven MCP tool for Cursor that finds and removes dead JavaScript by exploring real UIs and capturing V8 coverage
Install
pip install codereaper Tools · 10
- find_dead_code Full pipeline: scan + analyze. Returns dead-code report with file paths, line numbers, risk scores, and removal recommendations.
- scan_website Scan only (no analysis). Returns scan_id for later use.
- analyze_dead_code Analyze a completed scan. Takes scan_id.
- generate_patches Generate unified diffs to remove dead code (conservative / balanced / aggressive).
- get_patch_diff Retrieve the combined diff for a patch.
- apply_patch Apply a patch to source files (stores snapshots for rollback).
- verify_patch Re-run the browser agent to check for regressions after patching.
- rollback_patch Restore original files from pre-patch snapshots.
- list_scans List recent scans.
- get_scan_status Get detailed status of a scan.
Environment variables
GEMINI_API_KEY