Skip to Content
Alzo

AI agents

Alzo is built to be driven by coding agents as well as people. Every command works headlessly, with clean exit codes and one JSON record per line, and parallel worktrees give each agent its own isolated environment.

MCP server

alzo mcp exposes six tools over stdio, built on the same headless implementation as the CLI rather than a second one:

ToolDoes
alzo_statusGraph and node state.
alzo_explain_blockedWhy a node is blocked, as its dependency failure chain.
alzo_logsBounded retained logs.
alzo_tracesRecent traces.
alzo_restartRestart a node.
alzo_runRun a declared task or command once its dependencies are ready.

The server resolves the instance from its working directory; pass --profile, --instance or --config when registering it to pin a different scope. Each result carries Alzo's exit code, its parsed records and its error output, and a non-zero exit is reported as a tool error without discarding the diagnostic records.

Only the log tool is marked read-only. Status, explanation and traces evaluate your alzo.config.ts, which is executable code, so their annotations ask for the same approval as an action; restart and run are potentially destructive. Tool calls are serialised, bounded and cancellable, and each runs in an isolated child process.

alzo_status returns environment variable names without values by default. Its include-environment option returns resolved values, but only values passed through secret() are guaranteed to be redacted, so a configuration that reads credentials directly from process.env can expose them. Status lists declared command names, never the resolved command strings.

Cancelling a container command terminates its process tree without stopping the service container. Images used for container commands therefore need /bin/sh and setsid; without them the command exits with code 126 rather than silently running without that isolation.

Automation without MCP

Scripts and agents can call the CLI directly. alzo status --json, alzo traces --json and alzo logs <node> --json cover the same ground as the MCP tools, alzo up --wait --json returns once the graph has settled, and the exit codes separate a failed node from a configuration or environment problem. The CLI describes the record format.

On this page