
Security News
Frontier AI Is Now Critical Infrastructure
The Fable shutdown shows how quickly model access can become a business continuity risk for AI-dependent engineering teams.
@wot-ui/cli
Advanced tools
open-wot 是 wot-ui 的 AI 工具链仓库,当前对外发布的核心包为 @wot-ui/cli。它提供命令行工具、MCP Server、离线组件知识库与数据提取脚本,用于把 wot-ui v2 的组件知识接入编辑器、AI Agent 和本地工程分析流程。
list、info、doc、demo、token、changelogdoctor、usage、lintwot mcpwot-ui/wot-ui 源码生成本地 v2.jsonnpm install -g @wot-ui/cli
安装完成后可直接使用 wot 命令。
如果你在仓库内本地调试,推荐直接运行源码入口,而不是依赖全局命令:
pnpm exec tsx src/index.ts list
wot list
wot info Button
wot demo Button basic
wot doc Button
wot token Button
wot changelog
wot doctor ./my-project
wot usage ./my-project
wot lint ./my-project
wot mcp
wot list:列出可用的 wot-ui 组件wot info <Component>:查看组件 props、events、slots、CSS 变量wot doc <Component>:输出组件 markdown 文档wot demo <Component> [name]:查看 demo 列表或指定 demo 源码wot token [Component]:查看组件 CSS 变量与默认值wot changelog [version] [component]:查看版本更新记录wot doctor [dir]:检查项目依赖、运行环境与基础集成情况wot usage [dir]:统计 .vue 文件中的 wd-* 使用情况wot lint [dir]:检查未知组件、空按钮等规则多数查询命令支持以下参数:
--format text--format json--lang zh--lang en--version v2将以下配置加入支持 MCP 的客户端:
{
"mcpServers": {
"wot-ui": {
"command": "wot",
"args": ["mcp"]
}
}
}
当前 MCP Server 提供以下 tools:
wot_listwot_infowot_docwot_demowot_tokenwot_changelogwot_lint当前版本聚焦 wot-ui v2。仓库内的离线数据来自 wot-ui/wot-ui 源码,主要提取自:
docs/component/*.mddocs/guide/changelog.mdsrc/uni_modules/wot-ui/components/*/index.scss重新生成本地数据有两种方式。
使用本地已有的 wot-ui 仓库:
pnpm extract:cli --wot-dir ../wot-ui --output data/v2.json
直接克隆最新的 wot-ui 仓库并提取:
pnpm extract:clone
当前根目录就是主发布包,核心源码位于 src,离线数据位于 data,提取脚本位于 scripts。
>= 2010.xpnpm install
pnpm lint
pnpm test:all
pnpm build:all
pnpm typecheck:all
pnpm build:cli
pnpm test:cli
pnpm typecheck:cli
直接运行源码入口最方便:
pnpm exec tsx src/index.ts list
pnpm exec tsx src/index.ts info Button
如果要调试构建产物:
pnpm build:cli
node dist/index.mjs list
pnpm exec tsx src/index.ts mcp
MCP 走 stdio,终端无交互输出属于正常现象。若要查看 tools 与 prompts 的调用过程,建议配合 MCP Inspector 或编辑器内置 MCP 客户端调试。
.github/workflows/ci.yml:执行主包的 lint、typecheck、build、test.github/workflows/release.yml:在 v* tag 上通过 reusable workflow 发布 @wot-ui/cli.github/workflows/sync.yml:拉取上游 wot-ui/wot-ui,提取最新元数据,并自动创建同步 PRwot-ui v2usage 与 lint 当前聚焦 .vue 文件中的 <wd-*> 标签及相关 importMIT License © wot-ui
FAQs
面向 wot-ui 的 CLI、MCP 与数据提取工具集
The npm package @wot-ui/cli receives a total of 49 weekly downloads. As such, @wot-ui/cli popularity was classified as not popular.
We found that @wot-ui/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Fable shutdown shows how quickly model access can become a business continuity risk for AI-dependent engineering teams.

Security News
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.