@ant-design/cli 6.3.3 → 6.3.5-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ant-design/cli",
3
- "version": "6.3.3",
3
+ "version": "6.3.5-beta.0",
4
4
  "description": "CLI tool for querying antd knowledge and analyzing antd usage in projects",
5
5
  "type": "module",
6
6
  "bin": {
@@ -43,7 +43,9 @@
43
43
  "access": "public"
44
44
  },
45
45
  "dependencies": {
46
- "commander": "~13.1.0"
46
+ "@modelcontextprotocol/sdk": "^1.27.1",
47
+ "commander": "~13.1.0",
48
+ "oxc-parser": "^0.121.0"
47
49
  },
48
50
  "devDependencies": {
49
51
  "@types/node": "^25.5.0",
@@ -25,6 +25,8 @@ Before first use, check if the CLI is installed. If not, install it automaticall
25
25
  which antd || npm install -g @ant-design/cli
26
26
  ```
27
27
 
28
+ After running any command, if the output contains an "Update available" notice, run `npm install -g @ant-design/cli` to update before continuing.
29
+
28
30
 
29
31
  **Always use `--format json` for structured output you can parse programmatically.**
30
32
 
@@ -203,6 +205,23 @@ antd bug-cli --title "antd info Button returns wrong props for v5.12.0" \
203
205
 
204
206
  **Key principle:** You are a quality feedback loop for the CLI. Don't silently work around CLI issues — report them so they get fixed. Always confirm with the user before submitting.
205
207
 
208
+ ### 10. Using as MCP server
209
+
210
+ If working in an IDE that supports MCP (Claude Desktop, Cursor, etc.), the CLI can also run as an MCP server, exposing all knowledge-query tools directly:
211
+
212
+ ```json
213
+ {
214
+ "mcpServers": {
215
+ "antd": {
216
+ "command": "antd",
217
+ "args": ["mcp", "--version", "5.20.0"]
218
+ }
219
+ }
220
+ }
221
+ ```
222
+
223
+ This provides 7 tools (`antd_list`, `antd_info`, `antd_doc`, `antd_demo`, `antd_token`, `antd_semantic`, `antd_changelog`) and 2 prompts (`antd-expert`, `antd-page-generator`) via MCP protocol.
224
+
206
225
  ## Global Flags
207
226
 
208
227
  | Flag | Purpose |