Vernier automation
The command line program
The vernier program does the work of the Studio without a window. Use it in scripts and in continuous integration.
| Area | Commands |
|---|---|
| Project | new, inspect |
| Checks | erc, drc |
| Board changes | update-board, schematic-from-board, fill-zones, tune, stackup, impedance |
| Fabrication | fab, gerber, drill, ipc356, pnp, bom, netlist |
| 3D | step, simplified, gltf, 3mf |
| Simulation | sim |
| KiCad | kicad import, kicad export |
| Library | lib search, lib show, lib import, lib export, lib footprint, lib symbol |
| MCP | mcp serve, mcp install, mcp uninstall, mcp status |
| Other | update, account, version, help |
To see the options of a command, use vernier help <command> or vernier <command> --help.
Common options:
| Option | Use |
|---|---|
--json |
Prints the result as one JSON object. The JSON is the same as the result of the MCP tool. |
-o, --output |
The output file or folder. The command replaces an output file that exists. It makes the missing folders. |
--data <dir> |
The Vernier data folder (board house profiles, seed library, project templates). |
--library <dir> |
The folder of the user component database |
A project file (.vprj) can be the input of each board or schematic command. Vernier then uses the board or the schematic of the project.
All lengths in the output are in millimeters. Numbers always use a point as the decimal mark.
Exit codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | A check failed: ERC or DRC errors, a failed fab checklist, a failed simulation, or a length rule that tune did not reach |
| 2 | A usage or input error, for example an unknown option or a file that Vernier cannot read |
| 3 | Vernier cannot start (account) |
| 10 | An update is available (vernier update --check) |
Example: check a board in a script
vernier erc project.vsch
vernier drc board.vpcb --rules jlcpcb
vernier fab board.vpcb --profile jlcpcb -o out --zip
Example: make a schematic from a board
vernier schematic-from-board board.vpcb -o board.vsch
The command makes a symbol for each footprint and a global label with the net on each pin.
The MCP server
The vernier-mcp program is an MCP (Model Context Protocol) server. An AI agent starts it and talks to it on standard input and output. It has no network listener. vernier mcp serve runs the same server.
The server name is vernier. Vernier also has an agent skill with the name vernier. The skill tells the agent the workflow from a schematic to a fab order.
Add the server to an agent
| Command | Agent |
|---|---|
vernier mcp install --claude-code |
Claude Code, one project. Writes .mcp.json in the project folder (--project <dir>, else the current folder) and copies the skill. |
vernier mcp install --claude-code --scope user |
Claude Code, all projects. Use --name to select a different server name, or --force to replace an entry that Vernier did not add. |
vernier mcp install --claude-desktop |
Claude Desktop. Use --config <file> for a different configuration file. |
vernier mcp install --hermes |
Hermes Agent. Options: --hermes-home <dir>, --profile <name>, --no-skill. |
vernier mcp install --print |
Shows the configuration for each agent. Use it for a different agent. |
- Add
--root <dir>to set a workspace folder. You can add more than one. - Add
--dry-runto see the change. The command then writes nothing. - The install command makes a backup of a configuration file before it changes it.
To remove the server, use vernier mcp uninstall. To see the state, use vernier mcp status.
For a different MCP client, configure the client to start vernier-mcp --root <folder> with stdio.
Server options
| Option | Environment variable | Use |
|---|---|---|
--root <folder> |
VERNIER_MCP_ROOTS |
A workspace folder. The tools read and write only in the workspace folders. The default is <Documents>/Vernier/Projects. |
--no-roots |
VERNIER_MCP_NO_ROOTS=1 |
No workspace folder. The tools cannot read or write files. |
--read-only |
VERNIER_MCP_READONLY=1 |
Removes the tools that write files or change the Studio |
--no-studio |
Removes the tools that control the Studio | |
--timeout <seconds> |
The longest time of one tool call, 5 to 3600 seconds. The default is 120. | |
--data <dir> |
VERNIER_DATA |
The Vernier data folder |
--log-level <level> |
error, warn, info or debug. The default is warn. The log goes to standard error. |
An option has priority over the environment variable.
Tools
| Group | Tools |
|---|---|
| Files and documents | server_info, list_files, inspect_document, list_templates, new_project |
| Checks | run_erc, run_drc |
| Board changes | update_board_from_schematic, schematic_from_board, fill_zones, tune_length, add_via, edit_via |
| Stackup and impedance | get_stackup, set_stackup, calc_impedance, set_impedance_targets |
| Fabrication | list_fab_profiles, export_fab_order, export_gerbers, export_drill, export_bom, export_pnp, export_ipc356, export_netlist |
| Simulation | run_simulation |
| Library | library_search, library_get, list_packages, generate_footprint, generate_symbol |
| Other programs | kicad_import, kicad_export, export_step, export_simplified, export_gltf, export_3mf |
A tool does not replace a file that exists unless the call gives overwrite: true.
Let an agent control the Studio
The studio_* tools operate the open Studio:
| Tool | Use |
|---|---|
studio_status |
The Studio version, the active document and the selection count. Call it first. |
studio_list_documents, studio_open, studio_activate, studio_save |
Work with the documents |
studio_list_commands, studio_run_command, studio_undo, studio_redo |
Run Studio commands |
studio_get_selection, studio_set_selection |
Read or set the selection |
studio_get_properties, studio_set_property |
Read or change the properties of the selection |
studio_screenshot |
Get a PNG image of the active view |
Agent control is off by default. To turn it on:
- In the Studio, open Preferences.
- Go to the AI agents page. You can also click AI agents on the Home tab.
- Set the switch to On.
When agent control is on, the status bar shows an agent item. The AI agents page shows the last 50 agent actions.
Only one agent can control the Studio at a time. To stop the agent, click Disconnect the agent. To stop all agent access, set the switch to Off. When the Studio is locked by the account check, it refuses all agent requests.
Known limits
- The server does one tool call at a time.
- Commands that open a dialog box or use the mouse are not available to agents.
- The library tools only read the library. To add parts to the user database, use
vernier lib import. - Autorouting is not available as a tool.
run_simulationreturns at most 200 values for each vector. Useoutputto get all the points in a file.- The board house profiles have standard-service values. Confirm the limits on the website of the board house before an order.