npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@dahawa/hawa-computer-use

v1.2.8

Published

MCP server for Hawa Code to control your computer

Readme

Hawa Computer Use

是 Hawa Code Agent 配套跨平台计算机控制服务器,让 AI 能够通过截图、鼠标和键盘自动化操作你的电脑。支持 Windows、macOS 和 Linux 三大平台 。


安装

安装命令

npm install -g @dahawa/hawa-computer-use 

作为 MCP 服务器使用(推荐)

在 Hawa Code 或其他支持 MCP 的客户端中,添加以下配置:

{
  "mcpServers": {
    "computer-use": {
      "command": "npx",
      "args": ["-y", "@dahawa/hawa-computer-use"]
    }
  }
}

提供的 MCP 工具

computer

通过鼠标和键盘与计算机交互,并获取屏幕截图。

支持的动作 (action):

| 动作 | 说明 | |------|------| | get_screenshot | 截取屏幕截图,返回带元素标注的图像和元素列表 | | mouse_move | 移动鼠标到指定坐标 | | left_click | 左键点击(可先移动到指定坐标) | | right_click | 右键点击 | | middle_click | 中键点击 | | double_click | 双击 | | left_click_drag | 拖拽到指定坐标 | | scroll | 滚轮滚动,支持 up/down/left/right,可指定像素数如 down:500 | | key | 按下键盘按键或组合键,如 ctrl+c、alt+tab | | type | 输入文本(自动处理中文等非 ASCII 字符) | | get_cursor_position | 获取当前鼠标坐标 | | click_element | 通过元素 ID 点击(推荐优先使用,比坐标点击更精确) |

系统依赖

不同平台需要安装以下可选依赖以解锁完整功能:

Windows

Windows 下直接可以使用

MacOS

  • AX 检测:需要在「系统设置 → 隐私与安全性 → 辅助功能」中授予宿主应用(如终端或 Hawa Code)辅助功能权限
  • OCR 检测(可选):需要安装 Xcode Command Line Tools
    xcode-select --install

Linux

  • AT-SPI 检测:
    # Debian / Ubuntu
    sudo apt install python3-pyatspi
    
    # Fedora / RHEL
    sudo yum install python3-pyatspi
  • OCR:
    # Debian / Ubuntu
    sudo apt install tesseract-ocr tesseract-ocr-chi-sim
    
    # Fedora / RHEL
    sudo dnf install tesseract tesseract-langpack-chi_sim
  • 截图工具(至少安装一个):gnome-screenshot、scrot 或 ImageMagick 的 import

环境变量

| 变量名 | 说明 | 默认值 | |--------|------|--------| | MCP_TRANSPORT | 传输协议,stdio 或 http | stdio | | PORT | HTTP 模式下的监听端口 | 3000 | | COMPUTER_MCP_DISABLE_A11Y | 设置为 1 关闭无障碍检测,仅使用坐标模式 | - | | COMPUTER_MCP_DISABLE_OCR | 设置为 1 关闭 OCR 兜底,仅使用无障碍检测 | - |