viewgate-mcp 1.0.31 → 1.0.32

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 +3 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -181,7 +181,8 @@ function createMcpServer(apiKey, personalKey) {
181
181
  keysToFetch = keysToFetch.concat(args.keys);
182
182
  const combinedKey = keysToFetch.filter(k => k).join(',');
183
183
  const idsToFetch = args.ids || '';
184
- let fetchUrl = `${BACKEND_URL}/api/mcp/annotations?lock=true`;
184
+ const agentId = personalKey || 'mcp-agent-' + (apiKey?.slice(-6) || 'generic');
185
+ let fetchUrl = `${BACKEND_URL}/api/mcp/annotations?lock=true&agentId=${encodeURIComponent(agentId)}`;
185
186
  if (statuses && statuses !== 'all')
186
187
  fetchUrl += `&status=${statuses}`;
187
188
  if (limit)
@@ -276,7 +277,7 @@ ${figmaLinks ? `Design references: ${figmaLinks}` : 'No explicit design linked.'
276
277
 
277
278
  ${ann.backendEndpoints?.length ? `### 🔌 BACKEND CONTEXT\nRelated endpoints: ${ann.backendEndpoints.join(', ')}` : ''}
278
279
 
279
- ${pendingCorrection ? `### ⚠️ PENDING CORRECTION\nUser feedback: "${pendingCorrection.text}"` : ''}
280
+ ${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')}` : ''}
280
281
 
281
282
  ### 🔬 FIX PROTOCOL
282
283
  1. **Target**: \`data-vg-id="${ann.reference?.vgId}"\` in \`${file}\`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viewgate-mcp",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "main": "dist/index.js",
5
5
  "bin": {
6
6
  "viewgate-mcp": "./dist/index.js"