install_app
Deploy APK files to Android devices connected to the espresso-mcp server. Simplify app installation by specifying the app path to execute the process efficiently.
Instructions
Install an App APK on the connected Android device
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_path | Yes |
Implementation Reference
- src/espresso_mcp/server.py:149-155 (handler)The install_app tool handler decorated with @mcp.tool(), which registers and implements the installation of an APK file on the connected Android device using adb install command.@mcp.tool() def install_app(app_path: str) -> str: """Install an App APK on the connected Android device""" result = subprocess.run(["adb", "install", app_path], capture_output=True, text=True) if result.returncode != 0: raise RuntimeError(f"Error installing App: {result.stderr}") return f"App '{app_path}' has been installed successfully."