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

autogo-mcp

v0.1.6

Published

MCP server for AutoGo and ADB workflows

Readme

AutoGo MCP

AutoGo MCP 是一个基于 stdio 的 MCP Server,用来把 AutoGo SDK 与常用 ADB 工作流暴露给支持 MCP 的客户端。

功能概览

  • run_project:运行 AutoGo 项目到指定设备,支持调试模式
  • read_project_logs:读取 run_project 会话的增量日志
  • stop_project:停止设备上的 AutoGo 项目
  • sync_files:同步项目中的 soassets
  • connect_device:连接远程 ADB 设备
  • list_devices:列出当前可见的 ADB 设备
  • adb_command:执行自定义 ADB 命令
  • get_screen_nodes:抓取当前屏幕节点树并按条件过滤

环境要求

  • Node.js 18 及以上
  • AutoGo SDK
  • ADB(可选;如果 PATH 中没有,需要显式指定)

安装与使用

推荐直接通过 npx 启动:

npx -y autogo-mcp

环境变量

  • AUTOGO_AG_PATH:AutoGo SDK 路径
    • Windows 默认:C:\Users\Public\ag.exe
    • macOS 默认:/Users/Shared/ag
  • AUTOGO_ADB_PATH:ADB 可执行文件路径,可选
  • AUTOGO_DEFAULT_DEVICE:默认设备序列号或 ip:port,可选

MCP 客户端配置

最简配置

如果 ag.exe 位于默认路径,且 adb 已在系统 PATH 中,可直接这样配置:

{
  "mcpServers": {
    "autogo": {
      "command": "npx",
      "args": ["-y", "autogo-mcp"]
    }
  }
}

推荐配置

{
  "mcpServers": {
    "autogo": {
      "command": "npx",
      "args": ["-y", "autogo-mcp"],
      "env": {
        "AUTOGO_AG_PATH": "C:\\Users\\Public\\ag.exe",
        "AUTOGO_ADB_PATH": "C:\\Android\\platform-tools\\adb.exe",
        "AUTOGO_DEFAULT_DEVICE": "192.168.1.100:5555"
      }
    }
  }
}

macOS 示例

{
  "mcpServers": {
    "autogo": {
      "command": "npx",
      "args": ["-y", "autogo-mcp"],
      "env": {
        "AUTOGO_AG_PATH": "/Users/Shared/ag",
        "AUTOGO_ADB_PATH": "/opt/homebrew/bin/adb",
        "AUTOGO_DEFAULT_DEVICE": "emulator-5554"
      }
    }
  }
}

调用示例

运行项目

{
  "device": "192.168.1.100:5555",
  "projectPath": "C:\\path\\to\\autogo-project",
  "debug": false
}

读取日志

{
  "sessionId": "run-2026-04-25T12-00-00-000Z-1",
  "fromOffset": 0,
  "limit": 200
}

本地开发

npm install
npm run check
npm run build
npm start

更多开发与发布说明见 CONTRIBUTING.md

License

MIT