viewgate-mcp 1.0.33 → 1.0.34

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 +5 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -56,7 +56,7 @@ function createMcpServer(apiKey, personalKey) {
56
56
  type: "object",
57
57
  properties: {
58
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'). Use 'all' for any state.", default: "pending,bug_fixing" },
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
60
  search: { type: "string", description: "Search term to filter by message or file." },
61
61
  key: { type: "string", description: "Human key (e.g. VG-XXXX) or comma-separated keys to find specific annotations." },
62
62
  keys: { type: "array", items: { type: "string" }, description: "List of human keys (e.g. VG-XXXX) to find specific annotations." },
@@ -189,7 +189,10 @@ function createMcpServer(apiKey, personalKey) {
189
189
  case "get_annotations": {
190
190
  const args = request.params.arguments;
191
191
  const limit = args.limit || 3;
192
- const statuses = args.status || 'pending,bug_fixing';
192
+ // Strictly enforce allowed statuses: pending and bug_fixing
193
+ const allowedStatuses = ['pending', 'bug_fixing'];
194
+ const requestedStatuses = (args.status || 'pending,bug_fixing').split(',').map(s => s.trim()).filter(s => allowedStatuses.includes(s));
195
+ const statuses = requestedStatuses.length > 0 ? requestedStatuses.join(',') : 'pending,bug_fixing';
193
196
  const search = args.search || '';
194
197
  // Normalize keys and ids
195
198
  let keysToFetch = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viewgate-mcp",
3
- "version": "1.0.33",
3
+ "version": "1.0.34",
4
4
  "main": "dist/index.js",
5
5
  "bin": {
6
6
  "viewgate-mcp": "./dist/index.js"