viewgate-mcp 1.0.35 → 1.0.36

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 +20 -25
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -51,22 +51,22 @@ function createMcpServer(apiKey, personalKey) {
51
51
  tools: [
52
52
  {
53
53
  name: "get_annotations",
54
- description: "Retrieves feedback annotations. You can fetch specific tickets by providing their human keys (e.g., 'VG-XXXX') or internal IDs. By default, it returns pending annotations for the current sprint. WORKFLOW: 1. Fetch annotations, 2. Apply surgical fixes, 3. Mark as ready.",
54
+ description: "Fetch feedback. Keys ('VG-XXXX') or IDs. Workflow: 1. Fetch, 2. Fix, 3. Mark Ready.",
55
55
  inputSchema: {
56
56
  type: "object",
57
57
  properties: {
58
- limit: { type: "number", description: "Maximum number of annotations to retrieve (default: 3, automatically increased if specific keys are provided)", default: 3 },
59
- status: { type: "string", description: "Comma-separated list (e.g. 'pending,bug_fixing'). Only 'pending' and 'bug_fixing' are allowed for MCP resolution flow.", default: "pending,bug_fixing" },
60
- search: { type: "string", description: "Search term to filter by message or file." },
61
- key: { type: "string", description: "Human key (e.g. VG-XXXX) or comma-separated keys to find specific annotations." },
62
- keys: { type: "array", items: { type: "string" }, description: "List of human keys (e.g. VG-XXXX) to find specific annotations." },
63
- ids: { type: "string", description: "Comma-separated internal database IDs." }
58
+ limit: { type: "number", description: "Max results.", default: 3 },
59
+ status: { type: "string", description: "Comma list (pending,bug_fixing).", default: "pending,bug_fixing" },
60
+ search: { type: "string", description: "Search message/file." },
61
+ key: { type: "string", description: "VG-XXXX key." },
62
+ keys: { type: "array", items: { type: "string" }, description: "Keys array." },
63
+ ids: { type: "string", description: "Internal IDs." }
64
64
  },
65
65
  },
66
66
  },
67
67
  {
68
68
  name: "mark_annotation_ready",
69
- description: "CRITICAL: Call this tool AFTER applying code fixes. This also registers the tickets as resolved by the AI for the current sprint to avoid re-fetching them. REQUIREMENT: Use the internal database ID (e.g. 675ba...), NOT the human key (VG-XXXX).",
69
+ description: "Mark as ready/applied. Use internal IDs.",
70
70
  inputSchema: {
71
71
  type: "object",
72
72
  properties: {
@@ -75,8 +75,8 @@ function createMcpServer(apiKey, personalKey) {
75
75
  items: {
76
76
  type: "object",
77
77
  properties: {
78
- id: { type: "string", description: "The ID of the annotation to mark as ready" },
79
- appliedChanges: { type: "string", description: "Descriptive summary of changes in the preferredLanguage." }
78
+ id: { type: "string", description: "Internal ID." },
79
+ appliedChanges: { type: "string", description: "Summary." }
80
80
  },
81
81
  required: ["id", "appliedChanges"]
82
82
  }
@@ -87,14 +87,14 @@ function createMcpServer(apiKey, personalKey) {
87
87
  },
88
88
  {
89
89
  name: "mark_annotations_as_live",
90
- description: "Transitions annotations from 'applied' (local fix) to 'ready_for_review' (live on server). Call this tool ONLY after you have successfully deployed/uploaded your code changes.",
90
+ description: "Mark as live (ready_for_review). IDs required.",
91
91
  inputSchema: {
92
92
  type: "object",
93
93
  properties: {
94
94
  ids: {
95
95
  type: "array",
96
96
  items: { type: "string" },
97
- description: "List of internal database IDs to mark as live."
97
+ description: "Internal IDs."
98
98
  }
99
99
  },
100
100
  required: ["ids"]
@@ -282,19 +282,14 @@ function createMcpServer(apiKey, personalKey) {
282
282
  componentName: ann.componentName,
283
283
  figmaReference: ann.figmaReference,
284
284
  backendEndpoints: ann.backendEndpoints || [],
285
- _ia_fix_instruction: `### 🎯 DESIGN CONTEXT (Figma)
286
- ${figmaLinks ? `Design references: ${figmaLinks}` : 'No explicit design linked.'}
287
-
288
- ${ann.backendEndpoints?.length ? `### 🔌 BACKEND CONTEXT\nRelated endpoints: ${ann.backendEndpoints.join(', ')}` : ''}
289
-
290
- ${ann.corrections && Array.isArray(ann.corrections) && ann.corrections.length > 0 ? `### ⚠️ CORRECTION HISTORY\n${ann.corrections.map((c, i) => `Correction ${i + 1}: "${c.text}" (Status: ${c.status})`).join('\n')}` : ''}
291
-
292
- ### 🔬 FIX PROTOCOL
293
- 1. **Target**: \`data-vg-id="${ann.reference?.vgId}"\` in \`${file}\`.
294
- 2. **Context**: \`${ann.reference?.parentContext?.slice(0, 50)}...\`
295
-
296
- IMPORTANT: Respond in ${rawData.preferredLanguage === 'es' ? 'SPANISH' : 'ENGLISH'}.
297
- Instruction: ${ann.message}`
285
+ _ia_fix_instruction: `[AUTONOMOUS_MODE: TRUE]
286
+ Target: ${file} (data-vg-id="${ann.reference?.vgId}")
287
+ Context: ${ann.reference?.parentContext?.slice(0, 40)}...
288
+ ${figmaLinks ? `Figma: ${figmaLinks}` : ''}
289
+ ${ann.backendEndpoints?.length ? `Endpoints: ${ann.backendEndpoints.join(', ')}` : ''}
290
+ ${ann.corrections && Array.isArray(ann.corrections) && ann.corrections.length > 0 ? `Feedback: ${ann.corrections[ann.corrections.length - 1].text}` : ''}
291
+ Task: ${ann.message}
292
+ Lang: ${rawData.preferredLanguage === 'es' ? 'ES' : 'EN'}`
298
293
  };
299
294
  });
300
295
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viewgate-mcp",
3
- "version": "1.0.35",
3
+ "version": "1.0.36",
4
4
  "main": "dist/index.js",
5
5
  "bin": {
6
6
  "viewgate-mcp": "./dist/index.js"