test-inventory-mcp 0.10.1 → 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 +6 -0
- package/README.md +8 -7
- package/dist/server.js +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
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
|
+
|
|
3
9
|
## 0.10.1
|
|
4
10
|
|
|
5
11
|
### Patch 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
|
-
0.
|
|
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
|
|
@@ -177,7 +178,7 @@ local operation. To report a vulnerability, see [SECURITY.md](SECURITY.md).
|
|
|
177
178
|
## Versioning
|
|
178
179
|
|
|
179
180
|
Tool names, their arguments and their answers are the server's API. Before 1.0, a change that breaks them raises the
|
|
180
|
-
minor version, so `test-inventory-mcp@0.
|
|
181
|
+
minor version, so `test-inventory-mcp@0.11` in the setup above gets fixes only.
|
|
181
182
|
|
|
182
183
|
## License
|
|
183
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": [
|
|
@@ -79,7 +79,7 @@
|
|
|
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
|
}
|