π Release v1.1.0
This release backports security and feature improvements from the vscode-arkts extension, doubling the toolset and hardening the hdc call layer.
β¨ New Tools (4)
Closing the build β install β launch β log β screenshot loop so AI assistants can fully drive HarmonyOS device workflows:
harmonyos_install_appβ Install a HAP package viahdc install(120s timeout for large HAPs)harmonyos_launch_appβ Launch an app viaaa start(defaults toEntryAbility, supports module/ability override)harmonyos_tail_hilogβ Snapshot the device's hilog buffer with optional tag substring + log level filter (D/I/W/E/F)harmonyos_screenshotβ Capture device screen viasnapshot_display, pull to host as JPEG, auto-clean remote temp file
π Security & Performance
- Eliminated shell injection risk:
utils/hdc.tsrewritten fromexecSync+ string concat toexecFile+ argv array. Values likedeviceIdandbundleNamecan no longer inject extra commands. - All tool handlers now async: stops blocking the MCP server event loop, allowing concurrent tool calls.
- 10 MB stdout buffer: handles large outputs from
hilogandbm dumpwithout truncation.
π¦ Installation
```bash
npm install -g mcp-harmonyos
or
npx mcp-harmonyos@1.1.0
```
π οΈ Full Tool List (11 total, was 7)
Device Management
- `harmonyos_list_devices` β List connected HarmonyOS devices
- `harmonyos_get_device_info` β Get device details (model, OS, SDK version)
Project Information
- `harmonyos_get_project_info` β Get bundleName, version, modules
- `harmonyos_list_modules` β List modules with types (HAP/HSP/HAR)
- `harmonyos_check_build_outputs` β Check build artifacts
Application Management
- `harmonyos_list_installed_apps` β List installed apps on device
- `harmonyos_get_app_info` β Get installed app details
Runtime (NEW in 1.1.0)
- `harmonyos_install_app` β Install HAP
- `harmonyos_launch_app` β Launch app
- `harmonyos_tail_hilog` β Tail device logs
- `harmonyos_screenshot` β Capture screenshot
π§ Configuration
For Claude Desktop / Cursor / OpenCode, add to your MCP config:
```json
{
"mcpServers": {
"harmonyos": {
"command": "npx",
"args": ["-y", "mcp-harmonyos"]
}
}
}
```
π Links
- NPM: https://www.npmjs.com/package/mcp-harmonyos
- Sister project: vscode-arkts (VS Code extension embedding these tools)
Full Changelog: v1.0.4...v1.1.0