安装
macOS 桌面版
下载 DMG 安装即用:
- MobAI_0.1.0.dmg (3.6MB)
NPM (命令行)
bash
# MCP Server
npx mobai-mcp
# HTTP API Server
npx mobai-api从源码构建
bash
git clone https://github.com/user/mobai.git
cd mobai
# 安装依赖
pnpm install
# MCP Server 开发
pnpm -C apps/mcp-server dev
# 桌面应用开发
pnpm -C apps/desktop tauri dev
# HTTP API
node --experimental-strip-types apps/mcp-server/src/http/index.tsAndroid 环境
bash
# macOS
brew install android-commandlinetools
# 或手动安装 Android SDK Platform Tools
# 确保 adb 在 PATH 中
adb devicesiOS 环境(可选)
bash
# 需要 Xcode (从 App Store 安装)
# 安装 WebDriverAgent
npm install -g appium
appium driver install xcuitest
# 启动 WDA
xcodebuild test-without-building \
-project ~/.appium/.../WebDriverAgent.xcodeproj \
-scheme WebDriverAgentRunner \
-destination "platform=iOS Simulator,name=iPhone 17 Pro"AI 功能(可选)
视觉断言和 OCR 需要 Gemini API Key:
bash
# .env.local
GEMINI_API_KEY=AIzaSy...
HTTPS_PROXY=http://127.0.0.1:7890 # 如需代理