CLI
We maintain Wot UI's AI toolchain in Open Wot. Its main public package is @wot-ui/cli. It provides a CLI, an MCP server, an offline component knowledge base, and metadata extraction scripts, so you can bring wot-ui v2 component knowledge into editors, AI agents, and local project analysis workflows.
Highlights
- Fully offline: metadata (Props, Events, CSS variables, Demos, Changelog) ships with the package
- Agent-friendly: most commands support
--format jsonfor structured consumption - Project analysis:
doctor / usage / lintfor diagnostics and usage insights - MCP integration:
wot mcpexposes tools via stdio for MCP-compatible clients
Installation
bash
npm install -g @wot-ui/cliAfter installation, use the wot command.
Quick Start
bash
wot list
wot info Button
wot demo Button basic
wot doc Button
wot token Button
wot changelogCommand Reference
Component Knowledge
wot list: list available wot-ui componentswot info <Component>: view props, events, slots, and CSS variableswot doc <Component>: output the component Markdown documentationwot demo <Component> [name]: list demos or output the source of a specific demowot token [Component]: show CSS variables and default valueswot changelog [version] [component]: show changelog entries
Project Analysis
wot doctor [dir]: check dependencies, runtime environment, and basic integrationwot usage [dir]: analyze<wd-*>usage in.vuefileswot lint [dir]: rules such as unknown components, empty buttons, etc.
MCP Server
Start the MCP server:
bash
wot mcpAdd configuration in an MCP-compatible client (example):
json
{
"mcpServers": {
"wot-ui": {
"command": "wot",
"args": ["mcp"]
}
}
}Available tools include:
wot_listwot_infowot_docwot_demowot_tokenwot_changelogwot_lint
Common Options
Most query commands support:
--format text|json--version v2