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.
neartakes a relative tolerancetol(default 1e-6). - Frame
- One frame of the walkthrough, recorded BEFORE the step it is attached to runs.
- Motion
- Film the drag this frame is attached to, rather than holding one picture of the handle before it moves.
- PlmCall
- One call to the PLM’s API: a
setupentry, and the arguments of aplm_requeststep. Strings may use${plm:NAME}(seecrate::plm_fixture). - PlmSpec
- The PLM a script runs against. Every account gets a
fulltoken (or the scope named), minted through the administrator’s session the way a person would mint one on the web page. - PlmUser
- An account the fixture creates.
- Script
- Step
- Video
- The walkthrough GIF a script records: where it goes and how it is encoded.
Constants§
- DRAG_
TOOLS - The tools a
Motioncan film: the three drag compositions, which are the only steps that have a press, a travel and a release to film. - PLM_
REQUEST - The step the runner answers itself, from the script’s PLM fixture.
Here, not in
runner: the script format builds without the server. - PLM_
SERVER - The other step the runner answers itself:
{"action": "stop" | "start"}takes the script’s PLM server down and brings the same one back.
Functions§
- glob_
match matchesuses a small glob (*any run,?one char) rather than a regex crate: enough for ids likeE*and messages like*cannot determine*.