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权限运行命令
Metadata
Release files for phone-mcp-by-trae 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| phone_mcp_by_trae-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for phone_mcp_by_trae-0.1.0-py3-none-any.whl |
Release files / phone_mcp_by_trae-0.1.0-py3-none-any.whl
| Download URL | phone_mcp_by_trae-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4cfbeecd72a1097dda16c4e4786f484b3c13e9356cebe8d0e36e89cc89716691
|
|
BLAKE2b-256 checksum How to use checksums |
e25f86c7cf546c8cacb9212af2bd5cb5ba4447be3b88849a8d48eed500704e0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.7
|
Security for phone-mcp-by-trae 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.