figma-mcp-stdio 1.1.0 → 1.1.2
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/build/index.js +3 -2
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -93,6 +93,7 @@ server.addTool({
|
|
|
93
93
|
- Design-token转换:查看figmajson原始数据,进行Design-token样式转换,例:textStyle: Func/Body/B2/B2-R,直接使用Design-Token的原始值 font:Func/Body/B2/B2-R ,无需转换为变量和原始css值,打包工具会自动转换
|
|
94
94
|
注:由Func/xxx 格式的为Design-token,其他格式的不变
|
|
95
95
|
- 最外层容器不要设置为375px、1440px等固定宽度,响应式布局,宽度为100%
|
|
96
|
+
- 设置了 width: 100% 的元素必须同时加上 box-sizing: border-box;否则在存在 padding 时会导致实际宽度溢出
|
|
96
97
|
- 样式生成时gap转换为margin、font-weight: 600转换为font-weight: bold
|
|
97
98
|
`);
|
|
98
99
|
},
|
|
@@ -265,10 +266,10 @@ server.addTool({
|
|
|
265
266
|
// 还原度对比工具
|
|
266
267
|
server.addTool({
|
|
267
268
|
name: "check_ui",
|
|
268
|
-
description: "
|
|
269
|
+
description: "还原度对比",
|
|
269
270
|
execute: async (args) => {
|
|
270
271
|
return String(`
|
|
271
|
-
⚠️ 重要提示:不允许跳过,必须执行,采用@cursor/browser
|
|
272
|
+
⚠️ 重要提示:不允许跳过,必须执行,采用@cursor/browser浏览器工具进行对比,查看当前编辑项目的README.md文件了解启动和访问项目的方式,查看路由配置了解访问路径,项目启动后,通过navigate工具访问页面
|
|
272
273
|
你是一名 UI 验收专家,具备像素级别的视觉识别能力
|
|
273
274
|
使用能控制网页浏览器的工具@cursor/browser将当前 UI(只截取当前视窗,fullPage=false) 与截图对比
|
|
274
275
|
【前置准备】
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "figma-mcp-stdio",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "A Model Context Protocol server",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"inspector": "npx @modelcontextprotocol/inspector node build/index.js"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"fastmcp": "
|
|
23
|
+
"fastmcp": "^3.24.0",
|
|
24
24
|
"sharp": "^0.34.3",
|
|
25
25
|
"zod": "^3.25.32"
|
|
26
26
|
},
|