got tired of accidentally committing real bearer tokens and cookies inside big vcr.py yaml files whenever i forgot to set up a filter.

put together a python cli + /cassette-scrub skill and mcp server that scans .yaml and .json vcr cassettes and redacts api keys, auth headers, cookies, query params, and emails. it keeps Bearer prefixes and updates Content-Length so your tests still pass after scrubbing.

you can run cassette-scrub --install-skill all and cassette-scrub --install-mcp all (supports codex, claude code, cursor, windsurf, gemini, opencode), use it as a pre-commit hook, or download the windows .exe from releases.

pip install git+https://github.com/SoRichStudio/cassette-scrub.git cassette-scrub --check tests/ cassette-scrub --diff tests/ cassette-scrub --fix tests/ 

repo: https://github.com/SoRichStudio/cassette-scrub
windows .exe release: https://github.com/SoRichStudio/cassette-scrub/releases/tag/v0.2.0

feedback, bug reports and questions are more than welcome