mcp-figma-toolkit 1.0.12 → 1.0.13

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 +4 -4
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.13",
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
@@ -1502,18 +1502,18 @@ function deleteVariableCollection({ collectionId }) {
1502
1502
  // Library variables
1503
1503
  async function getLibraryVariableCollections() {
1504
1504
  var collections = await figma.teamLibrary.getAvailableLibraryVariableCollectionsAsync();
1505
- return collections.map(function(c) {
1505
+ return { collections: collections.map(function(c) {
1506
1506
  return { name: c.name, key: c.key, libraryName: c.libraryName };
1507
- });
1507
+ }) };
1508
1508
  }
1509
1509
 
1510
1510
  async function getLibraryVariablesInCollection(input) {
1511
1511
  var collectionKey = input.collectionKey;
1512
1512
  if (!collectionKey) throw new Error("collectionKey is required");
1513
1513
  var variables = await figma.teamLibrary.getVariablesInLibraryCollectionAsync(collectionKey);
1514
- return variables.map(function(v) {
1514
+ return { variables: variables.map(function(v) {
1515
1515
  return { key: v.key, name: v.name, resolvedType: v.resolvedType };
1516
- });
1516
+ }) };
1517
1517
  }
1518
1518
 
1519
1519
  async function importLibraryVariable(input) {