@gleanwork/mcp-server-tester 1.1.0 → 2.0.0-beta.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/README.md +48 -0
- package/dist/cli/index.js +13766 -2790
- package/dist/fixtures/mcp.d.ts +74 -59
- package/dist/fixtures/mcp.js +161 -27
- package/dist/fixtures/mcp.js.map +1 -1
- package/dist/{index-BcUWzQCx.d.cts → index-aX_tCfTD.d.cts} +3504 -2413
- package/dist/{index-BcUWzQCx.d.ts → index-aX_tCfTD.d.ts} +3504 -2413
- package/dist/index.cjs +5890 -458
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +175 -5
- package/dist/index.d.ts +175 -5
- package/dist/index.js +5830 -442
- package/dist/index.js.map +1 -1
- package/dist/reporters/mcpReporter.cjs +20 -1
- package/dist/reporters/mcpReporter.cjs.map +1 -1
- package/dist/reporters/mcpReporter.d.cts +81 -65
- package/dist/reporters/mcpReporter.d.ts +81 -65
- package/dist/reporters/mcpReporter.js +20 -1
- package/dist/reporters/mcpReporter.js.map +1 -1
- package/dist/reporters/ui-dist/app.js +18 -17
- package/dist/reporters/ui-dist/styles.css +1 -1
- package/dist/types/index.d.cts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/package.json +8 -1
package/README.md
CHANGED
|
@@ -209,6 +209,54 @@ The `examples/` directory contains complete working examples:
|
|
|
209
209
|
- [sqlite-server/](./examples/sqlite-server) — Test suite for a SQLite MCP server: 11 Playwright tests, 14 eval dataset cases.
|
|
210
210
|
- [basic-playwright-usage/](./examples/basic-playwright-usage) — Minimal Playwright patterns.
|
|
211
211
|
|
|
212
|
+
## Evaluation manifests
|
|
213
|
+
|
|
214
|
+
For projects with multiple datasets, use an evaluation manifest. Dataset
|
|
215
|
+
paths are shorthand for tagged file sources, while hosts, metrics, judges,
|
|
216
|
+
result stores, and other extensions resolve through public registries:
|
|
217
|
+
|
|
218
|
+
```json
|
|
219
|
+
{
|
|
220
|
+
"name": "tool-selection-search",
|
|
221
|
+
"datasets": [{ "type": "file", "path": "evalsets/search.json" }],
|
|
222
|
+
"servers": [
|
|
223
|
+
{
|
|
224
|
+
"transport": "http",
|
|
225
|
+
"serverUrl": "https://example.com/mcp",
|
|
226
|
+
"label": "prod"
|
|
227
|
+
}
|
|
228
|
+
],
|
|
229
|
+
"host": { "type": "sdk" },
|
|
230
|
+
"metrics": ["passed"],
|
|
231
|
+
"results": { "store": { "type": "file", "directory": ".mcp-test-results" } }
|
|
232
|
+
}
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
Run one manifest or a bounded batch:
|
|
236
|
+
|
|
237
|
+
```bash
|
|
238
|
+
npx mcp-server-tester run \
|
|
239
|
+
--manifest eval-manifest.json \
|
|
240
|
+
--plugins ./plugins \
|
|
241
|
+
--dry-run
|
|
242
|
+
|
|
243
|
+
npx mcp-server-tester batch \
|
|
244
|
+
--manifest-dir manifests \
|
|
245
|
+
--workers 4 \
|
|
246
|
+
--skip-existing \
|
|
247
|
+
--dry-run
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
Use `arms` to compare server sets or host configurations. An arm can override
|
|
251
|
+
servers, host options, tool maps, scenario templates, metrics, and judges.
|
|
252
|
+
The canonical execution primitives remain `EvalDataset`, `EvalCase`,
|
|
253
|
+
`EvalMode`, `MCPConfig`, and `runEvalDataset`.
|
|
254
|
+
|
|
255
|
+
Applications can register extensions with `registerDatasetSource`,
|
|
256
|
+
`registerHost`, `registerJudge`, `registerMetric`, and `registerResultStore`.
|
|
257
|
+
Secrets remain environment-variable or plugin-owned runtime inputs and do not
|
|
258
|
+
belong in committed manifests.
|
|
259
|
+
|
|
212
260
|
## Known Limitations
|
|
213
261
|
|
|
214
262
|
These MCP protocol features are not currently supported. These are deliberate scope decisions, not bugs:
|