一个通过ADB命令控制Android手机的MCP插件
Project description
Phone MCP By Trae
通过ADB命令控制Android手机的MCP插件
安装
从PyPI安装(推荐)
# 从PyPI安装最新版本
pip install phone-mcp-by-trae
从源码安装
# 从当前目录安装
pip install -e .
使用方法
作为MCP服务器运行
# 方法1:使用Python模块方式运行
python -m phone_mcp_by_trae
# 方法2:使用安装的命令行工具运行
phone-mcp-by-trae
使用命令行工具
# 方法1:使用Python模块方式运行
python -m phone_mcp_by_trae.phone_cli
# 方法2:使用安装的命令行工具运行
phone-cli-by-trae
命令行工具示例
# 检查已连接的设备
phone-cli-by-trae check
# 设置要使用的设备
phone-cli-by-trae device <设备ID>
# 拨打电话
phone-cli-by-trae call <电话号码>
# 发送短信
phone-cli-by-trae send-sms <电话号码> <短信内容>
# 打开应用
phone-cli-by-trae app <应用包名>
# 点击屏幕
phone-cli-by-trae tap <X坐标> <Y坐标>
注意事项
- 确保已安装ADB工具并添加到系统PATH中
- 确保Android设备已启用USB调试模式并已授权连接的计算机
- 如果遇到权限问题,请尝试以管理员/root权限运行命令
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file phone_mcp_by_trae-0.1.0-py3-none-any.whl.
File metadata
- Download URL: phone_mcp_by_trae-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cfbeecd72a1097dda16c4e4786f484b3c13e9356cebe8d0e36e89cc89716691
|
|
| MD5 |
ab5c9a69bcd7a63029df8b88cc084876
|
|
| BLAKE2b-256 |
e25f86c7cf546c8cacb9212af2bd5cb5ba4447be3b88849a8d48eed500704e0f
|