@brainervirus/workit-cursor

中文文档
14.7.0发布于 2026/11/08MITES Module零依赖构建来源已验证近 30 天下载 3.4万

Workit Cursor plugin — shared MCP transport, native hooks, and sixteen method skills

此软件包已被标记为弃用

moved to @workit-dev/cursor; run workit upgrade

原始使用文档
文档目录3 节
  1. Install
  2. Runtime
  3. Marketplace

@brainervirus/workit-cursor

CI npm license: MIT

Workit for Cursor: the shared MCP server, one native hook dispatcher, the workit-contract rule, the thirteen method skills and /wk-* commands. Requires Node.js 24+ and network access on first run.

Install

npx @brainervirus/workit-cli init   # select Cursor

The wizard copies the plugin into ~/.cursor/plugins/local/workit (a real directory) and registers the MCP server and hooks. Manual MCP config and host limits: hosts guide. Update with workit upgrade (it reinstalls missing plugin files); uninstall with workit uninstall.

Runtime

The MCP server runs through npx -y --prefer-online --min-release-age=0 --package=@brainervirus/workit-cursor@latest …, so manifests carry no repository-relative dist paths (the age override works around npm/cli#9765). MCP is read-only for unattested callers; mutations run through the workit CLI.

Hooks run through node "${CURSOR_PLUGIN_ROOT}/hooks/launch.mjs" <bin>, which picks the plugin's bundled dist/ hook, else a global workit-cursor-hook on PATH, else npx -y --prefer-offline pinned to the plugin's own version. It never resolves @latest at hook time. Hooks are registered with failClosed: false and the launcher fails open: offline, a crash or a timeout lets the action through with a [workit] Cursor hook unavailable line on stderr, while the hook's own denials (exit 2) still block. A window with no folder open, or a payload without a conversation id, is allowed with a note. A local install (workit init, install-cursor-plugin.sh) writes the launcher's absolute path into every event, so only a Marketplace install relies on Cursor expanding ${CURSOR_PLUGIN_ROOT}. On Windows the npx and global-bin fallbacks run their .cmd shims through cmd.exe. workit doctor reports the launcher mode (local with the runtime's version, npx-pinned, missing or stale) and the latency of one no-op hook. It also warns when Cursor started the Workit MCP server but no hook has run since: the launcher stamps cursor-hook-last-run and the MCP server stamps cursor-session-last-start in Workit's state directory. The preToolUse hook applies the before-write gate to write tools while the branch task has an open product choice or needs a plan.

Marketplace

The repository root carries .cursor-plugin/marketplace.json indexing this package. Cursor installs Marketplace plugins from git without building, so skills/, commands/, rules/ and assets are committed; regenerate skills with bun packages/workit-cursor/scripts/build.ts --skills-only. bun run validate:cursor-marketplace checks the artifact against the pinned Cursor schemas. The plugin is submission-ready but not published there.

版本与发布记录

@brainervirus/workit-cursor 共发布 256 个版本,首次发布于 2026/08/09;过去 12 个月发布了 256 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
14.7.0latest2026/11/08今天
14.6.12026/11/08今天
14.6.02026/11/08今天
14.4.02026/11/062 天前
14.3.02026/11/062 天前
14.2.62026/11/052 天前

关于 @brainervirus/workit-cursor 的常见问题

@brainervirus/workit-cursor 是什么?

Workit Cursor plugin — shared MCP transport, native hooks, and sixteen method skills注意:该包已被作者标记为弃用——moved to @workit-dev/cursor; run workit upgrade

如何安装 @brainervirus/workit-cursor?

在项目目录运行 npm install @brainervirus/workit-cursor,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 workit-cursor-mcp、workit-cursor-hook、workit-cursor-session-start,可以用 npx workit-cursor-mcp 直接运行。

@brainervirus/workit-cursor 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/brainervirus__workit-cursor 是否存在。

@brainervirus/workit-cursor 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@brainervirus/workit-cursor 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=24。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@brainervirus/workit-cursor 可以商用吗?

@brainervirus/workit-cursor 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@brainervirus/workit-cursor 的下载量有多少?

根据 npm 官方下载统计,@brainervirus/workit-cursor 在 2026/10/09 – 2026/11/07 这 30 天内被下载 33,702 次,日均约 1,123 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@brainervirus/workit-cursor 还在维护吗?

最新版本 14.7.0 发布于 2026/11/08(今天);至今共发布 256 个版本,其中过去 12 个月发布了 256 个;首次发布于 2026/08/09。作者已将其标记为弃用,新项目建议寻找替代方案。