Skip to content

Automation and agents

Labcoat treats automation as a public interface rather than a shell-screen scraping exercise.

Every command accepts --json and emits exactly one envelope on stdout. Logs and progress stay on stderr.

Terminal window
labcoat status --json
labcoat deploy build/MyToken.wasm --dry-run --json
{
"ok": false,
"command": "deploy",
"schema": "labcoat/v1/error",
"error": {
"code": "WALLET_MISSING",
"message": "project wallet does not exist",
"hint": "run `labcoat wallet init` first"
}
}

An envelope being printed produces exit code 0, even when ok is false. Read the envelope rather than inferring application success from the process code.

Terminal window
labcoat mcp serve

The stdio MCP server exposes devnet, wallet, compilation, deployment, call, simulation, and trace tools using the same typed operations as the CLI.