Commit b6318b5
authored
feat(mcp): full CLI parity — 18 tools, composite tests, validation, bug fixes (#99)
New tools:
- init_project: scaffold probe.yaml and tests/ directory
- generate_report: HTML report from JSON results file
- record: capture interactions → .probe file with configurable timeout
shutdown_device: now accepts serial (Android) in addition to udid (iOS)
run_tests: composite_devices parameter maps ALIAS=SPEC pairs to
--composite-device flags; description now enumerates all key flags
(--format, --parallel, --shard, --host/--token, --disable-animations,
--video, --stream)
write_test: validates ProbeScript via parser.ParseFile before writing;
syntax errors returned immediately without creating the file;
description documents composite test syntax
get_report / generate_report: fixed alphabetical-sort bug — now uses
os.Stat modification time to find the most recently written report
Docs: rewrote mcp.md with full 18-tool reference, composite test
examples, run_tests flags table, record/report workflows, and
troubleshooting for write_test validation errors
Tests: 5 new tests (tool count = 18, shutdown accepts udid or serial,
write_test rejects invalid syntax, run_tests exposes composite_devices,
init/generate_report/record present in tools/list)1 parent 9465643 commit b6318b5
9 files changed
Lines changed: 503 additions & 192 deletions
File tree
- docs/wiki
- internal/mcp
- probe_agent
- vscode
- website/src/content/docs/tools
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
9 | 21 | | |
10 | 22 | | |
11 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
415 | | - | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
416 | 434 | | |
417 | 435 | | |
418 | 436 | | |
| |||
426 | 444 | | |
427 | 445 | | |
428 | 446 | | |
429 | | - | |
| 447 | + | |
430 | 448 | | |
431 | 449 | | |
432 | 450 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
0 commit comments