MCP
takt mcp runs Takt’s MCP server on stdio. Add it to your agent:
claude mcp add takt -- ~/.local/bin/takt mcp
codex mcp add takt -- ~/.local/bin/takt mcp
Every tool that runs work says: Takt queues work across your machines; it never vetoes a task.
When the coordinator runs another version of Takt than the server (during a deploy), the next tool result says so once per connection, and again only when the version changes.
| Tool | What it does |
|---|---|
run |
Queue a job: command, or job (a job named in takt.yml), with the flags above as fields. Answers inline when the job ends within 10 seconds, else returns its job_id; nothing notifies the agent when it ends, so it calls wait. |
wait |
Wait for a job to end: its state, exit code, machine, what it used, hints, the last lines of its command’s own output (log_tail: from where the command starts, never the image build or VM boot before it; while an image still builds, the build is one line and its last few), and the artifacts written to its checkout. It waits up to timeout_seconds (default 540, at most 1500), sending progress notifications meanwhile, then answers that the job still runs, with where it is: call wait again. That keeps every call under the 1800 seconds Claude Code gives a tool call. Without job_id (a client that deferred the tool’s schema sends {}), it waits for this session’s newest job: the last one its run submitted, else its newest in status, and says which; with none, it answers an error that says to give job_id. |
status |
A short summary: your own jobs first (running, queued and the last five that ended, from the session’s checkout or its TAKT_SESSION) with why each waits, one line per machine (state, free cores and memory, running jobs), the running and queued counts, and the first other jobs (limit, default 10) by name and project, never their command lines. machine or job_id gives the full details of one; another’s job comes without its command and environment. |
logs |
The last lines of a job’s log (default 100). With until, a regular expression, it waits for a line of a running job’s log to match (a server’s ready line) and answers that line, or that the job ended first, with its state and the end of its log. Like wait, it waits up to timeout_seconds (default 540, at most 1500), then answers that no line matched yet: call it again. |
cancel |
Cancel a job or a whole group. |
capabilities |
What the fleet can run now, what a setting would allow, and what only a person can change. |
machine_setting |
Turn a machine’s Windows VMs, macOS VMs or Linux VM on or off. |
sleep, wake |
Sleep or wake a machine. |
protect |
Protect the calling session. |