viewgate-mcp 1.0.6 → 1.0.8

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/dist/index.js +12 -4
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -56,7 +56,7 @@ function createMcpServer(apiKey) {
56
56
  },
57
57
  {
58
58
  name: "mark_annotation_ready",
59
- description: "CRITICAL: Call this tool AFTER applying code fixes for annotations. It marks tickets as 'Ready for Review' in the ViewGate dashboard and stores your AI-generated change summary. Support batch processing of multiple tickets at once.",
59
+ description: "CRITICAL: Call this tool AFTER applying code fixes for annotations. It marks tickets as 'Ready for Review' in the ViewGate dashboard and stores your AI-generated change summary. Support batch processing of multiple tickets at once. IMPORTANT: The 'appliedChanges' summary MUST be written in the 'preferredLanguage' specified by 'get_annotations' output.",
60
60
  inputSchema: {
61
61
  type: "object",
62
62
  properties: {
@@ -166,14 +166,22 @@ function createMcpServer(apiKey) {
166
166
  source: source,
167
167
  filePath: ann.filePath || file,
168
168
  line: ann.line || (line ? parseInt(line) : undefined),
169
+ vgId: ann.reference?.vgId,
170
+ confidence: ann.reference?.confidence,
171
+ fingerprint: ann.reference?.fingerprint,
169
172
  outerHtml: ann.reference?.outerHtml,
170
173
  parentContext: ann.reference?.parentContext,
171
174
  componentPath: ann.reference?.componentPath,
172
175
  selector: ann.reference?.selector,
173
176
  tag: ann.reference?.tag,
174
- _ia_fix_instruction: hasSource
175
- ? `FAST SURGICAL FIX: Open \`${file}\` at line ${line}. Focus on the block inside \`${ann.reference?.parentContext?.slice(0, 50)}...\`. Exact element: \`${ann.reference?.outerHtml?.slice(0, 100)}...\`. Instruction: ${ann.message}`
176
- : `MANUAL FIND: Search for the element using selector \`${ann.reference?.selector}\`. Reference HTML: \`${ann.reference?.outerHtml?.slice(0, 100)}...\`. Instruction: ${ann.message}`
177
+ _ia_fix_instruction: `### 🔬 SURGICAL FIX PROTOCOL
178
+ 1. **PRIMARY**: Search for \`data-vg-id="${ann.reference?.vgId}"\`.
179
+ 2. **SECONDARY**: Check \`${file}\` L${line} (Fiber Source).
180
+ 3. **TERTIARY**: Match Tag(\`${ann.reference?.tag}\`) + Role(\`${ann.reference?.fingerprint?.role}\`) + Text("${ann.reference?.text?.slice(0, 30)}").
181
+ 4. **VALIDATE**: Confirm parent context matches \`${ann.reference?.parentContext?.slice(0, 50).replace(/`/g, "'")}...\`.
182
+
183
+ Confidence: [vgId: ${ann.reference?.confidence?.vgId || 0}, Fiber: ${ann.reference?.confidence?.fiber || 0}, Fingerprint: ${ann.reference?.confidence?.fingerprint || 0}]
184
+ Instruction: ${ann.message}`
177
185
  };
178
186
  });
179
187
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viewgate-mcp",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "main": "dist/index.js",
5
5
  "bin": {
6
6
  "viewgate-mcp": "./dist/index.js"
@@ -37,4 +37,4 @@
37
37
  "tsx": "^4.21.0",
38
38
  "typescript": "^5.9.3"
39
39
  }
40
- }
40
+ }