@testledger/mcp 0.0.3 → 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/README.md CHANGED
@@ -23,7 +23,7 @@ Add this to your Claude Code MCP config:
23
23
  "mcpServers": {
24
24
  "test-reporter": {
25
25
  "command": "npx",
26
- "args": ["-y", "@testledger/mcp"],
26
+ "args": ["-y", "@testledger/mcp@latest"],
27
27
  "env": {
28
28
  "TEST_LEDGER_API_KEY": "your-api-key-here"
29
29
  }
@@ -32,6 +32,8 @@ Add this to your Claude Code MCP config:
32
32
  }
33
33
  ```
34
34
 
35
+ > **Tip:** Using `@latest` ensures you always get the newest version with bug fixes.
36
+
35
37
  ### 3. Restart Claude Code
36
38
 
37
39
  That's it! Claude Code now has access to your test results.
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testledger/mcp",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "MCP server for Test Ledger - analyze flaky tests with Claude Code",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -14,13 +14,15 @@
14
14
  "build": "tsc",
15
15
  "dev": "tsc --watch",
16
16
  "start": "node dist/index.js",
17
- "prepublishOnly": "npm run build"
17
+ "prepublishOnly": "npm run build",
18
+ "release": "release-it"
18
19
  },
19
20
  "dependencies": {
20
21
  "@modelcontextprotocol/sdk": "^1.0.0"
21
22
  },
22
23
  "devDependencies": {
23
24
  "@types/node": "^20.10.0",
25
+ "release-it": "^19.0.5",
24
26
  "typescript": "^5.3.0"
25
27
  },
26
28
  "engines": {
@@ -28,7 +30,7 @@
28
30
  },
29
31
  "repository": {
30
32
  "type": "git",
31
- "url": "https://github.com/willbrock/test-ledger-mcp"
33
+ "url": "https://github.com/WillBrock/test-ledger-mcp"
32
34
  },
33
35
  "keywords": [
34
36
  "mcp",