mcp-figma-toolkit 1.0.12 → 1.0.14

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/package.json +1 -1
  2. package/plugin/plugin.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-figma-toolkit",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "description": "MCP server that enables AI agents to manipulate Figma documents - create shapes, text, styles, components, variables, and more",
5
5
  "type": "module",
6
6
  "main": "dist/server.js",
package/plugin/plugin.js CHANGED
@@ -6,7 +6,7 @@ figma.ui.onmessage = async (msg) => {
6
6
  const { id, action, args } = msg || {};
7
7
  try {
8
8
  const result = await handleAction(action, args || {});
9
- reply(id, Object.assign({ ok: true }, result || {}));
9
+ reply(id, Array.isArray(result) ? { ok: true, data: result } : Object.assign({ ok: true }, result || {}));
10
10
  } catch (e) {
11
11
  reply(id, { ok: false }, e instanceof Error ? e.message : String(e));
12
12
  }