Installation
Requirements
Section titled “Requirements”- Node 18+ — for the
npx composeproofinstaller - Java 17+ — the ComposeProof JAR runs on JVM. Check with
java -version. - A Compose project — any project with
@Preview-annotated composables (Android, CMP, or Desktop)
No Gradle plugin needed. No build file changes. ComposeProof uses Gradle Tooling API to read your project without touching it.
Quick install (recommended)
Section titled “Quick install (recommended)”npx composeproofThe installer runs a 7-step wizard:
- Detect OS — determines whether to create a shell wrapper (macOS/Linux) or
.cmdfile (Windows) - Check Java — verifies Java 17+ is on PATH. Exits with instructions if not found.
- Download JAR — fetches the latest
composeproof.jarfrom aldefy/composeproof-releases to~/.composeproof/ - Create binary — writes a
composeprooflauncher script to~/.local/bin/(or%APPDATA%\composeproof\bin\on Windows) and adds it to PATH - Detect AI clients — scans for Claude Code, Gemini CLI, Cursor, and Android Studio on the machine
- Write MCP config — for each detected client, writes or merges the
composeproofserver entry into the appropriate config file (global or per-project) - Verify — runs
composeproof --versionto confirm the install
After the wizard completes, restart your AI client to pick up the new MCP server.
Alternative: Homebrew
Section titled “Alternative: Homebrew”brew install aldefy/tap/composeproofInstalls the JAR + launcher via Homebrew. MCP config is not written automatically — see Configuration to set that up manually.
Alternative: Manual JAR
Section titled “Alternative: Manual JAR”Download composeproof.jar from aldefy/composeproof-releases, then run:
java -jar composeproof.jar serve --stdioPoint your MCP client at this command. See Configuration for the exact JSON.
Verify the install
Section titled “Verify the install”composeproof --versionExpected output:
ComposeProof v1.1.0Update
Section titled “Update”npx composeproof --updateDownloads the latest JAR and replaces the existing one in ~/.composeproof/. The binary on PATH is unchanged.
Uninstall
Section titled “Uninstall”npx composeproof --uninstallRemoves the JAR, the launcher script, and the PATH entry. MCP config entries written by the installer are left in place — remove them manually if needed.
Next steps
Section titled “Next steps”- Configuration — manually configure MCP clients or adjust settings
- First Render — render your first
@Previewin 5 minutes