install_app
Install APK applications on connected Android devices by specifying the app file path.
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)Handler function for the 'install_app' tool. Installs an APK file on the connected Android device using the 'adb install' command. The @mcp.tool() decorator registers this function as an MCP tool, defining its schema implicitly via the function signature (app_path: str) -> str.@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."