MCP Server
MCP exposes ten query tools and two prompts over stdio, sharing CLI data. It calls no model API and changes no business project.
Tools
| Tool | Description |
|---|---|
common_ui_site | Read the official homepage and snapshot documentation URLs offline |
common_ui_list | List available components and packages |
common_ui_info | Retrieve API tables and source type declarations |
common_ui_doc | Retrieve complete component Markdown documentation |
common_ui_demo | Retrieve Vue examples and supporting modules |
common_ui_theme | Query Chalk / OEM theme variables |
common_ui_design | Retrieve the library’s design guidelines |
common_ui_changelog | Query release notes for a version |
common_ui_token | Query Element Plus Design Tokens and Common UI theme overrides |
common_ui_semantic | Query documented styling props and slots |
Prompts
| Prompt | Description |
|---|---|
common-ui-expert | Position the Agent as a common-ui expert, guiding it to use version-matched APIs, complete examples and design guidelines |
common-ui-page-generator | Help create Vue 3 pages using verified components and design guidelines |
Configuration
Using MCP in AI tools
These examples use the published @94ai-plus/cli and require Node.js 22.13.0 or later and npm/npx. Merge entries into existing files, preserving other MCP servers. In a settings form, enter only the command and args of the common-ui entry.
| Tool | Instructions | Configuration |
|---|---|---|
| Cursor | Add to .cursor/mcp.json · Docs | {"mcpServers":{"common-ui":{"command":"npx","args":["--yes","--package","@94ai-plus/cli","common-ui","mcp","--lang","en-US"]}}} |
| Windsurf | Open the raw configuration in MCP settings and add a local stdio server · Docs | {"mcpServers":{"common-ui":{"command":"npx","args":["--yes","--package","@94ai-plus/cli","common-ui","mcp","--lang","en-US"]}}} |
| Claude Code | Add to .mcp.json · Docs | {"mcpServers":{"common-ui":{"command":"npx","args":["--yes","--package","@94ai-plus/cli","common-ui","mcp","--lang","en-US"]}}} |
| VS Code | Add to .vscode/mcp.json, or run MCP: Add Server · Docs | {"servers":{"common-ui":{"type":"stdio","command":"npx","args":["--yes","--package","@94ai-plus/cli","common-ui","mcp","--lang","en-US"]}}} |
| Codex | Project .codex/config.toml (trusted projects only), or user ~/.codex/config.toml · Docs | [mcp_servers.common-ui]command = "npx"args = ["--yes","--package","@94ai-plus/cli","common-ui","mcp","--lang","en-US"] |
| Gemini CLI | Add to .gemini/settings.json · Docs | {"mcpServers":{"common-ui":{"command":"npx","args":["--yes","--package","@94ai-plus/cli","common-ui","mcp","--lang","en-US"]}}} |
| Trae | Manually add a local stdio server in MCP settings · Docs | {"mcpServers":{"common-ui":{"command":"npx","args":["--yes","--package","@94ai-plus/cli","common-ui","mcp","--lang","en-US"]}}} |
| Qoder | Manually add a local stdio server in MCP settings · Docs | {"mcpServers":{"common-ui":{"command":"npx","args":["--yes","--package","@94ai-plus/cli","common-ui","mcp","--lang","en-US"]}}} |
| Neovate Code | Add to .neovate/config.json · Docs | {"mcpServers":{"common-ui":{"command":"npx","args":["--yes","--package","@94ai-plus/cli","common-ui","mcp","--lang","en-US"]}}} |
Codex uses TOML; VS Code uses servers; the other JSON examples use mcpServers. Configuration entry points can vary by client version; follow the official documentation. If the client working directory differs from your project, append --project and its absolute path to args. Add --version <exact-version> to select component knowledge. These are manual integrations; automatic setup --client still supports only claude, cursor, vscode and codex.
Start through npx
Add the MCP server to your client configuration. The following JSON is suitable for Claude Code and Cursor:
{
"mcpServers": {
"common-ui": {
"command": "npx",
"args": [
"--yes",
"--package",
"@94ai-plus/cli",
"common-ui",
"mcp",
"--lang",
"en-US"
]
}
}
}This configuration starts the published @94ai-plus/cli through npx. Save it according to your client’s requirements. The runtime needs Node.js, npm/npx and access to the npm package.
Using a global CLI
If the published CLI is installed globally with npm install -g @94ai-plus/cli, use common-ui as the MCP command.
{"mcpServers":{"common-ui":{"command":"common-ui","args":["mcp","--lang","en-US"]}}}Select a library version
--version selects the component knowledge version; the CLI tool package version is controlled separately by @<version> after its npm package name. Replace the example with the project’s actual version. Matching knowledge must exist in the bundled snapshot, cache or online version catalog. If none is found, an explicit error is reported without fallback.
{
"mcpServers": {
"common-ui": {
"command": "npx",
"args": [
"--yes",
"--package",
"@94ai-plus/cli",
"common-ui",
"mcp",
"--version",
"1.0.0-alpha.5",
"--lang",
"en-US"
]
}
}
}Set up the project
Run in the consuming project after installing a published CLI. Supported clients: claude, cursor, vscode, codex; modes: mcp (default), skill, both. Skill mode copies the complete bundled Skill and references without downloading Skills CLI.
npx common-ui setup --client claude --lang en-US
npx common-ui setup --client cursor --mode both --lang en-US
npx common-ui setup --client vscode --write-instructions --lang en-US
npx common-ui setup --client codex --lang en-US
npx common-ui setup --client claude --dry-run --lang en-US
npx common-ui setup --client claude --check --lang en-USYou can also run a published CLI temporarily through npx:
npx --package @94ai-plus/cli common-ui setup --client cursor --mode both --lang en-US| Tool | MCP | Skill | --write-instructions |
|---|---|---|---|
| Claude Code | .mcp.json: mcpServers | .claude/skills/common-ui/ | CLAUDE.md |
| Cursor | .cursor/mcp.json: mcpServers | .cursor/skills/common-ui/ | .cursor/rules/common-ui.mdc |
| VS Code | .vscode/mcp.json: servers, stdio | .github/skills/common-ui/ | .github/copilot-instructions.md |
| Codex | .codex/config.toml: [mcp_servers.common-ui] | .agents/skills/common-ui/ | AGENTS.md |
--project <directory> selects the project; --version <exact-version> selects component knowledge; --lang selects the language. --write-instructions appends a managed instruction block and preserves existing text. MCP configuration pins the current CLI package version and records the absolute project path.
--dry-run previews paths, actions and the proposed MCP server; --check checks file consistency and exits 1 on missing or different content. Both are read-only and make no network requests. Setup preserves unrelated services, JSON comments and TOML text. Identical files are unchanged; conflicting common-ui entries or Skill files must be reconciled manually. Clients still need to load/approve the server; Codex project settings apply only to trusted projects.
setup writes only to the selected project and does not change user-level configuration. Skill mode copies the current CLI’s complete bundled Skill and references.
--write-instructions appends or updates only the marked Common UI instruction block, preserving existing instructions.
Alternative: use LLMs.txt
If your AI tool does not support MCP, use our LLMs.txt documentation. We provide:
- llms.txt — Structured index of all component documentation
- llms-full.txt — Complete English library documentation, including full examples
- llms-full-cn.txt — Complete Chinese library documentation, including full examples
