Skip to main content

Module script

Module script 

Source
Expand description

The test-mcp script format (spec Appendix E): a session description plus a list of tool calls, each with optional expectations on the tool’s JSON result and optional image capture / comparison.

The script vocabulary is the tool list itself — a step names a tool and passes its arguments verbatim — so the format never needs to know which tools exist. Only the expect mini-language is defined here.

Modules§

exit
Exit codes of brep-mcp test.

Structs§

Compare
Expect
One expectation: a JSON pointer into the tool result plus exactly one operator. near takes a relative tolerance tol (default 1e-6).
Script
Step

Functions§

glob_match
matches uses a small glob (* any run, ? one char) rather than a regex crate: enough for ids like E* and messages like *cannot determine*.