Control your Android Developer Options from the terminal — or let your AI agent do it.
CLI and MCP server that discovers, pairs with, and controls the Developer options on Android device over your local network. No USB cable, no manual tapping through menus.
📱 Companion TogglDev app: Available on Google Play and Github
npm install -g toggldev-remoteThis installs two commands:
| Command | Purpose |
|---|---|
toggldev |
CLI for direct terminal use |
toggldev-mcp |
MCP server for AI clients |
You're deep in a coding session. You need wireless debugging enabled on your phone, or you need to change animation scales for testing. So you pick up the phone, unlock it, navigate to Developer Options, toggle the setting, then get back to your terminal.
With an AI agent, it's worse — the agent can build your app, but it can't reach over and flip a switch on your phone.
Via Terminal:
toggldev toggle --key adb_wifi_enabled --enabled trueVia AI Agent (MCP):
"Enable wireless debugging"
One command, or one prompt to your AI — no human in the loop.
- Auto-discovery — Finds devices running TogglDev on the local network via mDNS. No IP addresses to remember.
- Secure pairing — Connects using the 6-digit pairing code from the TogglDev app. Credentials are saved for future sessions.
- Full control — Toggle developer settings, set animation scales, get device status, retrieve wireless debugging connection info.
- MCP server — Works as a tool provider for Claude, Cursor, Gemini, and any MCP-compatible AI agent.
- Remote access — Pair over Tailscale to control your device from any network.
- Node.js (v18+)
- TogglDev Android App v2.0+ — available on Google Play or GitHub Releases
- Your computer and Android device on the same local network (or connected via Tailscale)
# 1. Find your phone on the network
toggldev discover
# 2. Open the TogglDev app, note the 6-digit code, then pair
toggldev pair --host 192.168.1.100 --port 8734 --code 123456
# 3. Enable wireless debugging
toggldev toggle --key adb_wifi_enabled --enabled true
# 4. Get the ADB connection info
toggldev wireless-debug-info
# 5. Connect ADB
adb connect <ip>:<port>toggldev discover
toggldev discover --timeout 10toggldev pair --host <ip> --port <port> --code <code>Saves authentication to ~/.toggldev/config.json.
toggldev statustoggldev toggle --key adb_wifi_enabled --enabled truetoggldev set --key window_animation_scale --value 0.5toggldev wireless-debug-infoUse toggldev-remote as a tool provider for any MCP-compatible AI assistant.
claude mcp add toggldev toggldev-mcpAdd to your claude_desktop_config.json:
{
"mcpServers": {
"toggldev": {
"command": "toggldev-mcp",
"args": []
}
}
}- Settings > Features > MCP
- + Add New MCP Server
- Type:
command, Command:toggldev-mcp
Point your MCP configuration to:
toggldev-mcp| Tool | Description |
|---|---|
discover_devices |
Find TogglDev instances on the local network |
pair_device |
Pair with a device using host, port, and pairing code |
get_status |
Get current developer options status |
toggle_setting |
Toggle a boolean setting (e.g. adb_wifi_enabled) |
set_setting |
Set a value for a setting (e.g. window_animation_scale to 0.5) |
get_wireless_debug_info |
Get IP and port for wireless ADB connection |
By default, discovery and control work over the local network. To control your device from anywhere:
- Install Tailscale on your PC and Android phone
- Sign in on both with the same account
- Note your phone's Tailscale IP (usually
100.x.x.x) - Pair using that IP:
toggldev pair --host 100.x.x.x --port 8734 --code <code>
Once paired, all commands work from any network. The Tailscale IP stays stable across network changes.
Note:
toggldev discoveruses mDNS, which doesn't work over Tailscale. Use the Tailscale IP directly for pairing.