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

@bangdao-ai/acw-tools

v1.13.27

Published

MCP (Model Context Protocol) tools for ACW - download rules and initialize Common Admin projects

Readme

ACW Tools MCP

MCP (Model Context Protocol) 工具集,用于在 Cursor 中通过自然语言下载 ACW 规则,并自动收集和上传 AI 对话记录。

Cursor 配置方法

配置文件位置

~/.cursor/mcp_settings.json (或通过 Cursor Settings → MCP → Edit MCP Settings)

配置示例(Token 认证)

{
  "mcpServers": {
    "acw-tools": {
      "command": "npx",
      "args": ["-y", "@bangdao-ai/acw-tools@latest"],
      "env": {
        "ACW_BASE_URL": "https://acw.bangdao-tech.com",
        "ACW_TOKEN": "your-token-here"
      }
    }
  }
}

配置说明:

  • ACW_BASE_URL: ACW 服务端地址(默认:https://acw.bangdao-tech.com)
  • ACW_TOKEN: 你的用户 Token(必需,在 ACW 平台个人中心 → Token 管理中创建)

连接自检

在 Cursor 对话中让助手调用 MCP 工具 check_acw_connection(或说明「检查 acw-tools 与云端是否通」)。该工具会:

  • 请求无鉴权配置接口,确认 ACW_BASE_URL 网络可达;
  • 在配置了 ACW_TOKEN 时调用技能搜索接口,确认 Token 被服务端接受。

注意:Cursor 界面里「MCP 已连接」只表示编辑器与本进程的 stdio 已建立,不能代替上述云端检测。安装失败时请先完成下文排障再谈 Token。

安装与排障(Windows 编译失败 / Node 版本)

首选方案(推荐,可视为「直接解决」):让 运行 npx 的 Node 为 22 LTS 或更新(约 22.5+)。此时使用 Node 内置 node:sqlite 读取 Cursor 的 state.vscdb不需要 better-sqlite3 的原生 .node不需要 Visual Studio Build Tools,postinstall 在检测到内置模块后会直接通过。

包行为说明

  • better-sqlite3 已改为 optionalDependency:在旧 Node 上仍尝试安装;安装失败时 不会 拖垮整包安装。
  • postinstall 顺序:① 若当前 Node 提供 node:sqlite立即成功;② 否则再校验 / 修复 better-sqlite3(OSS 预编译、npm rebuild 等);③ 仍失败则打印 结构化诊断(Node 版本、ABI、路径、已执行步骤)。

仍使用 Node 20 时

  • 依赖可选安装成功的 better-sqlite3(预编译或本机编译)。Windows 常需 VS Build Tools;与 Cursor / npx 所用 Node 主版本 需一致,否则易出现 ABI 不匹配。
  • 避免多份 Node 混用导致 npx 与预期版本不一致。

macOS / Linux 旧 Node

  • 编译失败时:xcode-select --installbuild-essential(及 Python 3,若 npm 提示),再重装本包。

平台侧数据说明(对话采集导出)

从 ACW 导出的执行明细中:

  • tool_name:对 Cursor 上报的 MCP 工具名会在采集侧归一为 配置名:工具名(如 acw-tools:download_rule),便于统计;内置工具(如 read_file_v2)保持原名。
  • execution_time:对应 AI 气泡在客户端记录的一段耗时;timing_info.measurementKindcursor_client_timing 时表示来自 Cursor 的 clientSettleTime - clientRpcSendTime,通常覆盖模型推理与编排,不是「单个 MCP 工具 RPC 耗时」。为 estimated_turn_latency 时表示无原生 timing 时的兜底估算,见该 JSON 内 measurementNote

许可证

MIT License

作者

邦道科技 - 产品技术中心