Skip to content

Get device port dynamically, instead of needing it to be specified in the env. #4

Description

@sanjarcode

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions