Skip to content

Stealth browser automation for AI agents over MCP and the Chrome DevTools Protocol: navigation, network hooks, DOM extraction, and pixel-accurate UI cloning.

Document code sign clone cleanup and bump version to 0.3.3

Vibhek Soni7e6a81c9bd7a
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d7697a0..d63ac20 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -21,6 +21,7 @@ The format is based on Keep a Changelog and adheres to Semantic Versioning where
- **Tests** - `tests/test_js_values.py`, `tests/test_element_cloners.py`, and `tests/test_hooks_and_proxy.py` cover result conversion, template escaping, cloner data paths, hook matching, proxy parsing, and debug log export. CI now runs the unit test suite.
### Fixed
+- **macOS disk leak** - Chrome on macOS copied its whole app bundle into a `code_sign_clone` folder at every launch and only removed it on a clean exit, so crashed or killed instances left about 1 to 2 GB behind each time. Chrome now starts with `MacAppCodeSignClone` turned off, merged into a single `--disable-features` switch with nodriver's defaults and any caller features. Verified on a macOS runner with Chrome 155: one leftover clone per killed launch before, none after (#40).
- **README images on PyPI** - The logo, sponsor banner, demo GIF, and showcase image use absolute GitHub URLs, so they show on the PyPI page instead of breaking. The version badge shows the PyPI release instead of a stale 0.2.5, and file links point at GitHub.
- **Fresh installs** - `mcp` is pinned to 1.30.0. `mcp` 2.x removed names that fastmcp 2.11.2 imports, so an unpinned install could fail at startup. `py2js` now comes from PyPI (1.2.1, the same code as the old git pin), so installing no longer needs git, and `pydantic` is 2.12.5, which has Python 3.14 wheels.
- **Sandbox flags** - Chrome keeps its sandbox on Windows and macOS, including under an administrator account. Only Linux as root or in a container gets `--no-sandbox`. `--disable-setuid-sandbox`, `--single-process`, and `--disable-gpu` are no longer added anywhere, so headed windows no longer show the "unsupported command-line flag" bar, tabs no longer share one crash-prone process in containers, and WebGL stays available.
diff --git a/README.md b/README.md
index 2d40217..ee425be 100644
--- a/README.md
+++ b/README.md
@@ -582,6 +582,9 @@ Run with `--sandbox=false` only if your environment requires it, or ensure the e
**Orphan Chromium processes or `uc_*` temp profiles accumulate**
The server reaps idle browser instances automatically and performs startup cleanup of tracked orphan browser processes plus stale `uc_*` temp profiles. Set `BROWSER_IDLE_TIMEOUT=0` only if you want fully manual browser lifetime management.
+**macOS disk fills up with `code_sign_clone` folders**
+Older versions let Chrome copy its app bundle into `com.google.Chrome.code_sign_clone` at every launch, and the copy stayed behind when an instance crashed or was killed. The server now launches Chrome with `MacAppCodeSignClone` turned off, so no new copies are made. To remove copies left by older versions, quit Chrome and run `rm -rf /private/var/folders/*/*/X/com.google.Chrome.code_sign_clone` (use `com.microsoft.edgemac.code_sign_clone` for Edge).
+
**Too many tools cluttering the AI chat**
Use `--minimal` for 20 core tools, `--xpool-safe` for xpool-compatible operation, or selectively disable sections:
diff --git a/src/stealth_browser_mcp/__init__.py b/src/stealth_browser_mcp/__init__.py
index 5427c85..92b325c 100644
--- a/src/stealth_browser_mcp/__init__.py
+++ b/src/stealth_browser_mcp/__init__.py
@@ -1,3 +1,3 @@
"""Stealth Browser MCP, undetectable browser automation over the Model Context Protocol."""
-__version__ = "0.3.2"
+__version__ = "0.3.3"