Options
| Setting | Flag | Environment variable | Description |
|---|---|---|---|
| Momentic API key | --api-key <key> | MOMENTIC_API_KEY | Authenticates the MCP server with Momentic APIs. |
| Config file path | -c, --config <path> | — | Points to the momentic.config.yaml file used to load project tests, modules, and environments. |
| Headful browser (default: true) | --headful-browser [true or false] | MOMENTIC_HEADFUL_BROWSER | Sets whether browser sessions launch with a visible UI (true) or in headless mode (false). |
| Device pixel ratio | --pixel-ratio <n> | — | Overrides viewport DPR used for browser rendering. Defaults to 2 on macOS Retina and 1 on other setups. |
--api-key <key>
Momentic API key.
-c, --config <path>
Path to the momentic.config.yaml file. Required when run from an MCP client;
use an absolute path so the server can resolve it correctly.
--headful-browser [true|false]
Whether to launch MCP session browsers with a visible UI (true) or in headless
mode (false). Defaults to true.
--pixel-ratio <n>
Device pixel ratio for browser rendering. Defaults to 2 on macOS Retina and
1 elsewhere.