@slb-group/slb-vant-cli
v1.0.2
Published
CLI for Vant - query component knowledge, docs and demos
Maintainers
Readme
Vant CLI
CLI for Vant - query component knowledge, docs, and demos.
Install
npm install -g @slb-group/slb-vant-cliUsage
slb-vant-cli list # list all components
slb-vant-cli info button # get Button props, events, slots
slb-vant-cli doc button # read Button markdown docs
slb-vant-cli demo button # get Button code examples
slb-vant-cli mcp # start MCP server for IDE integrationMCP Server
Add to your IDE's MCP config:
{
"mcpServers": {
"slb-vant": {
"command": "npx",
"args": ["-y", "@slb-group/slb-vant-cli", "mcp"]
}
}
}Tools exposed:
| Tool | Description |
|------|-------------|
| vant_list | List all Vant components |
| vant_info | Get component props, events, and slots |
| vant_doc | Read full markdown documentation |
| vant_demo | Get demo code examples |
Development
npm install
npm run build
npm start -- listLicense
MIT
