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.
- package/dist/index.js +12 -4
- 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:
|
|
175
|
-
|
|
176
|
-
|
|
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 {
|