You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**NEW!** AndroidViewClient now includes a Model Context Protocol (MCP) server that enables AI assistants like Kiro to interact with Android devices through natural language.
45
+
46
+
## Quick Start with MCP
47
+
48
+
1.**Install with MCP support:**
49
+
```bash
50
+
pip3 install androidviewclient --upgrade
51
+
```
52
+
53
+
2.**Start CulebraTester2 on your device:**
54
+
```bash
55
+
# Install the APK
56
+
adb install -r culebratester2.apk
57
+
58
+
# Start the service
59
+
adb shell am instrument -w com.dtmilano.android.culebratester2/.CulebraTester2Instrumentation
60
+
61
+
# Forward the port
62
+
adb forward tcp:9987 tcp:9987
63
+
```
64
+
65
+
3.**Configure your AI assistant:**
66
+
67
+
Add to `.kiro/settings/mcp.json` or `~/.kiro/settings/mcp.json`:
68
+
```json
69
+
{
70
+
"mcpServers": {
71
+
"culebratester2": {
72
+
"command": "culebra-mcp",
73
+
"env": {
74
+
"CULEBRATESTER2_URL": "http://localhost:9987"
75
+
}
76
+
}
77
+
}
78
+
}
79
+
```
80
+
81
+
4.**Start testing with natural language:**
82
+
- "Get the device screen size"
83
+
- "Launch the Calculator app"
84
+
- "Find the button with text Submit and click it"
85
+
- "Take a screenshot"
86
+
- "Swipe up to scroll"
87
+
88
+
## MCP Tools Available
89
+
90
+
The MCP server provides 20 tools for Android automation:
91
+
92
+
**Element-based interactions:**
93
+
- Find elements by text or resource ID
94
+
- Click, long-click, enter text, clear text
95
+
- Navigate with back/home buttons
96
+
- Launch applications
97
+
98
+
**Coordinate-based interactions:**
99
+
- Click/long-click at coordinates
100
+
- Swipe gestures
101
+
102
+
**Device actions:**
103
+
- Wake/sleep device
104
+
- Get current app
105
+
- Force stop apps
106
+
- Take screenshots
107
+
108
+
## Configuration
109
+
110
+
For detailed MCP configuration options, see the [MCP Configuration Guide](docs/MCP_CONFIGURATION.md).
-`CULEBRATESTER2_URL`: Base URL for CulebraTester2 (default: `http://localhost:9987`)
121
+
-`CULEBRATESTER2_TIMEOUT`: HTTP timeout in seconds (default: `30`)
122
+
-`CULEBRATESTER2_DEBUG`: Enable debug logging (`1`, `true`, or `yes`)
123
+
42
124
# Want to learn more?
43
125
44
126
> 🚀 Check [Examples](https://github.com/dtmilano/AndroidViewClient/wiki/Resources#examples) and [Screencasts and videos](https://github.com/dtmilano/AndroidViewClient/wiki/Resources#screencasts-and-videos) page to see it in action.
0 commit comments