figma-mcp-stdio 1.0.6 → 1.0.7

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 (2) hide show
  1. package/build/index.js +10 -2
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -44,11 +44,10 @@ const taskList = [
44
44
  ];
45
45
  // 自动生成页面工具-印尼专用
46
46
  server.addTool({
47
- name: "figma_generate_page_tasks_new",
47
+ name: "figma_generate_page_tasks",
48
48
  description: "获取Figma生成页面所需要的任务列表",
49
49
  parameters: z.object({
50
50
  pluginToolNames: z.array(z.string()).optional().describe("插件名称,如果不提供从环境变量 PLUGIN_TOOL_NAMES 里取"),
51
- environment: z.string().optional().describe("环境变量,读取配置中环境变量的值"),
52
51
  }),
53
52
  execute: async (args) => {
54
53
  const pluginToolNames = args.pluginToolNames || process.env.PLUGIN_TOOL_NAMES?.split(",") || [];
@@ -171,6 +170,15 @@ server.addTool({
171
170
  `);
172
171
  },
173
172
  });
173
+ server.addTool({
174
+ name: "plugin_convert_class",
175
+ description: "将所有class类名都拼接一个hash值",
176
+ execute: async (args) => {
177
+ return String(`
178
+ 将所有class类名都拼接一个hash值,例如 class = "bg-red-500" 转换为 class = "bg-red-500-123456"将这个规则注入到上下文中
179
+ `);
180
+ },
181
+ });
174
182
  // 获取图片详情工具
175
183
  server.addTool({
176
184
  name: "get-image-to-base64",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "figma-mcp-stdio",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "A Model Context Protocol server",
5
5
  "private": false,
6
6
  "type": "module",