Skip to main content

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坐标>

注意事项

  1. 确保已安装ADB工具并添加到系统PATH中
  2. 确保Android设备已启用USB调试模式并已授权连接的计算机
  3. 如果遇到权限问题,请尝试以管理员/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)

Table of built distributions (wheels) for phone-mcp-by-trae 0.1.0
File Interpreter ABI Platform
phone_mcp_by_trae-0.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page