novlan1/tdesign-uniapp-cli
CLI & MCP server for TDesign UniApp — offline component docs, API, demos and design tokens
Platform-specific configuration:
{
"mcpServers": {
"tdesign-uniapp-cli": {
"command": "npx",
"args": [
"-y",
"tdesign-uniapp-cli"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
CLI tool for querying TDesign UniApp component knowledge and analyzing usage in projects.
All data is bundled offline — no network needed at runtime.
npm install -g tdesign-uniapp-cli# List all components
tdesign-uniapp list
# Get component API info
tdesign-uniapp info Button
# Get a working demo
tdesign-uniapp demo Button basic
# View component docs
tdesign-uniapp doc Tabs
# Check design tokens
tdesign-uniapp token Button
# View changelog
tdesign-uniapp changelog 1.0.0 1.5.0
# Collect environment info
tdesign-uniapp env| Flag | Purpose | |---|---| | --format json\|text\|markdown | Output format (default: text) | | --version <v> | Target a specific TDesign version (e.g. 1.5.0) | | --lang en\|zh | Language (default: en) | | --detail | Include extra fields (description, since, deprecated, FAQ) |
The CLI can also run as an MCP (Model Context Protocol) server for AI IDE integration:
{
"mcpServers": {
"tdesign-uniapp": {
"command": "tdesign-uniapp",
"args": ["mcp", "--version", "1.5.0"]
}
}
}# Install dependencies
pnpm install
# Build
pnpm build
# Watch mode
pnpm dev
# Run tests
pnpm test
# Type check
pnpm typecheck
# Extract data from TDesign source
pnpm extractcommanderLoading reviews...