viewgate-mcp 1.0.34 → 1.0.35

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 +0 -33
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -157,22 +157,6 @@ function createMcpServer(apiKey, personalKey) {
157
157
  description: "Retrieves the list of endpoints currently synchronized in the backend.",
158
158
  inputSchema: { type: "object", properties: {} },
159
159
  },
160
- {
161
- name: "get_optimizations",
162
- description: "Retrieves reported JSON payload optimizations.",
163
- inputSchema: { type: "object", properties: {} },
164
- },
165
- {
166
- name: "mark_optimization_applied",
167
- description: "Marks a payload optimization as applied.",
168
- inputSchema: {
169
- type: "object",
170
- properties: {
171
- id: { type: "string" }
172
- },
173
- required: ["id"]
174
- },
175
- },
176
160
  {
177
161
  name: "get_ai_resolved_tickets",
178
162
  description: "Retrieves the list of ticket IDs that have already been resolved by the AI in the current sprint.",
@@ -394,23 +378,6 @@ Instruction: ${ann.message}`
394
378
  const data = await response.json();
395
379
  return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
396
380
  }
397
- case "get_optimizations": {
398
- const response = await fetch(`${BACKEND_URL}/api/mcp/optimizations`, {
399
- headers: { 'x-api-key': apiKey, ...(personalKey ? { 'x-personal-key': personalKey } : {}) }
400
- });
401
- if (!response.ok)
402
- throw new Error(`Backend responded with ${response.status}`);
403
- const data = await response.json();
404
- return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
405
- }
406
- case "mark_optimization_applied": {
407
- const args = request.params.arguments;
408
- const response = await fetch(`${BACKEND_URL}/api/mcp/optimizations/${args.id}/applied`, {
409
- method: 'PATCH',
410
- headers: { 'x-api-key': apiKey, ...(personalKey ? { 'x-personal-key': personalKey } : {}) }
411
- });
412
- return { content: [{ type: "text", text: "Optimization marked as applied." }] };
413
- }
414
381
  case "get_ai_resolved_tickets": {
415
382
  const response = await fetch(`${BACKEND_URL}/api/mcp/resolved-tickets`, {
416
383
  headers: { 'x-api-key': apiKey, ...(personalKey ? { 'x-personal-key': personalKey } : {}) }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viewgate-mcp",
3
- "version": "1.0.34",
3
+ "version": "1.0.35",
4
4
  "main": "dist/index.js",
5
5
  "bin": {
6
6
  "viewgate-mcp": "./dist/index.js"