viewgate-mcp 1.0.3 → 1.0.4
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 +13 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -42,7 +42,7 @@ function createMcpServer(apiKey) {
|
|
|
42
42
|
tools: [
|
|
43
43
|
{
|
|
44
44
|
name: "get_annotations",
|
|
45
|
-
description: "Retrieves all feedback annotations. For each annotation, follow the '_ia_fix_instruction' to perform a FAST, SURGICAL fix. Use 'outerHtml' and 'source' (file:line) to locate the exact code block without manual searching.",
|
|
45
|
+
description: "Retrieves all feedback annotations. For each annotation, follow the '_ia_fix_instruction' to perform a FAST, SURGICAL fix. Use 'outerHtml' and 'source' (file:line) to locate the exact code block without manual searching. IMPORTANT: All AI analysis and comments MUST be in the 'preferredLanguage' specified in the output.",
|
|
46
46
|
inputSchema: {
|
|
47
47
|
type: "object",
|
|
48
48
|
properties: {},
|
|
@@ -72,7 +72,7 @@ function createMcpServer(apiKey) {
|
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
name: "planning",
|
|
75
|
-
description: "Planning tool for backlog tickets. CALL WITHOUT ARGUMENTS to fetch backlog tickets that need analysis. CALL WITH 'results' to submit AI analysis in batch. Rules: complejidad (1-3), incertidumbre (1-3), impacto (1-3), riesgo (1-3), tipo (AI-friendly|AI-assisted|Human-critical).",
|
|
75
|
+
description: "Planning tool for backlog tickets. CALL WITHOUT ARGUMENTS to fetch backlog tickets that need analysis. CALL WITH 'results' to submit AI analysis in batch. Rules: complejidad (1-3), incertidumbre (1-3), impacto (1-3), riesgo (1-3), tipo (AI-friendly|AI-assisted|Human-critical). IMPORTANT: All AI analysis and comments MUST be in the 'preferredLanguage' specified in the output.",
|
|
76
76
|
inputSchema: {
|
|
77
77
|
type: "object",
|
|
78
78
|
properties: {
|
|
@@ -175,7 +175,10 @@ function createMcpServer(apiKey) {
|
|
|
175
175
|
content: [
|
|
176
176
|
{
|
|
177
177
|
type: "text",
|
|
178
|
-
text: JSON.stringify(
|
|
178
|
+
text: JSON.stringify({
|
|
179
|
+
preferredLanguage: data.preferredLanguage || 'en',
|
|
180
|
+
annotations: annotationsWithTips
|
|
181
|
+
}, null, 2),
|
|
179
182
|
},
|
|
180
183
|
],
|
|
181
184
|
};
|
|
@@ -230,7 +233,13 @@ function createMcpServer(apiKey) {
|
|
|
230
233
|
}
|
|
231
234
|
const data = (await response.json());
|
|
232
235
|
return {
|
|
233
|
-
content: [{
|
|
236
|
+
content: [{
|
|
237
|
+
type: "text",
|
|
238
|
+
text: JSON.stringify({
|
|
239
|
+
preferredLanguage: data.preferredLanguage || 'en',
|
|
240
|
+
backlog: data.data || []
|
|
241
|
+
}, null, 2)
|
|
242
|
+
}]
|
|
234
243
|
};
|
|
235
244
|
}
|
|
236
245
|
else {
|