tt-design-mcp 1.0.0 → 1.0.3

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/README.md CHANGED
@@ -11,6 +11,8 @@
11
11
 
12
12
  数据来源于用户项目中已安装的 `tt-design` 包内的 `dist/meta/*.json`,无需 clone 源码仓库。
13
13
 
14
+ 生成 UI 时需优先复用 Ant Design 4.24.x 的底层逻辑,仅通过 CSS Variables 覆盖样式,不建议脱离 Ant Design / tt-design 自行重写交互逻辑。
15
+
14
16
  ## 前置条件
15
17
 
16
18
  1. 本机已安装 Node.js
@@ -28,7 +30,19 @@ npm install -D tt-design-mcp
28
30
 
29
31
  ### 2. 配置 MCP Client
30
32
 
31
- Claude Code MCP Client 的配置中添加:
33
+ 如果使用 Claude Code,推荐在已安装 `tt-design` 的项目根目录执行:
34
+
35
+ ```bash
36
+ claude mcp add --scope project --transport stdio tt-design -- npx tt-design-mcp
37
+ ```
38
+
39
+ 如果在 Windows 上使用 Claude Code,请加上 `cmd /c` 包装:
40
+
41
+ ```bash
42
+ claude mcp add --scope project --transport stdio tt-design -- cmd /c npx tt-design-mcp
43
+ ```
44
+
45
+ 如果需要手动配置,也可以在 Claude Code 等 MCP Client 的配置中添加:
32
46
 
33
47
  ```json
34
48
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tt-design-mcp",
3
- "version": "1.0.0",
3
+ "version": "1.0.3",
4
4
  "description": "MCP server for querying tt-design component metadata",
5
5
  "type": "module",
6
6
  "bin": {
package/src/server.mjs CHANGED
@@ -73,7 +73,8 @@ export function createServer() {
73
73
  {
74
74
  instructions:
75
75
  'MCP server for querying tt-design component metadata. ' +
76
- 'Loads dist/meta/*.json from the user-installed tt-design package.',
76
+ 'Loads dist/meta/*.json from the user-installed tt-design package. ' +
77
+ 'When generating UI for this project, prioritize reusing Ant Design 4.24.x underlying logic and only override styles through CSS variables.',
77
78
  },
78
79
  );
79
80