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).
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 setup entry, and the arguments of a plm_request step. Strings may use ${plm:NAME} (see crate::plm_fixture).
PlmSpec
The PLM a script runs against. Every account gets a full token (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 Motion can 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
matches uses a small glob (* any run, ? one char) rather than a regex crate: enough for ids like E* and messages like *cannot determine*.