viewgate-mcp 1.0.30 → 1.0.31
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/dist/index.js +10 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -252,6 +252,9 @@ function createMcpServer(apiKey, personalKey) {
|
|
|
252
252
|
const pendingCorrection = Array.isArray(ann.corrections)
|
|
253
253
|
? ann.corrections.find((c) => c.status === 'pending')
|
|
254
254
|
: (typeof ann.corrections === 'string' ? { text: ann.corrections } : null);
|
|
255
|
+
const figmaLinks = Array.isArray(ann.figmaReference)
|
|
256
|
+
? ann.figmaReference.filter((fr) => fr.link).map((fr) => `[${fr.name || 'Design'}](${fr.link})`).join(', ')
|
|
257
|
+
: (ann.figmaReference && typeof ann.figmaReference === 'string' ? ann.figmaReference : null);
|
|
255
258
|
return {
|
|
256
259
|
id: ann._id,
|
|
257
260
|
key: ann.key,
|
|
@@ -264,8 +267,14 @@ function createMcpServer(apiKey, personalKey) {
|
|
|
264
267
|
line: ann.line || (line ? parseInt(line) : undefined),
|
|
265
268
|
vgId: ann.reference?.vgId,
|
|
266
269
|
outerHtml: ann.reference?.outerHtml,
|
|
270
|
+
focusAreas: ann.focusAreas || [],
|
|
271
|
+
componentName: ann.componentName,
|
|
272
|
+
figmaReference: ann.figmaReference,
|
|
273
|
+
backendEndpoints: ann.backendEndpoints || [],
|
|
267
274
|
_ia_fix_instruction: `### 🎯 DESIGN CONTEXT (Figma)
|
|
268
|
-
${
|
|
275
|
+
${figmaLinks ? `Design references: ${figmaLinks}` : 'No explicit design linked.'}
|
|
276
|
+
|
|
277
|
+
${ann.backendEndpoints?.length ? `### 🔌 BACKEND CONTEXT\nRelated endpoints: ${ann.backendEndpoints.join(', ')}` : ''}
|
|
269
278
|
|
|
270
279
|
${pendingCorrection ? `### ⚠️ PENDING CORRECTION\nUser feedback: "${pendingCorrection.text}"` : ''}
|
|
271
280
|
|