figma-rust-mcp 2.8.5 → 2.9.5
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/README.md +101 -52
- package/bin/figma-mcp.js +1 -1
- package/package.json +1 -1
- package/plugin/code.js +270 -13
- package/plugin/ui.html +768 -374
- package/scripts/test-rust-mcp.sh +4 -6
package/scripts/test-rust-mcp.sh
CHANGED
|
@@ -26,12 +26,10 @@ OUTPUT=$(echo "$INPUT" | $BIN_PATH --port 38499 2>/dev/null)
|
|
|
26
26
|
echo "$OUTPUT" | head -n 4
|
|
27
27
|
|
|
28
28
|
# Verify tool registration in JSON-RPC output
|
|
29
|
-
echo "--- Test 3: Verify Tool Registrations ---"
|
|
30
|
-
|
|
31
|
-
echo "$OUTPUT" | grep -q "
|
|
32
|
-
|
|
33
|
-
echo "$OUTPUT" | grep -q "figma_read" && echo "✓ figma_read registered"
|
|
34
|
-
echo "$OUTPUT" | grep -q "figma_write" && echo "✓ figma_write registered"
|
|
29
|
+
echo "--- Test 3: Verify Tool Registrations (12 tools) ---"
|
|
30
|
+
for TOOL in figma_status figma_get_selection figma_inspect_node figma_to_code figma_get_tokens figma_export_asset figma_export_assets figma_index figma_read figma_write figma_rules figma_docs; do
|
|
31
|
+
echo "$OUTPUT" | grep -q "\"name\":\"$TOOL\"" && echo "✓ $TOOL registered"
|
|
32
|
+
done
|
|
35
33
|
|
|
36
34
|
# Test 4: Node/NPX wrapper test
|
|
37
35
|
echo "--- Test 4: NPX Wrapper ---"
|