@testledger/mcp 0.0.2 → 0.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.
Files changed (2) hide show
  1. package/README.md +11 -11
  2. package/package.json +5 -3
package/README.md CHANGED
@@ -23,15 +23,17 @@ 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
- "TEST_REPORTER_API_KEY": "your-api-key-here"
28
+ "TEST_LEDGER_API_KEY": "your-api-key-here"
29
29
  }
30
30
  }
31
31
  }
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.
@@ -42,7 +44,7 @@ Once configured, you can ask Claude Code things like:
42
44
 
43
45
  - "Why is `checkout.spec.js` flaky?"
44
46
  - "What tests have been failing the most this week?"
45
- - "Find all tests with timeout errors"
47
+ - "Show me recent test failures"
46
48
  - "Are there any tests that always fail together?"
47
49
 
48
50
  ### With the /fix-flaky-test command
@@ -71,21 +73,19 @@ The MCP server provides these tools to Claude:
71
73
  | Tool | Description |
72
74
  |------|-------------|
73
75
  | `get_test_history` | Pass/fail/flaky statistics for a test |
74
- | `get_test_errors` | Error messages and stacktraces, grouped by frequency |
75
76
  | `get_failure_patterns` | Time-of-day, browser, and version patterns |
76
77
  | `get_correlated_failures` | Tests that fail together (shared setup issues) |
77
78
  | `get_flaky_tests` | Project-wide flaky test leaderboard |
78
79
  | `get_recent_failures` | Recent failures for quick triage |
79
80
  | `get_test_trend` | Failure rate over time |
80
- | `search_errors` | Full-text search across all errors |
81
81
 
82
82
  ## Configuration Options
83
83
 
84
84
  | Environment Variable | Required | Description |
85
- |---------------------|----------|-------------|
86
- | `TEST_REPORTER_API_KEY` | Yes | Your API key from the dashboard |
87
- | `TEST_REPORTER_API_URL` | No | Custom API URL (default: `https://app-api.testledger.dev`) |
88
- | `TEST_REPORTER_PROJECT_ID` | No | Default project ID to use for queries |
85
+ |--------------------------|-----|------------------------------------------------------------|
86
+ | `TEST_LEDGER_API_KEY` | Yes | Your API key from the dashboard |
87
+ | `TEST_LEDGER_API_URL` | No | Custom API URL (default: `https://app-api.testledger.dev`) |
88
+ | `TEST_LEDGER_PROJECT_ID` | No | Default project ID to use for queries |
89
89
 
90
90
  ### Example with all options
91
91
 
@@ -96,8 +96,8 @@ The MCP server provides these tools to Claude:
96
96
  "command": "npx",
97
97
  "args": ["-y", "@testledger/mcp"],
98
98
  "env": {
99
- "TEST_REPORTER_API_KEY": "tr_live_abc123",
100
- "TEST_REPORTER_PROJECT_ID": "42"
99
+ "TEST_LEDGER_API_KEY": "tr_live_abc123",
100
+ "TEST_LEDGER_PROJECT_ID": "42"
101
101
  }
102
102
  }
103
103
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testledger/mcp",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
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",