test-inventory-mcp 0.10.0 → 0.11.0
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/CHANGELOG.md +12 -0
- package/README.md +10 -7
- package/dist/server.js +2 -2
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# test-inventory-mcp
|
|
2
2
|
|
|
3
|
+
## 0.11.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#58](https://github.com/Huldoser/test-inventory-mcp/pull/58) [`20c623b`](https://github.com/Huldoser/test-inventory-mcp/commit/20c623b64d1ae361c1211e230f59f07aa47e2486) - Use test-inventory 0.12.0 to match changed paths against literal Vite module globs and resolve Vitest projects from their configured root. Request `dependencyGlobs` to see the patterns behind a match.
|
|
8
|
+
|
|
9
|
+
## 0.10.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#56](https://github.com/Huldoser/test-inventory-mcp/pull/56) [`e0f1d9b`](https://github.com/Huldoser/test-inventory-mcp/commit/e0f1d9bec17a2711498e245547dfab1447ca7f20) - Require test-inventory 0.11.1 for parser fixes, imported table counts and diff reporting when a conditional skip becomes unconditional or vice versa.
|
|
14
|
+
|
|
3
15
|
## 0.10.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -10,8 +10,8 @@ client; its model provider and privacy settings determine what happens to that t
|
|
|
10
10
|
|
|
11
11
|
## Setup
|
|
12
12
|
|
|
13
|
-
The server requires test-inventory 0.
|
|
14
|
-
|
|
13
|
+
The server requires [test-inventory 0.12.0](https://github.com/Huldoser/test-inventory/releases/tag/v0.12.0) or a later
|
|
14
|
+
0.12 patch. It resolves Vitest projects from their configured root and tracks literal Vite module globs.
|
|
15
15
|
|
|
16
16
|
Node.js 22.12 or newer. The client starts the server with `npx` and talks to it over standard input and output. The
|
|
17
17
|
server scans the test files your test runner's config runs, with the runner `--framework` names or, without
|
|
@@ -20,7 +20,7 @@ it, the one the project uses. Globs pick the files instead, as on test-inventory
|
|
|
20
20
|
**Claude Code**, in the project folder. `--scope project` writes `.mcp.json`, for everyone who works on the project:
|
|
21
21
|
|
|
22
22
|
```sh
|
|
23
|
-
claude mcp add --scope project test-inventory -- npx -y test-inventory-mcp@0.
|
|
23
|
+
claude mcp add --scope project test-inventory -- npx -y test-inventory-mcp@0.11 --framework playwright
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
**Cursor**, in `.cursor/mcp.json`:
|
|
@@ -30,7 +30,7 @@ claude mcp add --scope project test-inventory -- npx -y test-inventory-mcp@0.10
|
|
|
30
30
|
"mcpServers": {
|
|
31
31
|
"test-inventory": {
|
|
32
32
|
"command": "npx",
|
|
33
|
-
"args": ["-y", "test-inventory-mcp@0.
|
|
33
|
+
"args": ["-y", "test-inventory-mcp@0.11", "--framework", "playwright"]
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -44,7 +44,7 @@ claude mcp add --scope project test-inventory -- npx -y test-inventory-mcp@0.10
|
|
|
44
44
|
"test-inventory": {
|
|
45
45
|
"type": "stdio",
|
|
46
46
|
"command": "npx",
|
|
47
|
-
"args": ["-y", "test-inventory-mcp@0.
|
|
47
|
+
"args": ["-y", "test-inventory-mcp@0.11", "--framework", "playwright"]
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -112,8 +112,9 @@ version. The records have selected keys and their `id`. Pass a non-null `nextCur
|
|
|
112
112
|
arguments to read another page; a narrow filter returning zero tests is a valid result.
|
|
113
113
|
|
|
114
114
|
`related` takes the files a change touches, from the project root as `git diff --name-only` writes them, and keeps
|
|
115
|
-
|
|
115
|
+
tests that depend on a changed file, match it through a literal `import.meta.glob` pattern, or reach code the scan can't follow, as
|
|
116
116
|
test-inventory's [`--related`](https://huldoser.github.io/test-inventory/guide/cli#tests-a-change-can-affect) does.
|
|
117
|
+
Request `dependencyGlobs` in `fields` to see the patterns. They can match new or deleted files.
|
|
117
118
|
The filter uses the actual scanned folder when `directory` names an internal link or an absolute path inside the project.
|
|
118
119
|
It also keeps tests that import a changed helper elsewhere in the project, outside that scanned folder.
|
|
119
120
|
`dependencies` can list hundreds of files, so it isn't among the default `fields`, and `get_tests` returns as many
|
|
@@ -142,6 +143,8 @@ say.
|
|
|
142
143
|
`total`, `nextCursor`, `hashesComparable`, `warnings` and `hint`. It does not scan or write files. Use the same
|
|
143
144
|
framework, root, patterns, filters and `expandCases` setting for both scans. Hash comparisons and rename matching
|
|
144
145
|
need the exact same core version. Incomplete scans produce warnings. Zero changes returns an empty page and a hint.
|
|
146
|
+
With scans compared by this server, a conditional skip becoming unconditional counts as `newlySkipped`. The reverse
|
|
147
|
+
counts as `reEnabled`.
|
|
145
148
|
Each saved file must be a regular file of at most 128 MiB. Save scans with the core CLI, without `--fields` or
|
|
146
149
|
`--format jsonl`; see [inventory diffs](https://huldoser.github.io/test-inventory/guide/diff). If a saved file disappears or becomes unreadable while opening it, the error names the supplied file and suggests checking its existence and readability, without exposing the resolved host path. Cancellation during these operations retains the request's cancellation reason.
|
|
147
150
|
|
|
@@ -175,7 +178,7 @@ local operation. To report a vulnerability, see [SECURITY.md](SECURITY.md).
|
|
|
175
178
|
## Versioning
|
|
176
179
|
|
|
177
180
|
Tool names, their arguments and their answers are the server's API. Before 1.0, a change that breaks them raises the
|
|
178
|
-
minor version, so `test-inventory-mcp@0.
|
|
181
|
+
minor version, so `test-inventory-mcp@0.11` in the setup above gets fixes only.
|
|
179
182
|
|
|
180
183
|
## License
|
|
181
184
|
|
package/dist/server.js
CHANGED
|
@@ -64,8 +64,8 @@ const testFilters = {
|
|
|
64
64
|
.array(z.string().min(1))
|
|
65
65
|
.optional()
|
|
66
66
|
.describe('Changed files, relative to the project root as `git diff --name-only` writes them, such as ' +
|
|
67
|
-
'["pages/order-ticket.ts"]. Keeps
|
|
68
|
-
|
|
67
|
+
'["pages/order-ticket.ts"]. Keeps tests that list a changed dependency, match a changed file through ' +
|
|
68
|
+
'dependencyGlobs (including new or deleted files), or have hasUnfollowedDependencies.'),
|
|
69
69
|
};
|
|
70
70
|
const pageArguments = {
|
|
71
71
|
limit: z.number().int().min(1).max(MAX_LIMIT).default(DEFAULT_LIMIT).describe('The most items to return.'),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "test-inventory-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "MCP server for test-inventory: AI agents ask which Playwright, Vitest, Jest, Mocha, Jasmine, Cypress, WebdriverIO, node:test and Bun tests a project has, which are skipped and why, and which a change can affect, without running them.",
|
|
5
5
|
"mcpName": "io.github.Huldoser/test-inventory",
|
|
6
6
|
"keywords": [
|
|
@@ -69,17 +69,17 @@
|
|
|
69
69
|
"@changesets/cli": "^3.0.3",
|
|
70
70
|
"@modelcontextprotocol/client": "^2.3.1",
|
|
71
71
|
"@types/node": "~22.12.0",
|
|
72
|
-
"@vitest/coverage-v8": "5.1.
|
|
73
|
-
"eslint": "~10.
|
|
74
|
-
"prettier": "3.
|
|
72
|
+
"@vitest/coverage-v8": "5.1.1",
|
|
73
|
+
"eslint": "~10.15.0",
|
|
74
|
+
"prettier": "3.10.1",
|
|
75
75
|
"publint": "^0.3.25",
|
|
76
76
|
"typescript": "~6.0.3",
|
|
77
|
-
"typescript-eslint": "~8.
|
|
78
|
-
"vitest": "5.1.
|
|
77
|
+
"typescript-eslint": "~8.73.0",
|
|
78
|
+
"vitest": "5.1.1"
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
81
|
"@modelcontextprotocol/server": "^2.3.1",
|
|
82
|
-
"test-inventory": "^0.
|
|
82
|
+
"test-inventory": "^0.12.0",
|
|
83
83
|
"zod": "^4.6.7"
|
|
84
84
|
}
|
|
85
85
|
}
|