@fjyueke/bify-mcp 1.0.8 → 1.0.9

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.
Files changed (3) hide show
  1. package/README.md +21 -0
  2. package/dist/index.js +68 -12
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -43,6 +43,27 @@ Bify MCP 是一项独立的 MCP(模型上下文协议)服务,旨在将 Bif
43
43
 
44
44
  参考对应 IDE 的 MCP 配置文档,使用上述配置格式。
45
45
 
46
+ ### 双 MCP 协同配置(推荐)
47
+
48
+ 同时配置 Arco Mobile MCP 和 Bify MCP,可获得更精确的代码转换:
49
+
50
+ ```json
51
+ {
52
+ "mcpServers": {
53
+ "@fjyueke/bify-mcp": {
54
+ "command": "npx",
55
+ "args": ["-y", "@fjyueke/bify-mcp"],
56
+ "env": {}
57
+ },
58
+ "@fjyueke/arco-mcp": {
59
+ "command": "npx",
60
+ "args": ["-y", "@fjyueke/arco-mcp"],
61
+ "env": {}
62
+ }
63
+ }
64
+ }
65
+ ```
66
+
46
67
  ## 可用工具
47
68
 
48
69
  | 工具名 | 功能 |
package/dist/index.js CHANGED
@@ -176,8 +176,35 @@ var componentMappings = [
176
176
  { arcoProp: "arrow", bifyProp: "rightIcon" },
177
177
  { arcoProp: "bordered", bifyProp: "bordered" },
178
178
  { arcoProp: "icon", bifyProp: "icon" },
179
- { arcoProp: "onClick", bifyProp: "onClick" }
180
- ]
179
+ { arcoProp: "onClick", bifyProp: "onClick" },
180
+ { arcoProp: "size", bifyProp: "size" },
181
+ { arcoProp: "align", bifyProp: "align" },
182
+ { arcoProp: "arrowDirection", bifyProp: "arrowDirection" },
183
+ { arcoProp: "required", bifyProp: "required" },
184
+ { arcoProp: "isLink", bifyProp: "isLink" },
185
+ { arcoProp: "titleStyle", bifyProp: "titleStyle" },
186
+ { arcoProp: "titleClass", bifyProp: "titleClass" },
187
+ { arcoProp: "valueClass", bifyProp: "valueClass" },
188
+ { arcoProp: "briefClass", bifyProp: "briefClass" }
189
+ ],
190
+ valueMappings: {
191
+ size: {
192
+ medium: "medium",
193
+ large: "large"
194
+ },
195
+ align: {
196
+ start: "start",
197
+ center: "center",
198
+ end: "end"
199
+ },
200
+ arrowDirection: {
201
+ right: "right",
202
+ left: "left",
203
+ up: "up",
204
+ down: "down"
205
+ }
206
+ },
207
+ notes: "Bify Cell \u652F\u6301 size(medium/large)\u3001align(start/center/end)\u3001arrowDirection \u7B49\u5E03\u5C40\u5C5E\u6027"
181
208
  },
