1. Conduid
  2. Developer Tools
  3. Harmony Tools
MCP server · Developer Tools

Harmony Tools

MCP service that wraps HarmonyOS hdc commands

Unclaimed last commit 11 months ago devtools
43Fair

Scored 15 days ago · breakdown

About Harmony Tools

Harmony Tools is an MCP server published by bubbleptr in the Developer Tools category: mCP service that wraps HarmonyOS hdc commands.

The repository has 1 stars and 0 forks, with the last commit 11 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/bubbleptr/harmony-tools

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Harmony Tools

Powered by Claude · Grounded in docs

I know everything about Harmony Tools. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

4 checks have not been run yet.

Releases

v0.1.3v0.1.3
v0.1.2v0.1.2
v0.1.1v0.1.1
v0.1.0v0.1.0

README

Harmony Tools MCP 服务

将 HarmonyOS 命令行工具(hdc、hvigor 等)封装为 MCP 服务,接入任意支持 MCP 的客户端,常用开发任务以结构化 JSON 返回。

快速上手

  • 前置条件:Python ≥3.11;已安装 HarmonyOS Command Line Tools。
  • 下载地址:HarmonyOS Command Line Tools
  • 配置必需环境变量:
# 解压后在 command-line-tools/sdk/default/openharmony/toolchains 目录下
export HDC_PATH=/path/to/hdc
# 解压后在 command-line-tools/bin 目录下
export HVIGORW_PATH=/path/to/hvigorw

安装

# 全局安装(推荐)
uv tool install git+<repository-url>

# 开发模式(本地源码)
uv pip install -e .

启动

  • stdio(默认):
    • uv run harmony-tools-mcp
  • http(调试/多客户端):
    • uv run harmony-tools --transport http
    • 或 ./start_http_server.sh

客户端最小配置示例

  • stdio:
{
  "mcpServers": {
    "harmony-tools": {
      "command": "harmony-tools-mcp",
      "env": {
        "HDC_PATH": "/path/to/hdc", 
        "HVIGORW_PATH": "/path/to/hvigorw"
      }
    }
  }
}
  • http:
{
  "mcpServers": {
    "harmony-tools": {
      "transport": "http", 
      "url": "http://127.0.0.1:10005/mcp"}
  }
}

可用工具一览

  • list_targets、shell
  • hvigor_clean、hvigor_assemble、hvigor_find_output
  • hdc_screenshot、hdc_install_app

常见问题(精简)

  • 找不到 hdc/hvigorw:检查并设置 HDC_PATH、HVIGORW_PATH。
  • 无响应或超时:适当提高超时或减少输出量。
  • 权限问题:设备开启开发者模式并授予访问权限。

开发者文档

详细技术说明(环境变量、运行模式、工具参数与返回结构、长示例、完整排障)见 docs/DEVELOPER.md。

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Harmony Tools

How do I install Harmony Tools?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Harmony Tools safe to use with an AI agent?

Its trust score is 43 out of 100 (fair). It passes 1 of the 2 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Harmony Tools still maintained?

The last commit was 11 months ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.