@seed-design/mcp 1.3.5 → 1.3.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.
- package/bin/index.mjs +11 -13
- package/package.json +2 -2
- package/src/bin/websocket-server.ts +7 -10
package/bin/index.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import WebSocket$1 from 'ws';
|
|
|
10
10
|
import { createRestNormalizer, figma, react, getFigmaColorVariableNames } from '@seed-design/figma';
|
|
11
11
|
import { z } from 'zod';
|
|
12
12
|
|
|
13
|
-
var version = "1.3.
|
|
13
|
+
var version = "1.3.7";
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Custom logging module that writes to stderr instead of stdout
|
|
@@ -996,18 +996,16 @@ function handleJoin(ws, data) {
|
|
|
996
996
|
message: `Joined channel: ${channelName}`,
|
|
997
997
|
channel: channelName
|
|
998
998
|
});
|
|
999
|
-
// Send connection confirmation
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
});
|
|
1010
|
-
}
|
|
999
|
+
// Send connection confirmation
|
|
1000
|
+
console.log("Sending message to client:", id);
|
|
1001
|
+
sendJson(ws, {
|
|
1002
|
+
type: "system",
|
|
1003
|
+
message: {
|
|
1004
|
+
id,
|
|
1005
|
+
result: `Connected to channel: ${channelName}`
|
|
1006
|
+
},
|
|
1007
|
+
channel: channelName
|
|
1008
|
+
});
|
|
1011
1009
|
// Notify other clients in channel
|
|
1012
1010
|
broadcastToChannel(channelName, {
|
|
1013
1011
|
type: "system",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seed-design/mcp",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.7",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/daangn/seed-design.git",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@modelcontextprotocol/sdk": "^1.25.3",
|
|
33
|
-
"@seed-design/figma": "1.3.
|
|
33
|
+
"@seed-design/figma": "1.3.7",
|
|
34
34
|
"cac": "^6.7.14",
|
|
35
35
|
"figma-api": "^2.1.0-beta",
|
|
36
36
|
"uuid": "^13.0.0",
|
|
@@ -64,16 +64,13 @@ function handleJoin(ws: ServerWebSocket<unknown>, data: JoinMessage): void {
|
|
|
64
64
|
channel: channelName,
|
|
65
65
|
});
|
|
66
66
|
|
|
67
|
-
// Send connection confirmation
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
channel: channelName,
|
|
75
|
-
});
|
|
76
|
-
}
|
|
67
|
+
// Send connection confirmation
|
|
68
|
+
console.log("Sending message to client:", id);
|
|
69
|
+
sendJson(ws, {
|
|
70
|
+
type: "system",
|
|
71
|
+
message: { id, result: `Connected to channel: ${channelName}` },
|
|
72
|
+
channel: channelName,
|
|
73
|
+
});
|
|
77
74
|
|
|
78
75
|
// Notify other clients in channel
|
|
79
76
|
broadcastToChannel(
|