viewgate-mcp 1.0.14 → 1.0.15
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 +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -225,8 +225,12 @@ function createMcpServer(apiKey, personalKey) {
|
|
|
225
225
|
componentPath: ann.reference?.componentPath,
|
|
226
226
|
selector: ann.reference?.selector,
|
|
227
227
|
tag: ann.reference?.tag,
|
|
228
|
+
figmaReference: ann.figmaReference,
|
|
228
229
|
backendEndpoints: ann.backendEndpoints || [ann.backendEndpoint].filter(Boolean),
|
|
229
|
-
_ia_fix_instruction: `###
|
|
230
|
+
_ia_fix_instruction: `### 🎨 DESIGN CONTEXT (Figma)
|
|
231
|
+
${ann.figmaReference ? `A design reference is available: ${ann.figmaReference}. Use the 'get_figma_preview' tool to fetch design details and image previews before implementing.` : 'No explicit figma design linked.'}
|
|
232
|
+
|
|
233
|
+
### 🔬 SURGICAL FIX PROTOCOL (Language: ${data.preferredLanguage || 'en'})
|
|
230
234
|
1. **PRIMARY**: Search for \`data-vg-id="${ann.reference?.vgId}"\`.
|
|
231
235
|
2. **SECONDARY**: Check \`${file}\` L${line} (Fiber Source).
|
|
232
236
|
3. **TERTIARY**: Match Tag(\`${ann.reference?.tag}\`) + Role(\`${ann.reference?.fingerprint?.role}\`) + Text("${ann.reference?.text?.slice(0, 30)}").
|