Skip to content

v1.1.0 - Async hdc + Runtime Tools (install/launch/hilog/screenshot)

Latest

Choose a tag to compare

@FadingLight9291117 FadingLight9291117 released this 13 Jun 06:16
· 1 commit to main since this release

πŸš€ 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 via hdc install (120s timeout for large HAPs)
  • harmonyos_launch_app β€” Launch an app via aa start (defaults to EntryAbility, 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 via snapshot_display, pull to host as JPEG, auto-clean remote temp file

πŸ”’ Security & Performance

  • Eliminated shell injection risk: utils/hdc.ts rewritten from execSync + string concat to execFile + argv array. Values like deviceId and bundleName can 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 hilog and bm dump without 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


Full Changelog: v1.0.4...v1.1.0