Tauri desktop app test automation via MCP. Launch, inspect, interact with, and test Tauri v2 apps using accessibility tree snapshots and DOM manipulation.
Tauri app directory: path relative to project root (e.g. . for single-app repos, apps/desktop for monorepos).
2. Run the installer command
/tauri-mcp:install
This auto-edits your Tauri project: Cargo.toml, src-tauri/src/lib.rs, capabilities, package.json, the frontend entry (main.tsx/main.ts), and .gitignore. Every write is previewed as a diff and requires your confirmation first.
3. Restart Claude Code
The tauri-mcp MCP server registers on restart. Verify with /mcp — it should show tauri-mcp as connected. You can now call start_session, snapshot, click, etc.
Why restart?
MCP servers are registered at Claude Code startup. Installing the plugin or changing tauri_app_dir both require a restart to take effect.
What the plugin ships
The MCP server ships as a self-contained single-file bundle (packages/tauri-mcp/dist/index.js) with all dependencies inlined — no node_modules needed on the target machine, so installation works identically on macOS, Linux, and Windows.
The basic setup above includes MCP in all builds. For production apps, you likely want MCP only in development and completely stripped from release binaries.
This approach uses Cargo's optional dependency feature so the plugin is compiled in only when explicitly requested.