182
209
  {
183
210
  arcoName: "CellGroup",
@@ -197,14 +224,17 @@ var componentMappings = [
197
224
  propMappings: [
198
225
  { arcoProp: "type", bifyProp: "color" },
199
226
  { arcoProp: "ghost", bifyProp: "variant", transform: () => "outlined" },
227
+ { arcoProp: "shape", bifyProp: "shape" },
200
228
  { arcoProp: "size", bifyProp: "size" },
201
229
  { arcoProp: "disabled", bifyProp: "disabled" },
202
230
  { arcoProp: "loading", bifyProp: "loading" },
203
231
  { arcoProp: "icon", bifyProp: "icon" },
232
+ { arcoProp: "iconPosition", bifyProp: "iconPosition" },
204
233
  { arcoProp: "onClick", bifyProp: "onClick" },
205
234
  { arcoProp: "className", bifyProp: "className" },
206
235
  { arcoProp: "style", bifyProp: "style" },
207
- { arcoProp: "block", bifyProp: "block" }
236
+ { arcoProp: "block", bifyProp: "block" },
237
+ { arcoProp: "hairline", bifyProp: "hairline" }
208
238
  ],
209
239
  valueMappings: {
210
240
  color: {
@@ -218,8 +248,14 @@ var componentMappings = [
218
248
  medium: "medium",
219
249
  large: "large",
220
250
  huge: "large"
251
+ },
252
+ variant: {
253
+ contained: "contained",
254
+ text: "text",
255
+ outlined: "outlined"
221
256
  }
222
- }
257
+ },
258
+ notes: "Bify Button \u4F7F\u7528 color \u5C5E\u6027\u63A7\u5236\u989C\u8272\uFF0Cvariant \u5C5E\u6027\u63A7\u5236\u6837\u5F0F\uFF08contained/text/outlined\uFF09"
223
259
  },
224
260
  {
225
261
  arcoName: "Avatar",
@@ -252,8 +288,10 @@ var componentMappings = [
252
288
  bifyImport: "@fjyueke/bify-core",
253
289
  propMappings: [
254
290
  { arcoProp: "type", bifyProp: "color" },
291
+ { arcoProp: "variant", bifyProp: "variant" },
255
292
  { arcoProp: "size", bifyProp: "size" },
256
293
  { arcoProp: "closable", bifyProp: "closeable" },
294
+ { arcoProp: "closeIcon", bifyProp: "closeIcon" },
257
295
  { arcoProp: "onClose", bifyProp: "onClose" },
258
296
  { arcoProp: "shape", bifyProp: "shape" }
259
297
  ],
@@ -261,6 +299,7 @@ var componentMappings = [
261
299
  color: {
262
300
  default: "default",
263
301
  primary: "primary",
302
+ info: "info",
264
303
  success: "success",
265
304
  warning: "warning",
266
305
  danger: "danger"
@@ -269,8 +308,19 @@ var componentMappings = [
269
308
  small: "small",
270
309
  medium: "medium",
271
310
  large: "large"
311
+ },
312
+ shape: {
313
+ square: "square",
314
+ rounded: "rounded",
315
+ roundedRight: "roundedRight",
316
+ roundedLeft: "roundedLeft"
317
+ },
318
+ variant: {
319
+ contained: "contained",
320
+ outlined: "outlined"
272
321
  }
273
- }
322
+ },
323
+ notes: "Bify Tag \u652F\u6301 info \u989C\u8272\uFF0Cvariant \u63A7\u5236\u6837\u5F0F\uFF08contained/outlined\uFF09"
274
324
  },
275
325
  {
276
326
  arcoName: "Switch",
@@ -334,14 +384,20 @@ var componentMappings = [
334
384
  bifyImport: "@fjyueke/bify-core",
335
385
  propMappings: [
336
386
  { arcoProp: "visible", bifyProp: "open" },
387
+ { arcoProp: "defaultVisible", bifyProp: "defaultOpen" },
337
388
  { arcoProp: "title", bifyProp: "title" },
338
389
  { arcoProp: "content", bifyProp: "message" },
339
- { arcoProp: "onClose", bifyProp: "onClose" },
390
+ { arcoProp: "messageAlign", bifyProp: "messageAlign" },
340
391
  { arcoProp: "confirmText", bifyProp: "confirm" },
341
392
  { arcoProp: "cancelText", bifyProp: "cancel" },
342
393
  { arcoProp: "onConfirm", bifyProp: "onConfirm" },
343
- { arcoProp: "onCancel", bifyProp: "onCancel" }
344
- ]
394
+ { arcoProp: "onCancel", bifyProp: "onCancel" },
395
+ { arcoProp: "onClose", bifyProp: "onClose" },
396
+ { arcoProp: "onBeforeClose", bifyProp: "onBeforeClose" },
397
+ { arcoProp: "backdrop", bifyProp: "backdrop" },
398
+ { arcoProp: "theme", bifyProp: "theme" }
399
+ ],
400
+ notes: "Bify Dialog \u7684 confirm/cancel \u5C5E\u6027\u652F\u6301 ReactNode \u6216 ButtonProps \u5BF9\u8C61"
345
401
  },
346
402
  {
347
403
  arcoName: "Toast",
@@ -420,11 +476,11 @@ var componentMappings = [
420
476
  arcoImport: "@arco-design/mobile-react",
421
477
  bifyImport: "@fjyueke/bify-core",
422
478
  propMappings: [
423
- { arcoProp: "value", bifyProp: "modelValue" },
424
- { arcoProp: "placeholder", bifyProp: "placeholder" },
425
479
  { arcoProp: "label", bifyProp: "label" },
426
- { arcoProp: "onChange", bifyProp: "onChange" }
427
- ]
480
+ { arcoProp: "feedback", bifyProp: "feedback" },
481
+ { arcoProp: "children", bifyProp: "children" }
482
+ ],
483
+ notes: "Bify Field \u57FA\u4E8E Form.Item\uFF0C\u4F7F\u7528 children \u4F20\u9012\u8868\u5355\u63A7\u4EF6\uFF0C\u4E0D\u652F\u6301\u76F4\u63A5\u7684 value/modelValue \u5C5E\u6027"
428
484
  },
429
485
  {
430
486
  arcoName: "Textarea",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fjyueke/bify-mcp",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "type": "module",
5
5
  "description": "MCP UI builder by Bify",
6
6
  "license": "MIT",