What Moira does
Moira coordinates multi-step work for AI agents through the Model Context Protocol. A workflow defines the sequence of work, while each step supplies an instruction and criteria for completion. The agent performs the step and submits a response that Moira checks against the step's schema.
Execution state is stored so a later agent session can resume the same run. The surrounding application also includes a web interface for editing workflows, inspecting executions, and administering accounts. Moira can be deployed on your own infrastructure or used through the hosted service at moira-mcp.com.
The system is suited to tasks where agents must follow an explicit sequence rather than handle an open-ended request in one turn. Workflow definitions can be created or edited through the workflow CLI and the documented authoring facilities.
How it works
An MCP client connects to the instance's /mcp endpoint and completes its authorization flow. After connecting, the agent discovers available workflows and selects the exact owner/slug needed for the task. Runtime help can expose documentation topics, including the current typed tool catalog.
A run proceeds through preparation, execution, and step attempts. The agent receives the current step's instructions and completion requirements, performs the work, and submits a structured response. Moira validates the response shape before recording the result. It then persists the run state, which supports continuation from another agent session. Guarded cancellation is available for runs that should be stopped deliberately.
The web UI provides a separate way to manage workflow definitions and inspect runs. Public HTML results can be published as artifacts, with ownership, quotas, expiration, and browser-isolation behavior governed by the artifact system.
Setup and configuration
Self-hosting requires Docker with the Compose plugin. Place docker-compose.yml, .env, and config/traefik-self-host.yml together, copy .env.example to .env, and start the services:
cp .env.example .env
docker compose up -d
The default local deployment exposes the web UI at http://localhost:8080, documentation under /docs/, and the MCP endpoint at http://localhost:8080/mcp. For another host, configure MOIRA_HOST, MOIRA_PORT, and STATIC_ARTIFACTS_DOMAIN together. Artifact subdomains require matching DNS and wildcard TLS in public deployments.
Self-host registration needs administrator approval. On first startup, generated secrets and the administrator password are printed once; preserve data/.secrets.env with the database. Application accounts, workflows, and executions are stored under ./data.
To update an installation, select the desired image in .env, then run docker compose pull followed by docker compose up -d. The deployment includes startup migration and recovery safeguards, but operators still need backups of the database, workspace stores, files, and encryption keys as applicable.
Tools and capabilities
- Discover workflows and select an exact owner/slug.
- Prepare and execute workflow runs.
- Receive per-step instructions and completion criteria.
- Submit responses checked against declared schemas.
- Continue executions across agent sessions.
- Request runtime help and the typed tool catalog.
- Attempt guarded cancellation of a run.
- Edit workflows and inspect executions through the web UI.
- Optionally publish HTML artifacts and use paired workspace services.
Limitations and notes
Schema validation checks whether a response has the expected structure; it does not establish that the underlying work was actually completed. Workspace files, command output, operation receipts, and immutable publications may be held by separate workspace services or paired controllers rather than in the application database.
The optional workspace and extension features have additional boundaries. Local VM execution requires the supported macOS Apple-silicon runtime and explicit owner grants. Extensions are disabled by default and run through a separate optional Compose profile. Self-hosted installations also require operators to manage ingress, proxy trust, account approval, backups, secrets, and recovery procedures.