Right now, if I reconnect a phone using ADB, I need to go to Android Dev Settings, and copy the latest port there, and ensure that the ~/Library/Application Support/Claude/claude_desktop_config.json is updated, viz:
"ANDROID_MCP_HOST": "172.16.14.24:46495", // the port here needs to be updated.
Can we fix this, i.e. if only one device is connected, all the env params, i.e.ANDROID_MCP_HOST is fully filled dynamically using the laptop's adb devices or similar command, so both the IP addresses as well as the port are filled.
This way, the user won't need to fill in ANDROID_MCP_HOST by hand.
Of course, do ensure that if the env exists in the config, it overrides the dynamic filling logic above.
Right now, if I reconnect a phone using ADB, I need to go to Android Dev Settings, and copy the latest port there, and ensure that the
~/Library/Application Support/Claude/claude_desktop_config.jsonis updated, viz:Can we fix this, i.e. if only one device is connected, all the env params, i.e.
ANDROID_MCP_HOSTis fully filled dynamically using the laptop'sadb devicesor similar command, so both the IP addresses as well as the port are filled.This way, the user won't need to fill in ANDROID_MCP_HOST by hand.
Of course, do ensure that if the env exists in the config, it overrides the dynamic filling logic above.