@testledger/mcp 0.0.4 → 0.0.5
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 +36 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -163,6 +163,39 @@ const tools = [
|
|
|
163
163
|
},
|
|
164
164
|
},
|
|
165
165
|
},
|
|
166
|
+
{
|
|
167
|
+
name: "get_flaky_specs",
|
|
168
|
+
description: "Get flaky specs from pre-computed materialized view. Faster than get_flaky_tests as it uses cached data refreshed hourly. Returns spec-level flakiness (not individual test level).",
|
|
169
|
+
inputSchema: {
|
|
170
|
+
type: "object",
|
|
171
|
+
properties: {
|
|
172
|
+
project_id: {
|
|
173
|
+
type: "number",
|
|
174
|
+
description: "Project ID to filter by (optional)",
|
|
175
|
+
},
|
|
176
|
+
min_flaky_count: {
|
|
177
|
+
type: "number",
|
|
178
|
+
description: "Minimum number of flaky occurrences (default: 1)",
|
|
179
|
+
default: 1,
|
|
180
|
+
},
|
|
181
|
+
min_flaky_percent: {
|
|
182
|
+
type: "number",
|
|
183
|
+
description: "Minimum flaky percentage to include (default: 10)",
|
|
184
|
+
default: 10,
|
|
185
|
+
},
|
|
186
|
+
min_total_runs: {
|
|
187
|
+
type: "number",
|
|
188
|
+
description: "Minimum total runs for statistical significance (default: 1)",
|
|
189
|
+
default: 1,
|
|
190
|
+
},
|
|
191
|
+
limit: {
|
|
192
|
+
type: "number",
|
|
193
|
+
description: "Maximum results to return (default: 50)",
|
|
194
|
+
default: 50,
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
},
|
|
198
|
+
},
|
|
166
199
|
{
|
|
167
200
|
name: "get_recent_failures",
|
|
168
201
|
description: "Get the most recent test failures for quick triage. Useful for seeing what's currently broken. For faster results, provide a spec_file filter.",
|
|
@@ -255,6 +288,9 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
255
288
|
case "get_flaky_tests":
|
|
256
289
|
result = await apiCall("/tests/flaky", args);
|
|
257
290
|
break;
|
|
291
|
+
case "get_flaky_specs":
|
|
292
|
+
result = await apiCall("/tests/flaky-specs", args);
|
|
293
|
+
break;
|
|
258
294
|
case "get_recent_failures":
|
|
259
295
|
result = await apiCall("/tests/recent-failures", args);
|
|
260
296
|
break;
|