OpenFactory
tech.openfactory/openfactory
MCP server OK 192 tools
Build custom Linux OS images from recipes and test them in VMs with your OpenFactory account.
Technical sheet
- Author
- openfactory.tech (registry namespace)
- Repository
- github.com/openFactory-ai/openfactory-codex-plugin
- Site
- docs.openfactory.tech/en/reference/mcp
- Version
- 1.0.8
- Transport
- Streamable HTTP
- Authentication
- None (observed by our test)
- Server address
- https://console.openfactory.tech/api/mcp-stream/plugin/mcp Streamable HTTP
https://console.openfactory.tech/mcp-stream/mcp Streamable HTTP - Tools
- 192
- Categories
- Images, audio and video
- Last updated
- 24 Nov 2026
- Published
- 24 Nov 2026
Badge for your README
Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.
[](https://latlas.dev/en/mcp/tech.openfactory/openfactory)<a href="https://latlas.dev/en/mcp/tech.openfactory/openfactory"><img src="https://latlas.dev/badge/fiche/tech.openfactory/openfactory.svg?lang=en" alt="Listed on L’Atlas" height="20"></a>Our tests
Every week: initialize then tools/list, without credentials, never calling a tool. Method
- Address
- https://console.openfactory.tech/api/mcp-stream/plugin/mcp
- Last result
- OAuth required 28 Nov 2026, 10:59 OAuth annoncé (WWW-Authenticate resource_metadata)
- Address
- https://console.openfactory.tech/mcp-stream/mcp
- Last result
- OK 28 Nov 2026, 11:14
- Response time
- 2,131 ms (initialize + tools/list)
- Protocol version
- 2025-11-25
- Announced name
- OpenFactory 3.2.0
- Tools
- 192
History
| Date | Address | Result | Response | Tools |
|---|---|---|---|---|
| 28 Nov 2026, 11:14 | console.openfactory.tech/mcp-stream/mcp | OK | 2,131 ms | 192 |
| 28 Nov 2026, 10:59 | console.openfactory.tech/api/mcp-stream/plugin/mcp | OAuth required | 624 ms | — |
Exposed tools (192, from tools/list, 28 Nov 2026)
list_builds
List your OpenFactory builds. Returns a list of your builds with basic information like name, status, and features. Use get_build for full details including the recipe.
| Parameter | Type | Required | Description |
|---|---|---|---|
| status_filter | string | null | no | Filter by status: queued, ready_to_build, building, built, failed |
| limit | integer | no | Maximum number of builds to return |
| session_token | string | null | no | Session token from a previous tool response. IMPORTANT: Always pass the session_token from the most recent tool response to maintain session continuity. |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
get_build
Get full details of a specific build including its recipe. Use this to see the complete configuration of a build, including the recipe, packages, and all settings. Also returns the originating chat pointer (`conversation_id`, `conversation_title`) and the redacted user prompt (`originating_request`) when those were stored. `overall_status` is this build's own outcome and `build_goal_state` its goal's, as get_build_status describes.
| Parameter | Type | Required | Description |
|---|---|---|---|
| build_id | string | yes | The build ID to retrieve |
| session_token | string | null | no | Session token from a previous tool response. IMPORTANT: Always pass the session_token from the most recent tool response to maintain session continuity. |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
get_build_status
Read the current state of a build. `status` ready_to_build means the workspace is prepared and nothing has been compiled. `built` means the image exists; `test_status` says how its verification went, so a built image can have failed or errored there. `test_detail` and `error` carry the reason. `overall_status` is the build's own outcome: built_unverified means it is not certified. `decision_answers` holds answers to questions the build asked. After a failure, `failed_hook` names the hook that stopped the image and `failure_excerpt` shows its output. `diagnostic_next_tool` names the tool that explains the failure: get_test_results takes latest_test_run_id, and get_build_evidence takes the build_id.
| Parameter | Type | Required | Description |
|---|---|---|---|
| build_id | string | yes | The build ID to check |
| session_token | string | null | no | Session token from a previous tool response. IMPORTANT: Always pass the session_token from the most recent tool response to maintain session continuity. |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
get_build_evidence
Read what a build left behind: why it failed, and its diagnostic logs. `failed_hook` and `failure_excerpt` describe a failed image build. `evidence` holds the end of each log harvested from the build, such as of-firstrun-gui-session.log, of-firstrun-vm-phase.log, of-nspawn-boot.log and of-boot-session-results.txt; `file` selects one by name. These explain a build whose image was made but did not do something its recipe declared, which produces no test run. Empty evidence means nothing was harvested. `file` can instead name the build script this image uses, as source:fedora_build.sh, source:debian_build.sh, source:ubuntu_build.sh, source:opensuse_build.sh, source:arch_chroot.sh, source:elster_build.sh, source:proxmox_build.sh or source:build.sh, to see exactly which inputs it reads. The *_diagnostics fields summarize the platform's own side of the attempt in fixed categories. Reading changes nothing.
| Parameter | Type | Required | Description |
|---|---|---|---|
| build_id | string | yes | The build whose harvested build-script evidence to read. |
| file | string | null | no | One evidence file to return, by the exact name listed in `files` (e.g. of-firstrun-gui-session.log). Omit to get all of them. Explicit source: (e.g. source:fedora_build.sh) reads only a supported current build entrypoint, never arbitrary files. |
| session_token | string | null | no | Session token from a previous tool response. IMPORTANT: Always pass the session_token from the most recent tool response to maintain session continuity. |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
create_build
Create a new build from a recipe. The recipe defines the base OS, features, packages, and configuration for the Linux image. The build is queued and its worktree prepared; by default YOU drive it from there with your own model -- OpenFactory runs no LLM for it. Call build_image(build_id), then drive its verification session: get_verification_session(build_id=...) names the VM and the claims a platform judge grades. Pass platform_agent=True to hand the build to OpenFactory's goal agent instead (metered platform AI). By default the build also gets a chat, seeded with `prompt` (if given) and a recipe card, and linked so it shows up in the sidebar and opens the build panel. Pass create_chat=False to suppress that. Interactive build-terminal agents that need the worktree path use prepare_harness_build instead. The response includes a session_token — pass it to all subsequent tool calls (list_builds, get_build_status, etc.) to maintain session continuity. Example recipe: { "name": "My Custom Server", "base_image": "debian-bookworm", "description": "A minimal web server", "os": { "features": ["ssh", "nginx"], "packages": ["htop", "vim"], "services": [ {"name": "ssh", "config": {"port": 22}} ] } }
| Parameter | Type | Required | Description |
|---|---|---|---|
| recipe | string | object | yes | The build recipe as a JSON object (or a JSON string). Required fields: - name: Name for the build - base_image: Base OS (e.g., "ubuntu-26.04", "debian-trixie", "fedora-39" through "fedora-44", "elster-os") Optional fields: - use_case: Primary use case (e.g., "Development", "Research", "Production s… |
| prompt | string | null | no | The natural-language request this recipe came from, if there was one. Seeded as the opening user message of the build's chat, so the chat shows what was actually asked for rather than just the generated recipe. |
| create_chat | boolean | no | Create a chat for this build, seeded with the prompt and a recipe card, and link it so the build is reachable from the sidebar and opens the build panel. Leave on unless you're generating bulk/QA builds that would spam the chat list. |
| session_token | string | null | no | Session token from a previous tool response. IMPORTANT: Always pass the session_token from the most recent tool response to maintain session continuity. |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
| installer_choice | string | null | no | When the installer combo is not yet supported: native, openfactory-installer, calamares, or live_only. If omitted and the combo is uncovered, this tool returns needs_input with a question. |
| theme | string | null | no | An Omarchy theme id (GET /api/catalog/themes lists them, e.g. tokyo-night). It is recorded as the owner's choice and verified on the finished image; the recipe must apply it (GET /api/catalog/themes/{id} has its palette and bundle). Refused for firmware built by its own tooling (OpenWrt, Zephyr, Gr… |
| platform_agent | boolean | no | Have OpenFactory's own goal agent drive this build. It spends your plan's platform AI allowance and is metered against it. Omit it and YOU drive the build with your own model (build_image, then its verification session through get_verification_session). |
create_build_from_prompt
Start an OpenFactory build from a one-sentence description. The prompt is delivered to a new conversation's goal session -- the same agent that serves the Build UI. It reads the request, writes the recipe, builds the image, verifies it, and repairs failures on its own. Nothing is authored by the caller. This spends platform AI: the goal session runs on OpenFactory's model and is metered against your plan's AI allowance. Use ``create_build`` instead when you already hold a complete recipe and want to drive it with your own model. The goal owns the build, so there is no build id yet when this returns: poll ``list_builds`` for the returned ``conversation_id`` and follow the build with ``get_build_status(build_id)``. If the agent needs a decision from you, it asks in the conversation, which you can open in the Build UI.
| Parameter | Type | Required | Description |
|---|---|---|---|
| prompt | string | yes | One sentence describing the image you want, exactly as you would type it into the OpenFactory chat. Example: 'a Fedora 42 workstation ISO with an NVIDIA boot splash and docker preinstalled'. |
| installer_choice | string | null | no | How the image should install to disk when that matters: native, openfactory-installer, calamares, or live_only. |
| theme | string | null | no | An Omarchy theme id (GET /api/catalog/themes lists them, e.g. tokyo-night). The build agent applies it and the finished image is verified against it. Firmware built by its own tooling (OpenWrt, Zephyr, GrapheneOS) takes no theme. |
| session_token | string | null | no | Session token from a previous tool response. IMPORTANT: Always pass the session_token from the most recent tool response to maintain session continuity. |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
get_iso_download_url
Get artifact access details for a completed build. Returns a browser download URL when the caller has export access, or a structured account/Builder action when they do not. The build must be in a terminal 'built' or 'completed' status.
| Parameter | Type | Required | Description |
|---|---|---|---|
| build_id | string | yes | The build ID |
| session_token | string | null | no | Session token from a previous tool response. IMPORTANT: Always pass the session_token from the most recent tool response to maintain session continuity. |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
retry_build
Retry a failed build. Re-queues the build with the same recipe. Use this if a build failed due to a transient error.
| Parameter | Type | Required | Description |
|---|---|---|---|
| build_id | string | yes | The build ID to retry |
| session_token | string | null | no | Session token from a previous tool response. IMPORTANT: Always pass the session_token from the most recent tool response to maintain session continuity. |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
update_build_recipe
Replace a build's canonical recipe and graph. Validates and canonicalizes the complete recipe. The resulting immutable recipe revision is also the console graph's source, so graph changes are visible immediately without a second write. Topology and test edits do NOT rebuild the image; changes to os.features / packages / services take effect on the next ``build_image`` attempt. The response reports ``recipe_hash_before``/``recipe_hash_after`` and ``changed``. ``changed: false`` means this call stored the same document that was already there — it is not a repair, and rebuilding from it produces the same image.
| Parameter | Type | Required | Description |
|---|---|---|---|
| build_id | string | yes | The build/variant whose recipe to replace |
| recipe | string | object | yes | The COMPLETE updated recipe JSON (or a JSON string). Fetch the current recipe from describe_openfactory_workspace first, modify it, and pass the whole document back — partial recipes will drop the omitted sections. |
| version_note | string | null | no | Short note describing the change (shown in version history) |
| session_token | string | null | no | Session token from a previous tool response. IMPORTANT: Always pass the session_token from the most recent tool response to maintain session continuity. |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
list_recipes
List available pre-built recipes. OpenFactory provides ready-to-use recipes for common use cases like healthcare systems, industrial automation, AI development, and more. Use search/category to narrow the result, offset for the next page, and get_recipe to see full details of a specific recipe. This tool never emits the entire catalog in one response.
| Parameter | Type | Required | Description |
|---|---|---|---|
| category | string | null | no | Filter by category: healthcare, industrial, education, municipal, research, ai-development |
| search | string | null | no | Search term to filter recipes by name or description |
| limit | integer | no | Maximum summaries to return (default 20, maximum 50). |
| offset | integer | no | Zero-based catalog offset; add limit to request the next page. |
| session_token | string | null | no | Optional continuity token returned by other OpenFactory tools. |
list_recipe_categories
List all available recipe categories. Returns categories with labels and descriptions to help find the right type of recipe.
| Parameter | Type | Required | Description |
|---|---|---|---|
| session_token | string | null | no | Optional continuity token returned by other OpenFactory tools. |
get_recipe
Get full details of a specific recipe. Returns the complete recipe including all packages, services, and configuration. Use this to understand what a recipe contains before using it as a template for a build.
| Parameter | Type | Required | Description |
|---|---|---|---|
| recipe_id | string | yes | The recipe ID (name) to retrieve |
| session_token | string | null | no | Optional continuity token returned by other OpenFactory tools. |
validate_recipe
Validate a recipe without creating a build.
| Parameter | Type | Required | Description |
|---|---|---|---|
| recipe | string | object | yes | The recipe as a JSON object (or a JSON string) to validate |
| session_token | string | null | no | Optional continuity token returned by other OpenFactory tools. |
create_recipe_from_template
Create a new recipe based on an existing template. Start with a pre-built template and customize it for your needs. Returns the modified recipe ready to use with create_build.
| Parameter | Type | Required | Description |
|---|---|---|---|
| template_id | string | yes | The recipe template ID to use as base |
| name | string | yes | Name for the new recipe |
| modifications | string | object | null | no | Canonical recipe fields to merge into the template. Put OS settings such as features, packages, services, networking, and security under os. |
| session_token | string | null | no | Optional continuity token returned by other OpenFactory tools. |
get_test_results
Get the results of a test run. Returns bounded individual assertion evidence, a deterministic failure classification, VM/snapshot information, and the exact next diagnostic tools. A failed run with ``results`` populated has usable evidence even when the optional legacy ``logs`` string is absent. Pages with verbose checks can contain fewer than ``limit`` entries. Follow ``next_offset``.
| Parameter | Type | Required | Description |
|---|---|---|---|
| run_id | string | yes | The test run ID |
| offset | integer | no | Assertion offset in failure-first order |
| limit | integer | no | Maximum assertions per page; use next_offset for long pages and get_test_evidence for full output |
| session_token | string | null | no | Session token from a previous tool response (pass this to maintain session continuity) |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
get_test_evidence
Read complete retained test evidence in bounded pages, even after VM expiry.
| Parameter | Type | Required | Description |
|---|---|---|---|
| run_id | string | yes | Test run whose saved evidence should be read |
| evidence_id | string | no | Evidence ID from get_test_results; index lists all retained evidence |
| offset | integer | no | Character offset in redacted evidence |
| limit | integer | no | Maximum characters to return |
| session_token | string | null | no | |
| api_key | string | null | no |
get_test_run_screenshot
Return an assertion frame, recorded final display, or resumed live display. This does not require a reachable guest agent. Use it to inspect visual evidence before deciding whether a failed assertion belongs to the image or to the verifier/platform.
| Parameter | Type | Required | Description |
|---|---|---|---|
| run_id | string | yes | The test run ID whose final/live display to inspect |
| assertion_id | string | null | no | Optional results[].screenshot_id for the exact per-assertion frame; for v2, a listed v2-step-* or v2-final frame is also accepted; omit for the run's final/live display |
| session_token | string | null | no | Session token from a previous tool response |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
resume_test_environment
Bring back the test VM of a completed run. Returns the `vm_name` of the of-test-* VM that run used, for looking at and probing the same machine the evidence came from. Resuming does not extend `retained_until`; after it the VM is gone and only a new run brings the environment back. A judged VM can go sooner, a day after its verdict or last use.
| Parameter | Type | Required | Description |
|---|---|---|---|
| run_id | string | yes | The completed test run whose retained VM snapshot to resume |
| session_token | string | null | no | Session token from a previous tool response |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
inspect_boot_sequence
Return the saved boot contact sheet and selected GRUB/Plymouth frames. Assertion-time evidence is a 0.5-second contact sheet of the native boot recording so the visual judge can see GRUB and Plymouth even when a single selected cell is firmware or a login TTY. Cells are large enough to read a GRUB menu, and the recorder follows guest GOP resizes instead of cropping to the 640x480 handshake. A recapture is diagnostic only: it adds frames and never revises the original assertion verdict. If the VM expired or now boots a different medium, rerun the same verification contract rather than substituting an unrelated VM.
| Parameter | Type | Required | Description |
|---|---|---|---|
| run_id | string | yes | Test run whose early boot screens to inspect |
| surface | string | no | Boot medium: live or installed |
| recapture | boolean | no | Reboot the exact retained test VM and save fresh frames; false reads the assertion-time evidence without touching the VM |
| session_token | string | null | no | |
| api_key | string | null | no |
inspect_installed_disk
Read the disk a test run installed, while its VM is shut off. Use it when a run reports that the installed disk did not boot or that its guest agent never connected: the disk shows whether the installer wrote a bootable system (and whether that system then booted) or whether the fault is the platform's. It is read-only and never changes a verdict. Operations: ``summary`` (filesystems, what inspection mounted, /etc/os-release, /boot/efi/EFI, /boot/loader/entries); ``ls`` and ``cat`` of a path under /boot, /etc, /var/log, /usr/lib/systemd or /usr/lib/udev/rules.d (``cat`` returns at most the last 64 KiB); ``journal`` (the installed system's last 400 journal entries). A running VM, or one the run no longer retains, is answered with a sentence. If a finished failed run's VM is still running, set ``quiesce_failed=True`` to stop that disposable test VM before inspection. Active tests are refused.
| Parameter | Type | Required | Description |
|---|---|---|---|
| run_id | string | yes | Test run whose installed disk to read |
| operation | enum: "summary" | "ls" | "cat" | "journal" | no | summary, ls, cat or journal |
| path | string | null | no | For ls/cat: an absolute path under /boot, /etc, /var/log, /usr/lib/systemd or /usr/lib/udev/rules.d |
| vm_id | string | null | no | Logical VM of the run; defaults to primary |
| quiesce_failed | boolean | no | Stop a still-running VM only after its test finished failed/error, then inspect its disk read-only. Active tests and passing VMs are refused. |
| session_token | string | null | no | |
| api_key | string | null | no |
list_test_runs
List test runs for your builds. Returns test runs sorted by creation date (newest first).
| Parameter | Type | Required | Description |
|---|---|---|---|
| build_id | string | null | no | Filter by build ID |
| limit | integer | no | Maximum number of runs to return |
| offset | integer | no | Offset among authorized runs |
| session_token | string | null | no | Session token from a previous tool response (pass this to maintain session continuity) |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
list_vms
List your running VMs. Shows VMs created from your builds for testing. The response includes a session_token — pass it to subsequent tool calls.
| Parameter | Type | Required | Description |
|---|---|---|---|
| build_id | string | null | no | Filter by build ID |
| session_token | string | null | no | Session token from a previous tool response (pass this to maintain session continuity) |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
create_vm
Create a VM from a built image, using the ARM preview for a PinePhone build. Creates and starts a new VM running the built image.
| Parameter | Type | Required | Description |
|---|---|---|---|
| build_id | string | yes | The build ID to create a VM from |
| name | string | null | no | Optional name for the VM |
| lab_id | string | null | no | Owned private lab; never a host/network identifier |
| lab_node_id | string | null | no | Stable logical lab role name |
| networks | array<string> | null | no | Logical networks belonging to this lab |
| memory_mb | integer | no | VM memory in MB |
| vcpus | integer | no | Number of virtual CPUs |
| disk_size_gb | integer | no | Primary VM disk size in GB |
| storage_devices | array<object> | null | no | Optional extra VM disks/controllers, such as generated NVMe disks |
| auto_install | boolean | no | Install the built ISO to the primary disk and reboot into the installed system instead of leaving the VM on live media |
| installer_method | string | null | no | Optional registered install strategy override, such as guest_agent for the OpenFactory Installer compatibility route |
| installer_type | string | null | no | The recipe's declared installer ("calamares", "anaconda"). Required with auto_install for a general-purpose desktop image; without it only appliance ISOs resolve an installer |
| base_image | string | null | no | Base image slug such as fedora-43, so release-specific installer steps match the release actually being installed |
| session_token | string | null | no | Session token from a previous tool response (pass this to maintain session continuity) |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
get_vm_install_status
Read progress for an install-to-disk VM deployment.
| Parameter | Type | Required | Description |
|---|---|---|---|
| install_job_id | string | yes | Install job ID returned by create_vm |
| session_token | string | null | no | Session token from a previous tool response |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
start_vm
Start a stopped VM.
| Parameter | Type | Required | Description |
|---|---|---|---|
| vm_name | string | yes | The VM name to start |
| session_token | string | null | no | Session token from a previous tool response (pass this to maintain session continuity) |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
stop_vm
Stop a running VM. By default performs a graceful shutdown. Use force=True for immediate power off.
| Parameter | Type | Required | Description |
|---|---|---|---|
| vm_name | string | yes | The VM name to stop |
| force | boolean | no | Force stop (power off) instead of graceful shutdown |
| session_token | string | null | no | Session token from a previous tool response (pass this to maintain session continuity) |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
delete_vm
Delete a VM. Stops and removes the VM and its associated resources.
| Parameter | Type | Required | Description |
|---|---|---|---|
| vm_name | string | yes | The VM name to delete |
| session_token | string | null | no | Session token from a previous tool response (pass this to maintain session continuity) |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
get_vm_console_url
Get the VNC console URL for a VM. Returns a URL that can be used to connect to the VM's graphical console.
| Parameter | Type | Required | Description |
|---|---|---|---|
| vm_name | string | yes | The VM name |
| session_token | string | null | no | Session token from a previous tool response (pass this to maintain session continuity) |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
guest_command
Run commands and manage files on a VM via the QEMU guest agent. This tool provides direct access to VMs without SSH — it uses the QEMU guest agent to execute commands, read/write files, and manage systemd services. The VM must be running and have the guest agent installed. Use this for server administration, configuration, debugging, and automation tasks on VMs managed by OpenFactory.
| Parameter | Type | Required | Description |
|---|---|---|---|
| vm_name | string | yes | VM name or UUID to run the guest-agent command on. For a build goal this is the of-test-* VM that booted your image: use the vm_name returned by resume_test_environment, or vms[].vm_name / environment.snapshot.vm_name from get_test_results. |
| action | string | no | Legacy JSON action object. Preferred usage is the structured fields below (`type`, `command`, `script`, etc.). Supported types: {"type": "ping"} — Check if guest agent is available {"type": "exec", "command": "ls -la /tmp"} — Run a shell command (optional: "timeout": 60) {"type": "exec", "script":… |
| type | string | null | no | Preferred structured action type. Supported values: `ping`, `exec`, `file_read`, `file_write`, `systemd_status`, `systemd_action`. |
| command | string | null | no | Shell command for `type="exec"`. Use `script` instead for multiline or complex shell work. |
| script | string | null | no | Multiline bash script for `type="exec"`. The server stages it in the guest and runs it, which avoids nested JSON and shell escaping. |
| path | string | null | no | Path for `file_read` or `file_write`. |
| content | string | null | no | Text content for `type="file_write"`. |
| content_b64 | string | null | no | Base64-encoded file content for `type="file_write"`. Use this when you need exact bytes. |
| service | string | null | no | Systemd service name for `systemd_status` or `systemd_action`. |
| service_action | string | null | no | Service action for `type="systemd_action"`: `start`, `stop`, `restart`, `enable`, `disable`, or `reload`. |
| timeout | integer | no | Timeout in seconds for `type="exec"` or the legacy JSON action. |
| session_token | string | null | no | Session token from a previous tool response |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
ssh_test_identity
Prove key-only SSH login on a session VM with a session-scoped identity the platform provisions. The owner's requirement is sshd's policy -- public keys accepted, passwords and root refused -- not one particular key, and a verification cannot wait for the owner's own key: headless-pentest-debian (ae4fb901, 2026-10-20) parked for it with 41 of 45 checks passing. This is the one sanctioned change to a session VM: the platform generates an ed25519 key in the VM's tmpfs, authorizes it for `user`, and probes over loopback -- key login (a shell as the user), password login with keys disabled (refused), root login (refused) -- and reads sshd's effective settings. The key never enters the image; the disposable VM is the only place it exists. Record the returned facts in a verification step bound to the owner's SSH checks, with the same probes shown in a terminal frame when a claim's rule is `evidence`.
| Parameter | Type | Required | Description |
|---|---|---|---|
| vm_name | string | yes | The of-test-* session VM that booted your image: the vm_name returned by resume_test_environment, or vms[].vm_name / environment.snapshot.vm_name from get_test_results. |
| user | string | yes | The login user whose key-only SSH access the owner asked for. |
| session_token | string | null | no | Guest session token from a previous response (anonymous callers). |
| api_key | string | null | no | OpenFactory MCP API key (registered callers). |
get_vm_hardware
Read an owner VM's memory, CPUs, disk, display, guest-agent state and plan caps. Read-only. Use it before proposing a hardware change, and to explain to the owner what their VM has and what their plan allows.
| Parameter | Type | Required | Description |
|---|---|---|---|
| vm_name | string | yes | Name of the owner's VM, e.g. of-deploy-… |
| session_token | string | null | no | Session token from a previous tool response |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
propose_vm_hardware_change
Ask the owner to approve a hardware change to their VM; you never make it. The platform checks the change first (plan, trial and capacity), then puts an approval card in this chat that says exactly what would change. The owner's answer arrives as your next input. A refusal comes back instead of a card: tell the owner once, with its manage_url when it has one, and do not retry it. Growing the disk does not grow the guest's partition or filesystem; do that with guest_command after it is applied.
| Parameter | Type | Required | Description |
|---|---|---|---|
| vm_name | string | yes | Name of the owner's VM to change, e.g. of-deploy-… |
| reason | string | yes | One plain sentence on why the owner needs this; shown on the card as your reason. |
| memory_mb | integer | null | no | New memory in MB |
| vcpus | integer | null | no | New number of virtual CPUs |
| disk_gb | integer | null | no | New primary disk size in GB (grow only) |
| display | enum: "standard" | "accelerated" | null | no | standard, or accelerated (shared GPU) |
propose_vm_access_recovery
Ask the owner to set a new password for an account in their own VM. For an owner who has forgotten the password of the OS in their VM. The owner types the new password into the approval card, which sends it straight to the platform: it never reaches you, and you must never ask for it in the chat. Without a guest agent the VM restarts and the platform also installs the QEMU guest agent, so afterwards guest_command can run admin commands without the owner's password. The outcome arrives as your next input.
| Parameter | Type | Required | Description |
|---|---|---|---|
| vm_name | string | yes | Name of the owner's VM they are locked out of, e.g. of-deploy-… |
| reason | string | yes | One plain sentence on why; shown on the card as your reason. |
| username_hint | string | null | no | The login name you saw in the VM (prefilled on the card; the owner can change it) |
set_vm_keep_running
Keep the owner's Live VM running while no one uses it, or turn that off. Use it only when the owner asks for a VM to stay on unattended (a server, a long job), or asks to turn that off; never on your own initiative. It takes effect at once.
| Parameter | Type | Required | Description |
|---|---|---|---|
| vm_name | string | yes | Name of the owner's Live VM, e.g. of-deploy-… |
| keep_running | boolean | yes | true keeps the VM on while no one uses it; false lets it stop again when idle |
| reason | string | yes | One plain sentence on what the owner asked for; recorded with the change. |
| session_token | string | null | no | Session token from a previous tool response |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
send_sms
Send an SMS text message to a phone number. The platform automatically assigns a phone number from the shared pool. Use this for outreach, follow-ups, appointment reminders, or quick messages. The recipient will see the message from an OpenFactory-managed phone number and can reply — check replies with check_messages().
| Parameter | Type | Required | Description |
|---|---|---|---|
| to | string | yes | Recipient phone number in E.164 format (e.g., +15551234567) |
| message | string | yes | SMS message body. Keep under 1600 characters. |
| session_token | string | null | no | Session token from a previous tool response for session continuity. |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
call_phone
Place a real-time AI voice phone call. An AI voice agent conducts the conversation using the context and goal you provide. The agent speaks naturally, listens to the other person, and responds in real-time — like having an assistant make the call for you. This tool blocks until the call completes (typically 1-5 minutes). Returns a full transcript and outcome summary. The call uses speech-to-text for listening and text-to-speech for speaking, powered by Claude for natural conversation management.
| Parameter | Type | Required | Description |
|---|---|---|---|
| to | string | yes | Phone number to call in E.164 format (e.g., +15551234567) |
| context | string | yes | Background context for the call. Include: who you're calling, why, what you know about them, your name/role for the call. Example: 'Calling John at ABC Motors about a 2019 Honda Civic listed on Craigslist for $15,000. I'm interested in buying it.' |
| goal | string | yes | What you want to achieve on this call. Be specific. Example: 'Confirm the car is still available, ask about condition, negotiate price down to $12,000, schedule a test drive.' |
| session_token | string | null | no | Session token from a previous tool response for session continuity. |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
check_messages
Check incoming SMS messages and recent call logs for your workspace. Returns SMS messages received in the last 24 hours and recent call history. Use this to see replies to your SMS messages or missed calls.
| Parameter | Type | Required | Description |
|---|---|---|---|
| limit | integer | no | Maximum number of messages to return (default 20) |
| session_token | string | null | no | Session token from a previous tool response for session continuity. |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
desktop_screenshot
Take a screenshot of the VM's display and look at what is on screen. Returns three things: the frame itself as an inline image (downscaled only above 1280 px on the long edge — fleet VMs render 1280x800, so you normally see native pixels), the full-resolution URL, and OmniParser's list of detected UI elements with coordinates in the screenshot's NATIVE resolution. Feed an element's center straight into a ``desktop_interact`` click action. Works on the run's of-test-* VM and needs no guest agent: the frame is captured from the hypervisor's framebuffer, so it also works on a greeter, an installer, or a system whose session is broken. Look at the image before trusting the element list: OmniParser reports what it recognized, not what is on screen. Call this first to orient yourself.
| Parameter | Type | Required | Description |
|---|---|---|---|
| vm_name | string | yes | VM to drive. For a graph launch use its returned of-deploy-* vm_name. For image verification use the of-test-* vm_name returned by resume_test_environment or vms[].vm_name / environment.snapshot.vm_name from get_test_results. For app testing use your own of-desktop-* or of-tester-* VM. |
| response_mode | string | no | Response detail: full (inline frame + URL + UI elements), screenshot (inline frame + URL, skip OmniParser), preview (small inline JPEG + original screenshot URL, skip OmniParser), none (no capture; blind action only). |
| include_perf | boolean | no | Include per-stage timing metrics in the response. |
| session_token | string | null | no | Session token from a previous tool response |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
annotate_screenshot
Capture the desktop and draw labeled highlight boxes on it, then return the annotated screenshot URL. Use this right after writing UI code to visually highlight the element you just added: call desktop_screenshot to read the new element's bbox, then annotate_screenshot with that box (and a label like "new: Submit button"). Coordinates are pixel-space — pass an element's bbox [x1,y1,x2,y2] directly, so the box lands exactly on the element. The annotated image is saved as evidence and returned as a fetchable URL.
| Parameter | Type | Required | Description |
|---|---|---|---|
| vm_name | string | yes | VM to drive. For a graph launch use its returned of-deploy-* vm_name. For image verification use the of-test-* vm_name returned by resume_test_environment or vms[].vm_name / environment.snapshot.vm_name from get_test_results. For app testing use your own of-desktop-* or of-tester-* VM. |
| boxes | string | yes | JSON array of highlight boxes to draw, in PIXEL coordinates at the screenshot's native resolution. Each box: {"x1":int,"y1":int,"x2":int,"y2":int,"label"?:str,"color"?:"#rrggbb"}. To box a UI element, pass its bbox [x1,y1,x2,y2] straight from a prior desktop_screenshot element. Default color is gre… |
| include_perf | boolean | no | Include per-stage timing metrics in the response. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
desktop_click
Click at coordinates on your desktop, then return screenshot + elements. Use desktop_screenshot first to find element coordinates, then click using the center coordinates from the elements array.
| Parameter | Type | Required | Description |
|---|---|---|---|
| vm_name | string | yes | VM to drive. For a graph launch use its returned of-deploy-* vm_name. For image verification use the of-test-* vm_name returned by resume_test_environment or vms[].vm_name / environment.snapshot.vm_name from get_test_results. For app testing use your own of-desktop-* or of-tester-* VM. |
| x | integer | yes | X coordinate to click (from element's center[0]) |
| y | integer | yes | Y coordinate to click (from element's center[1]) |
| button | integer | no | Mouse button: 0=left (default), 2=right |
| double | boolean | no | Double-click instead of single click |
| screenshot_delay | number | no | Seconds to wait after clicking before taking screenshot (default: 0.15). Increase for actions that trigger animations or dropdowns. |
| response_mode | string | no | Response detail: full (inline frame + URL + UI elements), screenshot (inline frame + URL, skip OmniParser), preview (small inline JPEG + original screenshot URL, skip OmniParser), none (no capture; blind action only). |
| include_perf | boolean | no | Include per-stage timing metrics in the response. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
desktop_drag
Drag-and-drop on your desktop: press at (x, y), move to (end_x, end_y), release. Use desktop_screenshot first to get the source element's center, then pick a drop point. Good for moving a graph/canvas node, reordering a list, dragging a slider, or dropping one item onto another. PANNING: on an interactive canvas — a node graph (React Flow topology), a map (Google Maps), a diagram, an image viewer — drag across EMPTY canvas space (not on a node/marker) to PAN the view. If part of what you want is off-screen, pan toward it instead of assuming it isn't there. Pair with scroll-to-zoom (see desktop_interact's scroll action) to navigate large canvases: zoom out to get an overview, pan to the region of interest, zoom in to act.
| Parameter | Type | Required | Description |
|---|---|---|---|
| vm_name | string | yes | VM to drive. For a graph launch use its returned of-deploy-* vm_name. For image verification use the of-test-* vm_name returned by resume_test_environment or vms[].vm_name / environment.snapshot.vm_name from get_test_results. For app testing use your own of-desktop-* or of-tester-* VM. |
| x | integer | yes | Start X — where to grab (from the element's center[0]) |
| y | integer | yes | Start Y — where to grab (from the element's center[1]) |
| end_x | integer | yes | End X — where to drop |
| end_y | integer | yes | End Y — where to drop |
| screenshot_delay | number | no | Seconds to wait after the drop before screenshotting (default 0.3). Increase for drops that animate/relayout. |
| response_mode | string | no | Response detail: full (inline frame + URL + UI elements), screenshot (inline frame + URL, skip OmniParser), preview (small inline JPEG + original screenshot URL, skip OmniParser), none (no capture; blind action only). |
| include_perf | boolean | no | Include per-stage timing metrics. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
desktop_type
Type text on your desktop, then return screenshot + elements. The text is typed into whatever field currently has focus. Click on an input field first if needed.
| Parameter | Type | Required | Description |
|---|---|---|---|
| vm_name | string | yes | VM to drive. For a graph launch use its returned of-deploy-* vm_name. For image verification use the of-test-* vm_name returned by resume_test_environment or vms[].vm_name / environment.snapshot.vm_name from get_test_results. For app testing use your own of-desktop-* or of-tester-* VM. |
| text | string | yes | Text to type into the currently focused field |
| press_enter | boolean | no | Press Enter after typing (useful for search bars, URL bars) |
| screenshot_delay | number | no | Seconds to wait after typing before taking screenshot (default: 0.15). |
| response_mode | string | no | Response detail: full (inline frame + URL + UI elements), screenshot (inline frame + URL, skip OmniParser), preview (small inline JPEG + original screenshot URL, skip OmniParser), none (no capture; blind action only). |
| include_perf | boolean | no | Include per-stage timing metrics in the response. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
desktop_key
Press a key or key combination on your desktop, then return screenshot + elements. Common keys: Return, Tab, Escape, Backspace, Delete, Home, End, ctrl+l (focus URL bar), ctrl+w (close tab), ctrl+c (copy), ctrl+v (paste), alt+F4 (close window).
| Parameter | Type | Required | Description |
|---|---|---|---|
| vm_name | string | yes | VM to drive. For a graph launch use its returned of-deploy-* vm_name. For image verification use the of-test-* vm_name returned by resume_test_environment or vms[].vm_name / environment.snapshot.vm_name from get_test_results. For app testing use your own of-desktop-* or of-tester-* VM. |
| key | string | yes | Key or key combination to press. Examples: 'Return', 'Tab', 'Escape', 'ctrl+l', 'ctrl+c', 'alt+F4', 'ctrl+shift+t' |
| screenshot_delay | number | no | Seconds to wait after key press before taking screenshot (default: 0.15). |
| response_mode | string | no | Response detail: full (inline frame + URL + UI elements), screenshot (inline frame + URL, skip OmniParser), preview (small inline JPEG + original screenshot URL, skip OmniParser), none (no capture; blind action only). |
| include_perf | boolean | no | Include per-stage timing metrics in the response. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
desktop_close_tab
Close the currently active browser tab, then return screenshot + elements. This sends the normal human browser shortcut Ctrl+W to the desktop VM. Use it after extracting what you need from a page, unless that tab has an unsaved form, draft, active download, authentication flow, or pending user approval.
| Parameter | Type | Required | Description |
|---|---|---|---|
| vm_name | string | yes | VM to drive. For a graph launch use its returned of-deploy-* vm_name. For image verification use the of-test-* vm_name returned by resume_test_environment or vms[].vm_name / environment.snapshot.vm_name from get_test_results. For app testing use your own of-desktop-* or of-tester-* VM. |
| screenshot_delay | number | no | Seconds to wait after closing the active browser tab before taking a screenshot. |
| response_mode | string | no | Response detail: full (inline frame + URL + UI elements), screenshot (inline frame + URL, skip OmniParser), preview (small inline JPEG + original screenshot URL, skip OmniParser), none (no capture; blind action only). |
| include_perf | boolean | no | Include per-stage timing metrics in the response. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
desktop_open_url
Open a URL in Brave on the VM (falls back to Chromium or Firefox if Brave isn't installed on the VM). REQUIRES the QEMU guest agent: the browser is launched inside the guest. Without the agent, run the same steps as ``desktop_interact`` actions — key "ctrl+l", type the URL, key "Return". Do NOT use this to "prove" a kiosk, an autostarted browser, or a homepage: it opens a SECOND browser window, so what appears here says nothing about what the image starts on its own. Screenshot the untouched session instead. Sends Ctrl+L (focus address bar) → types URL → Enter → waits for page load → takes the screenshot and parses elements. This is a convenience tool; the same sequence can be expressed as key/type actions in ``desktop_interact``. To prevent runaway tab accumulation in long-running agent sessions, the tool keeps at most `max_tabs` browser tabs open and closes the oldest one (FIFO) when a new URL would push past the cap. The cap is enforced via Chromium DevTools on loopback inside the VM, so it applies to Brave / Chromium / Edge but not Firefox. Set max_tabs=0 to opt out for one-off sessions.
| Parameter | Type | Required | Description |
|---|---|---|---|
| vm_name | string | yes | VM to drive. For a graph launch use its returned of-deploy-* vm_name. For image verification use the of-test-* vm_name returned by resume_test_environment or vms[].vm_name / environment.snapshot.vm_name from get_test_results. For app testing use your own of-desktop-* or of-tester-* VM. |
| url | string | yes | URL to open in Brave (e.g., 'https://example.com') |
| wait_seconds | integer | no | Seconds to wait for page to load before taking screenshot (default: 5) |
| response_mode | string | no | Response detail: full (inline frame + URL + UI elements), screenshot (inline frame + URL, skip OmniParser), preview (small inline JPEG + original screenshot URL, skip OmniParser), none (no capture; blind action only). |
| max_tabs | integer | no | Cap on simultaneous browser tabs. When opening would exceed this, the oldest tab opened by us is closed first (FIFO). Set to 0 to disable. Default: 10. |
| zoom | number | null | no | Browser zoom (1.0 = 100%, 0.8 = 80%). Leave unset for smart per-app defaults — dense dashboards like the cto-gui topology graph open at 80% so more fits on screen. Pass an explicit value to override, e.g. 0.8 to zoom out or 1.0 to force 100%. |
| include_perf | boolean | no | Include per-stage timing metrics in the response. |
| mobile | null | no | Open in mobile view. true = iPhone (390x844@3 + mobile UA + touch); or a preset name: 'iphone', 'iphone-se', 'android', 'ipad'; or an object {preset?, width?, height?, device_scale_factor?, user_agent?}. The choice sticks to this VM, so later desktop_screenshot and desktop_interact calls stay in mo… |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
desktop_interact
Execute a sequence of actions on the VM's desktop, then return the screen. The post-action screenshot comes back as an inline image (plus its URL and OmniParser elements), so you can see what your actions actually did. On a build's of-test-* VM this is the ONLY way to click, type, press keys, scroll or drag — batch the steps of one interaction here (e.g. click a field, type text, press Enter). Keep batches short: the whole call shares a 25-second budget, which explicit wait actions extend. An optional verification_capture (or motion_capture) action runs the native recorder concurrently with this sequence (delay_seconds counts from dispatch, not its position in the array). It requires the ready session's build_id and app_run_id plus a stable operation_id; the native recorder still enforces all guards. The response includes verification_capture metadata alongside the action frame (with display_motion for a motion_capture). NAVIGATING CANVASES (node graphs, maps, diagrams, image viewers): you are not limited to what's currently on screen — you can zoom and pan. • scroll = ZOOM on a canvas. Scroll over EMPTY canvas space (not on a node or card, which may capture the wheel) with a meaningful amount (e.g. 6–10) — direction "up" zooms in, "down" zooms out. Small amounts may not move the view noticeably. • drag across EMPTY canvas space = PAN (use a drag action in this tool). Typical flow for a large graph/map: scroll down to zoom OUT for an overview → drag to pan to the area you wa…
| Parameter | Type | Required | Description |
|---|---|---|---|
| vm_name | string | yes | VM to drive. For a graph launch use its returned of-deploy-* vm_name. For image verification use the of-test-* vm_name returned by resume_test_environment or vms[].vm_name / environment.snapshot.vm_name from get_test_results. For app testing use your own of-desktop-* or of-tester-* VM. |
| actions | string | yes | JSON array of actions to execute sequentially. Each action is an object with a "type" field. Supported types: {"type": "click", "x": 500, "y": 300} — left click {"type": "double_click", "x": 500, "y": 300} — double click {"type": "right_click", "x": 500, "y": 300} — right click {"type": "move", "x"… |
| screenshot_delay | number | no | Seconds to wait after all actions before taking screenshot (default: 0.15). |
| response_mode | string | no | Response detail: full (inline frame + URL + UI elements), screenshot (inline frame + URL, skip OmniParser), preview (small inline JPEG + original screenshot URL, skip OmniParser), none (no capture; blind action only). |
| include_perf | boolean | no | Include per-stage timing metrics in the response. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
desktop_read_region
Run a real vision-language OCR model on a region of the VM's display and return all its text. Returns TEXT ONLY — there is no image in this response. Call ``desktop_screenshot`` when you need to see the pixels. UNLIKE desktop_screenshot (which returns OmniParser's filtered UI-element list — only button and icon labels), this runs a transformer-based OCR model on the raw pixels and returns ALL the text. Use this when you need to: • Read terminal output • Read browser page body content (articles, docs, error messages) • Read dialog body text • Verify exact text that OmniParser's UI filter drops TWO MODES: • Default (include_coordinates=False): Nanonets OCR 2 returns structured markdown with preserved tables, code blocks, headings, and lists. Optimized for READING. • Opt-in (include_coordinates=True): EasyOCR returns per-line text + pixel centers. Optimized for CLICKING on something you read. Region defaults to the full screen. Pass x/y/width/height to OCR a sub-region. Coordinates in `lines[]` responses are always in full-screen pixel space, so the center values can be fed directly to a ``desktop_interact`` click action.
| Parameter | Type | Required | Description |
|---|---|---|---|
| vm_name | string | yes | VM to drive. For a graph launch use its returned of-deploy-* vm_name. For image verification use the of-test-* vm_name returned by resume_test_environment or vms[].vm_name / environment.snapshot.vm_name from get_test_results. For app testing use your own of-desktop-* or of-tester-* VM. |
| x | integer | no | Top-left X of region in pixels (default: 0) |
| y | integer | no | Top-left Y of region in pixels (default: 0) |
| width | integer | no | Region width in pixels. -1 (default) means 'to the right edge'. |
| height | integer | no | Region height in pixels. -1 (default) means 'to the bottom edge'. |
| include_coordinates | boolean | no | If False (default): use Nanonets OCR 2 and return STRUCTURED MARKDOWN of everything on screen — best for reading terminal output, articles, logs, dialog body text. Markdown preserves tables, code blocks, headings. If True: use EasyOCR and return per-line {text, center, confidence} with screen-space… |
| include_perf | boolean | no | Include per-stage timing metrics in the response. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
desktop_listen
Listen to audio from a desktop VM and get transcriptions. Captures system audio (PulseAudio monitor) from the desktop VM, sends it through the Whisper STT service, and returns transcribed text. Use 'start' to begin continuous background listening, then 'transcript' to query what was said. Use 'snapshot' for a quick one-shot capture.
| Parameter | Type | Required | Description |
|---|---|---|---|
| vm_name | string | yes | Desktop VM name (of-desktop-*) |
| action | string | yes | JSON action. Types: {"type":"start"} — begin continuous listening, {"type":"stop"} — stop listening, {"type":"transcript","since_minutes":5} — get recent transcript, {"type":"snapshot","duration":10} — capture N seconds and transcribe now |
| session_token | string | null | no | Session token from a previous tool call |
| api_key | string | null | no | API key for authentication |
desktop_speak
Speak text aloud on a desktop VM using text-to-speech. Generates speech via the XTTS service and plays it through the VM's audio output. Supports 17 languages and voice cloning.
| Parameter | Type | Required | Description |
|---|---|---|---|
| vm_name | string | yes | Desktop VM name (of-desktop-*) |
| text | string | yes | Text to speak aloud on the VM |
| language | string | no | Language code: en, de, fr, es, it, pt, pl, tr, ru, nl, cs, ar, zh-cn, ja, hu, ko, hi |
| speaker | string | no | Speaker voice profile name |
| session_token | string | null | no | Session token from a previous tool call |
| api_key | string | null | no | API key for authentication |
authenticate_tester
Log your tester browser into a login-walled OpenFactory platform site so you can reproduce and VERIFY authenticated UI. Call this BEFORE open_url / test_workflow / walk_app on console/build/direktor.openfactory.tech. Injects a short-lived session for a scoped, NON-admin tester identity as the NextAuth session cookie (httpOnly — settable only via DevTools, not JS), so the next navigation to that site is already logged in. Only supports *.openfactory.tech platform sites; managed apps (*.apps.openfactory.tech) use their own app-auth secrets (enable_app_auth) instead.
| Parameter | Type | Required | Description |
|---|---|---|---|
| vm_name | string | yes | Your tester VM name (starts with 'of-tester-'). |
| target_url | string | yes | The login-walled OpenFactory platform URL you are about to reproduce on, e.g. https://console.openfactory.tech. Must be an *.openfactory.tech site. |
| include_perf | boolean | no | Include timing metrics. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
enumerate_dom_links
List every clickable / interactive element on the active page via DevTools. Uses Chromium DevTools Protocol — Brave/Chromium tester VMs only (Firefox does not expose CDP at :9222). Returns DOM-truth: every , , , , [role=button|link|tab|menuitem], [onclick], [data-testid] with css selector, accessible name, href, viewport flags, disabled flag, and bounding box in CSS pixels. Pair with desktop_screenshot (vision-based, returns what LOOKS clickable) for cross-check: enumerate_dom_links returns what IS clickable. The walker treats DOM enumeration as ground truth and OmniParser bboxes as pixel-coordinate hints.
| Parameter | Type | Required | Description |
|---|---|---|---|
| vm_name | string | yes | Your tester/desktop VM name (starts with 'of-tester-' or 'of-desktop-') |
| tab_filter | string | null | no | Optional URL prefix to pick which browser tab to query. Defaults to the most-recently-active page tab. |
| include_perf | boolean | no | Include per-stage timing metrics in the response. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
get_browser_diagnostics
Capture browser diagnostics — console errors, failed requests, page health. Uses Chromium DevTools Protocol — Brave/Chromium tester VMs only (Firefox does not expose CDP at :9222). Snapshot mode (collect_duration_ms=0) returns the current page's URL, title, viewport metrics, performance timing, document size, ready state, and the contents of window.__ofErrors if a page hook has populated it. Live-collect mode keeps the CDP session open and captures Log entries (>= warning), console.error/warn calls, uncaught exceptions, network loading failures, and 4xx/5xx responses that fire during the window. Typical use from a walker: call right after a state transition with collect_duration_ms=2000 to capture errors triggered by the page settling.
| Parameter | Type | Required | Description |
|---|---|---|---|
| vm_name | string | yes | Your tester/desktop VM name (starts with 'of-tester-' or 'of-desktop-') |
| collect_duration_ms | integer | no | If > 0, keep the DevTools session open for this many ms collecting console errors, exceptions, and failed network requests. 0 = snapshot only (no live collection). Clamped to [0, 10000]. |
| tab_filter | string | null | no | Optional URL prefix to pick which browser tab to query. |
| include_perf | boolean | no | Include per-stage timing metrics in the response. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
ensure_tester_vm
Get-or-create your desktop tester VM for an app (idempotent). ONE reused VM per app: call with app=' ' and you always get the same of-tester- - VM (the same one the app's test-run pool uses). Reuses it if running, restarts it if stopped, creates it from the pinned tester ISO (XFCE + Firefox) if missing. Ordinary testers do not autostart after host reboots and can be reclaimed by idle retention when unleased and unreferenced. Explicitly pinned warm-pool testers retain autostart and pool protection. Delete a tester explicitly with delete_vm when you no longer want it. Ephemeral by default (no persistence disk) so a fresh tester comes up fast and agent-ready within a typical tool-call timeout; pass persistence_gb>0 to add a Zone-2 disk whose contents survive reboots. Then drive it with desktop_open_url / desktop_screenshot / desktop_click etc., and record what you test with start_app_test.
| Parameter | Type | Required | Description |
|---|---|---|---|
| lab_id | string | null | no | Owned private lab; selects a fresh lab-scoped tester rather than an app pool |
| lab_network_id | string | null | no | Logical tester network belonging to that lab |
| app | string | null | no | App this tester is for, e.g. 'knostra'. Identity is tied to the app's URL host (see app_url): you get ONE reused VM per app/host, shared with that app's test-run pool — the same app always returns the same VM. To run more tests at once, scale the app's pool with scale_tester_pool instead of creatin… |
| app_url | string | null | no | The app's URL, e.g. 'https://staging.knostra.ai'. The tester VM is keyed by this URL's host so every run for the same app/env reuses ONE VM. Pass it whenever known; falls back to keying by `app` when omitted. |
| memory_mb | integer | no | VM memory in MB (create only) |
| vcpus | integer | no | Virtual CPUs (create only) |
| persistence_gb | integer | no | Zone-2 persistence disk size in GB (create only). Default 0 = no persistence disk: an ephemeral tester provisions fast and reliably. A persistence disk triggers a first-boot init+reboot that can push provisioning past a client's tool-call timeout (and can leave the guest agent down mid-reboot) — on… |
| wait_seconds | integer | no | How long to wait for the guest agent before returning (0-480). Keep this under your MCP client's per-call timeout (often ~120s): the call returns as soon as the agent is ready (~45-60s for a fresh ephemeral tester), so the default 90 leaves margin and won't hang the tool call to a client-side timeo… |
| session_token | string | null | no | Session token from a previous tool response (pass this to maintain session continuity) |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
scale_tester_pool
Set how many tester VMs an app keeps (explicit performance opt-in). The default is ONE VM per app. Raise `instances` to run more tests at the same time. Eagerly creates new instance VMs and deletes idle surplus ones to match; leased (in-use) instances are kept until they free up. Returns the resulting pool status.
| Parameter | Type | Required | Description |
|---|---|---|---|
| app | string | yes | App whose tester pool to scale, e.g. 'knostra'. |
| instances | integer | yes | Desired number of tester VMs for this app. 1 (default) = a single reused VM; >1 runs more tests concurrently (one shared pool). |
| app_url | string | null | no | The app's URL, e.g. 'https://staging.knostra.ai'. Pass the SAME url used for runs so scaling targets the same host-keyed pool the lease path uses. |
| session_token | string | null | no | Session token from a previous tool response (pass this to maintain session continuity) |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
start_app_test
Start recording an app test run (one scenario execution). Drive the app with desktop_* tools yourself; after each meaningful step call record_app_test_step — the server captures the VM screen at that moment as evidence. Close with finish_app_test.
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_name | string | yes | Stable app key, e.g. 'knostra' — history groups by this |
| scenario | string | yes | Stable scenario key, e.g. 'smoke-login' — the benchmark axis |
| vm_name | string | null | no | Tester/desktop VM the test runs in (of-tester-* or of-desktop-*). Omit to auto-lease one from the app's tester VM pool — the response returns the leased vm_name (drive it with desktop_* tools) and a lease_token to pass to finish_app_test so the VM is released back to the pool. |
| app_url | string | null | no | URL of the app under test as seen from the VM |
| idempotency_key | string | null | no | Choose a stable key before the first start, and reuse it with identical inputs after interruption to recover the same run. Requires an explicit vm_name; max 128 characters. |
| parent_test_run_id | string | null | no | Exact deployment test run to include this supporting app test in |
| target_node_id | string | null | no | Logical VM node in that deployment; required when it has multiple machines |
| git_repo | string | null | no | App repo name/URL |
| git_branch | string | null | no | App branch under test |
| git_commit | string | null | no | App commit SHA under test |
| record_video | boolean | no | Record a video of the whole run (also watchable live in the VNC console); per-step seek markers are added automatically. Fetch it via get_app_test_run(run_id).video_url after finish_app_test. |
| public_report | boolean | no | Whether the standalone HTML report URL should be public. Default false keeps report, screenshot, and video artifacts private. |
| session_token | string | null | no | Session token from a previous tool response (pass this to maintain session continuity) |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
record_app_test_step
Record one step of the running app test, with server-side screenshot. A failed capture never loses the step — it is persisted with screenshot_error instead.
| Parameter | Type | Required | Description |
|---|---|---|---|
| run_id | string | yes | The app test run ID from start_app_test |
| description | string | yes | What you just did + what you verified, e.g. 'Submitted login form; dashboard rendered with admin workspace' |
| status | string | no | passed | failed | error | skipped |
| notes | string | null | no | Optional detail (expected vs actual on failures) |
| capture_screenshot | boolean | no | Server captures the VM screen at this moment via libvirt (works even while a human has the noVNC console open) |
| session_token | string | null | no | Session token from a previous tool response (pass this to maintain session continuity) |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
finish_app_test
Finalize an app test run with its verdict.
| Parameter | Type | Required | Description |
|---|---|---|---|
| run_id | string | yes | The app test run ID from start_app_test |
| status | string | yes | Final verdict: passed | failed | error | skipped |
| notes | string | null | no | Verdict summary (what passed/failed and why) |
| lease_token | string | null | no | If start_app_test leased the VM from the pool, pass the lease_token it returned here to release the VM back to the pool. |
| session_token | string | null | no | Session token from a previous tool response (pass this to maintain session continuity) |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
list_app_test_runs
List app test runs (newest first), or the per-scenario verdict rollup. Use summary=True to compare results across runs/commits for each app_name + scenario pair.
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_name | string | null | no | Filter by app key |
| scenario | string | null | no | Filter by scenario key |
| status | string | null | no | Filter by status (running/passed/failed/error/skipped) |
| parent_test_run_id | string | null | no | Filter supporting tests by exact deployment test run ID |
| limit | integer | no | Max runs to return (1-200) |
| summary | boolean | no | True → grouped per app/scenario history (the benchmark view) |
| session_token | string | null | no | Session token from a previous tool response (pass this to maintain session continuity) |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
get_app_test_run
Get one app test run, including per-step verdicts and screenshot refs.
| Parameter | Type | Required | Description |
|---|---|---|---|
| run_id | string | yes | The app test run ID |
| include_steps | boolean | no | Include the full step list (False = header only) |
| session_token | string | null | no | Session token from a previous tool response (pass this to maintain session continuity) |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
set_app_test_report_visibility
Toggle whether a standalone app test report is publicly viewable.
| Parameter | Type | Required | Description |
|---|---|---|---|
| run_id | string | yes | The app test run ID |
| public_report | boolean | yes | True makes the standalone report/screenshot/video URLs public; False makes them owner-only/private again. |
| session_token | string | null | no | Session token from a previous tool response (pass this to maintain session continuity) |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
read_email_otp
Read a 2FA / one-time code from a Composio-connected Gmail. Call this mid-test when a sign-in prompts for an emailed code: it polls the target user's recent Gmail (via Composio) for a matching message and returns {code}. Then type it with desktop_type. Requires an ACTIVE Composio Gmail connection for the target user.
| Parameter | Type | Required | Description |
|---|---|---|---|
| connection_id | string | null | no | Optional local Composio Gmail connection_id to read from |
| sender | string | null | no | Optional sender filter, e.g. '[email protected]' or a domain |
| subject_contains | string | null | no | Optional substring expected in the subject, e.g. 'verification' |
| code_pattern | string | no | Regex for the code; the first capture group (or whole match) is returned |
| within_seconds | integer | no | Only consider emails newer than this many seconds |
| timeout_seconds | integer | no | How long to poll for the email before giving up |
| for_user | string | null | no | Read the OTP for THIS OpenFactory user (id or email) instead of the caller. Only honored for the system agent / super-admins — the Gmail connection may live under a different account than the calling identity. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
create_app_scenario
Create a reusable GUI test scenario stored on OpenFactory. Tests any URL the tester VM can reach — a local dev server, a deployed app, or a public site — on a vanilla Ubuntu+Firefox tester VM. No build and no image are required. Define the flow once in plain language; run it later (and repeatedly) with run_app_scenario. The first run hardens it (caches where each element is) so re-runs are fast and self-healing.
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_name | string | yes | Stable app key, e.g. 'knostra' — groups history |
| scenario | string | yes | Stable scenario name, e.g. 'smoke-login' |
| steps | string | yes | JSON array of semantic steps, run in order. Each step: {"action": "open_url"|"click"|"type"|"key"|"assert_text"|"assert_no_error"|"wait"|"email_otp"|"assert_visual"|"drag"|"assert_stable"|"assert_progress"|"network"|"login"|"goal", "target"?: str, "value"?: str, "expect"?: str, "visual_threshold"?:… |
| description | string | null | no | ALWAYS provide this: a concise, human 'what this test verifies' sentence describing the test's GOAL — not a list of steps. Shown at the top of the test panel when the test is opened. E.g. 'Signs in and verifies the Usherpa integration's tool catalog loads.' or 'Sends a long prompt and confirms the… |
| app_url | string | null | no | App base URL as the VM reaches it — a dev server, a deployed app, or any public URL. No build/deploy is required; the vanilla tester VM just opens this URL. |
| fail_on_error_toast | boolean | null | no | Default True: automatically FAIL the run if a known error bubble/toast appears on any step. Set False only for apps that legitimately render error-like copy. |
| variables | string | null | no | Optional JSON object of NON-SECRET default variables for ${VAR} substitution, e.g. {"APP_URL":"http://10.0.2.2:3000","EMAIL":"[email protected]"}. Put passwords / TOTP seeds in `secrets` (they're saved to your key store), not here. |
| browser_auth | object | null | no | Run this test SIGNED IN: restores the owner's prepared, encrypted browser profile (stored once per app origin + Composio account) before the first open_url — no login steps or password secrets needed. Shape: {provider:'composio', connection_id:str}. Requires app_url. Prepare the profile once in the… |
| secrets | string | null | no | JSON object of SECRET values the steps reference via ${VAR}/${totp:VAR} — password, base32 TOTP seed, etc., e.g. {"PASSWORD":"hunter2","OTP_SECRET":"JBSWY3DPEHPK3PXP"}. Saved (encrypted) in your key store, scoped per app, so the scenario can be re-run later — including bulk re-runs that can't promp… |
| project_id | string | null | no | Project to file this scenario under (proj-… id from your projects). Makes it show up under that project in the cto-gui graphs / right test panel. Must be a project you own. If omitted, the scenario is filed under your auto-created default 'App Tests' project (every test belongs to a project). |
| build_id | string | null | no | Optional EXISTING variant/build id to associate (metadata only — reuses a build already present, never triggers a new build). Requires project_id. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
list_app_scenarios
List your saved GUI test scenarios.
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_name | string | null | no | Filter by app key |
| project_id | string | null | no | Filter by project (proj-… id) |
| limit | integer | no | Max scenarios to return (1-200) |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
get_app_scenario
Get a scenario's full definition, hardened cache, and last run.
| Parameter | Type | Required | Description |
|---|---|---|---|
| scenario_id | string | yes | Scenario id from create_app_scenario/list_app_scenarios |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
delete_app_scenario
Delete a saved app test scenario (its definition + hardened element cache). Only deletes scenarios you own. Past run reports/videos are NOT removed — they live under their run ids. Idempotent: a missing scenario returns success.
| Parameter | Type | Required | Description |
|---|---|---|---|
| scenario_id | string | yes | Scenario id to delete (from list_app_scenarios) |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
assign_app_scenario
Assign a scenario to a project (and optionally an existing variant), or remove it. This only sets metadata — it never touches the scenario's steps or hardened element cache, and never triggers a build. Provide ``project_id`` (and an optional existing ``build_id``) to file the scenario under that project; omit ``project_id`` to remove it from its project. Only scenarios you own.
| Parameter | Type | Required | Description |
|---|---|---|---|
| scenario_id | string | yes | Scenario id to (re)file (from list_app_scenarios) |
| project_id | string | null | no | Project (proj-… id you own) to file the scenario under, so it shows up under that project in the cto-gui graphs / right test panel. Pass null/omit to REMOVE the scenario from its current project. |
| build_id | string | null | no | Optional EXISTING variant/build id to associate (metadata only — reuses a build already present, never triggers a new build). Cleared if omitted. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
run_app_scenario
Run a saved scenario in a VM and record the result as an app test run. First run = hardening (resolves each element via OmniParser, slow). Later runs replay from cache (fast) and only re-resolve steps whose UI changed. The response reports, per step, whether it was served from cache or parsed. Secrets (password, 2FA TOTP seed) are normally stored when the scenario is created and pulled from the key store automatically; pass `variables` only to override a value for this single run (substituted into ${VAR}/${totp:VAR}, never persisted).
| Parameter | Type | Required | Description |
|---|---|---|---|
| scenario_id | string | yes | Scenario id to run |
| vm_name | string | null | no | Tester/desktop VM to run in (of-tester-* or of-desktop-*). Omit to auto-lease one from the app's tester VM pool (queues if all the app's VMs are busy) and release it when the run finishes. |
| variables | string | null | no | Optional run-time overrides for ${VAR}/${totp:VAR} in the scenario's steps. Secrets are normally saved when the scenario is created (create_app_scenario.secrets) and pulled from your key store automatically; use this only to override a value for a single run. Merged over the stored values and NOT p… |
| record_video | boolean | no | Record a video of the run (per-step seek markers added; watchable live in the VNC console). |
| public_report | boolean | no | Whether the standalone HTML report URL for this scenario run should be public. Default false keeps report artifacts private. |
| on_behalf_of | string | null | no | Run as THIS OpenFactory user (id or email) instead of the caller, so the run uses their tester-VM pool and stored secrets (e.g. a staging protection-bypass token + app login). Only honored for the system agent or a super-admin. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
run_app_test_group
Re-run a whole group of saved app-test scenarios in the background. Returns immediately with a batch_id; the scenarios replay on the app's tester-VM pool (multiple in parallel, one per free pool VM), each isolated with a fresh browser tab. Poll get_app_test_group(batch_id) for live progress, or cancel_app_test_group(batch_id). One batch per user at a time. Pass delay_hours (0-72) to defer the re-run up to 3 days: the call returns a 'scheduled' batch right away and the run fires automatically when its time arrives (durable across restarts). A scheduled batch does not block running other tests now, and cancel_app_test_group cancels it before it fires. Starting a batch requires a registered OpenFactory user authenticated with an MCP API key. Anonymous guest sessions may not schedule batch work.
| Parameter | Type | Required | Description |
|---|---|---|---|
| scope | string | yes | What to re-run: 'all' (every saved scenario you own), 'project' (all scenarios in a project), or 'app' (all of one app's). |
| project_id | string | null | no | Required when scope='project' |
| app_name | string | null | no | Required when scope='app' |
| delay_hours | number | no | Defer the re-run by this many hours (0-72, up to 3 days). 0 = run now. The batch is scheduled durably and fires when its time arrives. |
| on_behalf_of | string | null | no | Run the batch as THIS OpenFactory user (id or email) instead of the caller, so the scenarios replay on their tester-VM pool with their stored secrets (e.g. a staging protection-bypass token + app login). Only honored for the system agent or a super-admin. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
get_app_test_group
Live status of a group re-run: per-scenario status, which VM each ran on, and pass/fail counts. Poll this until status is completed/cancelled/error.
| Parameter | Type | Required | Description |
|---|---|---|---|
| batch_id | string | yes | The batch id from run_app_test_group |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
cancel_app_test_group
Cancel a running group re-run. The in-flight scenario finishes; remaining ones are skipped.
| Parameter | Type | Required | Description |
|---|---|---|---|
| batch_id | string | yes | The batch id from run_app_test_group |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
walk_app
Autonomously walk a web dashboard and record what's there + what breaks. Opens ``app_url`` in the tester VM's browser, then BFS-walks every interactive control it finds (clicks each in turn), deduping UI states by fingerprint (route_template + dom_signature). For each visited state it captures a screenshot, the DOM-truth interactive-element list, and any console / network errors that fire during the post-action settle window. Findings are persisted with severity (blocker/major/minor/info) and deduped by message — repeat errors collapse to one record. Returns IMMEDIATELY with the walk_id; the actual walk runs in a background asyncio task. Poll ``get_app_walk(walk_id)`` to watch progress, or ``stop_app_walk(walk_id)`` to cancel. M2 scope: mechanical BFS only — no AI mode, no auth flow, no checkpoints, no scenario emission (those come in M3/M4/M4.5/M2.D). The tester VM browser MUST be Chromium-class (Brave/Chromium/Chrome/Edge) — Firefox does not expose CDP at :9222 and the walker hard-fails on snapshot.
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_name | string | yes | Stable app key, e.g. 'walker-canary' — groups history. |
| app_url | string | yes | Seed URL to crawl. The VM's browser opens this and the walker explores from there. |
| vm_name | string | yes | Tester or desktop VM (of-tester-* or of-desktop-*) with a Chromium-class browser (DevTools at :9222). |
| max_states | integer | no | Max distinct UI states to visit before stopping. Default 80. |
| max_depth | integer | no | Max BFS depth from the seed state. Default 6. |
| max_wall_seconds | integer | no | Hard wall-clock cap on the whole walk. Default 600. |
| max_actions_per_state | integer | no | Max interactive elements explored per state. Default 50. |
| destructive_allowed | boolean | no | When False (default) skips elements whose label/selector matches the destructive deny-list (delete/remove/sign out/etc.). When True, the walker clicks 'guarded' (regex-matched) elements AND runs a confirm-dialog probe — but high-stakes ALWAYS_GUARDED elements (delete account / revoke key / drop tab… |
| destructive_label_allowlist | array<string> | no | Per-walk allowlist of element labels to treat as 'safe' even when the destructive deny-list (or ALWAYS_GUARDED) regex matches. Entries are case-insensitive literal substrings by default; prefix 're:' for a regex. Examples: ['remove from cart', 're:^clear ', 're:^reset filter']. Useful when an app u… |
| mode | string | no | Exploration policy: 'mechanical' (default) = DOM-order BFS, 'ai' = LLM ranks unvisited candidates every state, 'hybrid' = AI for the first ai_seed_states state-seeds then mechanical, 'cot' = task-directed best-first search that stops at the first evidence-backed answer. AI modes require either an a… |
| task | string | null | no | Required when mode='cot'. The task the walker should answer, max 4000 characters. |
| task_output_schema | object | null | no | Optional Draft 2020-12 JSON Schema for CoT structured_output. Remote references and schemas over 32 KB are rejected. |
| allowed_origins | array<string> | no | CoT only: up to 10 HTTP(S) origins the task walk may navigate to. The starting origin is always included. |
| cot_branch_width | integer | no | CoT only: number of alternative branches to queue per model decision. Default/max 3. |
| cot_max_decisions | integer | no | CoT only: hard cap on model decisions. Default 20. |
| ai_goal | string | null | no | Goal sentence the LLM ranker sees when choosing what to click. Defaults to 'Find bugs and explore new flows in this app'. Examples: 'Test the new-project creation flow end-to-end', 'Audit the settings/billing path for permissions bugs'. |
| ai_seed_states | integer | no | Hybrid mode only: AI ranks the first N state-seeds, then mechanical BFS takes over. Default 3. |
| ai_max_decisions | integer | no | Hard cap on LLM calls per walk. Past this, walker falls back to mechanical for the rest of the walk. Default 12. |
| fuzz_profile | string | no | Safe form policy: 'canned' fills non-sensitive text/select fields, 'boundary' uses valid boundary values where available, and 'skip' does not prepare forms. Transactional submits remain blocked. |
| mining_verification | string | no | M4.5 harness-verification mode for emitted scenarios. 'off' (default) skips harness verification (M3 behavior — every blocker/major finding becomes a scenario with confidence='low'). 'polling' creates a mining checkpoint per proposed scenario and waits up to 60s for the harness to call submit_scena… |
| project_id | string | null | no | Optional project_id to file the walk under. |
| auth | object | null | no | When provided, walker signs in before BFS so it walks the AUTHED landing page instead of the sign-in form. Shape: {login_url:str, username_var:str, password_var:str, totp_var?:str, email_otp?:{target?:str, sender?:str, subject_contains?:str}, post_login_url?:str, assert_text?:str, on_behalf_of?:str… |
| browser_auth | object | null | no | Browser-session auth for an encrypted app/account scoped profile. Shape: {provider:'composio', connection_id:str}. Mutually exclusive with legacy auth. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
get_app_walk
Get the full walk record: status, totals, states, transitions, findings.
| Parameter | Type | Required | Description |
|---|---|---|---|
| walk_id | string | yes | Walk id returned by walk_app. |
| include_states | boolean | no | Include the list of ExplorationState records. |
| include_transitions | boolean | no | Include the list of ExplorationTransition records. |
| include_findings | boolean | no | Include the list of Finding records. |
| include_task_tree | boolean | no | Include CoT task nodes/tree for mode='cot' walks. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
list_app_walks
List walks visible to the caller (own walks; admins see all).
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_name | string | null | no | Filter by app key. |
| project_id | string | null | no | Filter by project id. |
| status | string | null | no | Filter by status: running | completed | stopped | error. |
| limit | integer | no | Max walks to return (1-200). |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
stop_app_walk
Request cooperative cancellation. The explorer polls between actions.
| Parameter | Type | Required | Description |
|---|---|---|---|
| walk_id | string | yes | Walk id to cancel. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
get_pending_checkpoint
Long-poll for the oldest pending harness checkpoint visible to the caller. Returns ``{checkpoint: {...} | null, pending_count: int}``. The checkpoint's ``prompt`` + ``context`` (which includes proposed scenario_steps + finding + screenshot_url for mining checkpoints, or step_index + step_description for replay checkpoints) is what the harness should evaluate. Then call ``submit_scenario_checkpoint(checkpoint_id, verdict, …)`` to resume the paused walker / runner. Common harness loop: while walking: r = get_pending_checkpoint(walk_id=walk_id, wait_seconds=25) cp = r.get("checkpoint") if not cp: continue # Read screenshot URL, inspect proposed scenario, etc. verdict = "pass" if scenario_looks_solid else "fail" submit_scenario_checkpoint(cp["checkpoint_id"], verdict=verdict, notes=…)
| Parameter | Type | Required | Description |
|---|---|---|---|
| walk_id | string | null | no | Filter pending checkpoints to this walk_id. Mutually exclusive with run_id; one of them should be set. |
| run_id | string | null | no | Filter pending checkpoints to this scenario run_id. |
| wait_seconds | integer | no | Long-poll budget (0-25 s). When 0, returns immediately with whatever's pending. Default 25. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
submit_scenario_checkpoint
Submit a verdict for a paused checkpoint. The waiting walker / runner's next poll picks it up and resumes. Returns the resolved checkpoint record.
| Parameter | Type | Required | Description |
|---|---|---|---|
| checkpoint_id | string | yes | Checkpoint id from get_pending_checkpoint. |
| verdict | string | yes | Verdict the harness has reached for this checkpoint: 'pass' (scenario is a valid repro / step succeeded), 'fail' (scenario doesn't repro the bug / step failed visually), 'investigate' (worth keeping for human review), 'skip' (drop this entirely). |
| notes | string | null | no | Free-form notes — surfaced on the run report next to the verdict. |
| replacement_action | object | null | no | Optional override: an action dict the harness wants the runner to execute instead of the planned next step. Example: {action_type: 'click', target_label: 'Cancel'} to redirect the runner away from a destructive button. Only honored on 'verify' checkpoints; ignored on 'mine' checkpoints. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
get_checkpoint
Fetch a single checkpoint (pending or resolved) by id. Used by the walker / runner to poll for the verdict on a checkpoint it created.
| Parameter | Type | Required | Description |
|---|---|---|---|
| checkpoint_id | string | yes | Checkpoint id. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
add_app_database
Provision a managed Postgres database for an app + publish ``DATABASE_URL`` into the app's env automatically. M1 behavior: 1. Verify caller owns the app 2. POST to libvirt :8001 /api/app-infra/databases to allocate the DB (stub mode by default — no real Postgres VM needed for M1) 3. PUT DATABASE_URL into the app's env via the producer API (the password never crosses MCP back to the caller) 4. Append db_id to App.db_refs 5. Return {db_id, status, env_keys, env_published} When ``OPENFACTORY_DB_PRODUCER_TOKEN`` is unset, step 3 is skipped and the connection URL is returned in the response — the caller must publish it manually via ``set_app_env(app_id, set={'DATABASE_URL': ...})``.
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_id | string | yes | App ID (UUID from create_app). |
| engine | string | no | DB engine. M1 supports 'postgres' only; MySQL+Redis are M3. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
list_app_databases
List databases provisioned for an app (metadata only — no passwords).
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_id | string | yes | App ID. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
add_app_bucket
Provision a managed MinIO bucket for an app + publish AWS_* credentials into the app's env automatically. M1 behavior: 1. Verify caller owns the app 2. POST to libvirt :8001 /api/app-infra/buckets (stub mode by default — no real MinIO VM needed for M1) 3. PUT 5 env keys (OF_S3_ENDPOINT, OF_S3_BUCKET, OF_S3_ACCESS_KEY, OF_S3_SECRET_KEY, OF_S3_REGION) into the app's env via the producer API 4. Append bucket_id to App.bucket_refs 5. Return {bucket_id, status, env_keys, env_published} When ``OPENFACTORY_STORAGE_PRODUCER_TOKEN`` is unset, step 3 is skipped and the connection dict (INCLUDING secret_key — shown exactly once) is returned in the response so the caller can manually publish via ``set_app_env(app_id, set={...})``. App code reads with explicit kwargs: ``boto3.client('s3', endpoint_url=os.environ['OF_S3_ENDPOINT'], aws_access_key_id=os.environ['OF_S3_ACCESS_KEY'], aws_secret_access_key=os.environ['OF_S3_SECRET_KEY'])``.
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_id | string | yes | App ID (UUID from create_app). |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
list_app_buckets
List buckets provisioned for an app (metadata only — no secret_keys).
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_id | string | yes | App ID. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
enable_app_auth
Provision per-app OIDC auth + auto-publish ``OF_AUTH_*`` into env. M1 flow: 1. Verify caller owns the app 2. Service.enable() creates realm + client (stub mode by default) 3. App.auth block persisted (NO client_secret — that's in env only) 4. Publish OF_AUTH_ISSUER + OF_AUTH_CLIENT_ID + OF_AUTH_CLIENT_SECRET + OF_AUTH_JWKS_URL via the producer API 5. Return {realm, client_id, issuer_url, jwks_url, env_published, env_keys}. When OPENFACTORY_AUTH_PRODUCER_TOKEN is unset, returns client_secret + env_payload inline (one-shot — discard after use).
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_id | string | yes | App ID (UUID from create_app). |
| providers | array<any> | null | no | OIDC sub-providers to enable. Default ['password']. Valid: password, google, github. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
get_app_auth_status
Return the current auth binding for the app. NEVER returns the client_secret — use reveal_app_env(name='OF_AUTH_CLIENT_SECRET') if you need it (audited).
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_id | string | yes | App ID. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
rotate_app_auth_secret
Generate a new client_secret + republish via producer API. M1 ships the rotation; old-secret grace window lands in M1.5 once the real provider adapter is wired.
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_id | string | yes | App ID. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
disable_app_auth
Disable per-app auth. Doesn't touch the OF_AUTH_* env vars automatically — the operator should call set_app_env(delete=[ 'OF_AUTH_ISSUER', ...]) separately to fully clean up.
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_id | string | yes | App ID. |
| purge | boolean | no | When true, also deletes the user pool. IRREVERSIBLE — all app end-users lost. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
create_checkpoint
Capture a manual checkpoint (code SHA + VM snapshot + DB snapshot) for the app. Use BEFORE a risky agent iteration; rollback_app restores the full tuple.
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_id | string | yes | App ID (UUID from create_app). |
| notes | string | null | no | Free-form note attached to the checkpoint. |
| pinned | boolean | no | Exempt from pruning when True. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
list_checkpoints
List checkpoints for an app (newest first) + per-app storage usage.
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_id | string | yes | App ID. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
rollback_app
Bi-directional rollback. The service captures a pre-rollback safety checkpoint FIRST, then applies the rollback (stop unit → revert VM disk → restore DB → start → health check). Returns the safety cp's id so you can roll forward again if the rollback was a mistake. M1 stub mode: no real disk reverts (M1.5 wires real libvirt snapshots). Schema + state transitions are real — App.deploy_history gets a synthetic 'rolled-back to ' entry.
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_id | string | yes | App ID. |
| checkpoint_id | string | yes | Checkpoint to roll back to (from list_checkpoints). |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
pin_checkpoint
Pin a checkpoint so the retention reconciler never deletes it.
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_id | string | yes | App ID. |
| checkpoint_id | string | yes | Checkpoint to pin (exempt from pruning). |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
delete_checkpoint
Remove a checkpoint. Errors with 'pinned' if the checkpoint is pinned (unpin first via pin_checkpoint with pinned=False).
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_id | string | yes | App ID. |
| checkpoint_id | string | yes | Checkpoint to delete. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
enable_app_ide
Enable code-server (Web IDE) for the app. Returns the IDE URL at ``https://ide- .apps.openfactory.tech``. Always private + owner-only by spec (gateway-side enforcement lands in M1.5). Idempotent — calling on an already-running IDE returns the existing binding without re-provisioning.
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_id | string | yes | App ID (UUID from create_app). |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
disable_app_ide
Stop code-server + remove the ide- gateway route. Idempotent — calling on an already-disabled IDE is a no-op.
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_id | string | yes | App ID. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
get_app_ide_status
Current IDE binding for the app: enabled flag, URL, status, timestamps. Returns a default off-binding when never enabled.
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_id | string | yes | App ID. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
list_app_templates
Browse the app-templates gallery. No auth required — templates are public read. Returns summaries (id, name, description, category, tags, declared_services). Fetch full manifests via get_app_template.
| Parameter | Type | Required | Description |
|---|---|---|---|
| category | string | null | no | Filter by category: web | api | fullstack | static | job | data |
| q | string | null | no | Free-text search across name + description + tags. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
get_app_template
Full manifest for one template: source git URL, runtime defaults, env-variable spec, declared services, rendered README.
| Parameter | Type | Required | Description |
|---|---|---|---|
| template_id | string | yes | Template ID from list_app_templates. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
instantiate_app_template
Create a new app from the template. Returns the new app_id + declared_services list. Caller chains add_app_database / add_app_bucket / enable_app_auth for any declared services, then deploy_app(app_id) to bake a fresh variant and bring the app live.
| Parameter | Type | Required | Description |
|---|---|---|---|
| template_id | string | yes | Template ID from list_app_templates. |
| name | string | null | no | Display name; derived from template if omitted. |
| env | object | null | no | Non-secret env values from the form (e.g. NEXT_PUBLIC_APP_NAME='My App'). Keys must be in the template's env spec. Secrets are NOT seeded here — use set_app_env(secret_key, value) after for those. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
remix_app
Fork a public+remixable app (or your own app regardless of flags). HARD security rule per spec: env values, secrets, DB contents, auth binding, checkpoints, and IDE state are NEVER copied — only the git_url + deployment_type + template lineage carry over. Set fresh secrets via set_app_env / provision fresh services via add_app_* after this returns.
| Parameter | Type | Required | Description |
|---|---|---|---|
| source_app_id | string | yes | App ID of the source app to fork. |
| name | string | null | no | Display name; ' (remix)' if omitted. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
set_app_remixable
Toggle the remixable flag on your own app. Combined with visibility='public' (set via create_app or deploy_app), this opens your app up to forks from other users.
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_id | string | yes | App ID (you must own it). |
| remixable | boolean | yes | True to allow non-owners to remix when visibility='public'; False to disable. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
set_walk_baseline
Pin a walk as the current baseline for an app. Subsequent walks can be diffed against this baseline. One baseline per (user, app_name).
| Parameter | Type | Required | Description |
|---|---|---|---|
| walk_id | string | yes | The walk_id to mark as your current baseline for this app. |
| app_name | string | null | no | App name to pin the baseline against. Defaults to the walk's own app_name. |
| notes | string | null | no | Free-text note about why this walk is the baseline (e.g., 'green after the analytics refactor'). |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
get_walk_baseline
Get the current baseline walk for an app (your own pin). Returns {baseline: null} if none set.
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_name | string | yes | App name to look up the baseline for. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
list_walk_baselines
List every baseline pin you have across all your apps.
| Parameter | Type | Required | Description |
|---|---|---|---|
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
clear_walk_baseline
Clear the baseline pin for an app. Idempotent (returns {cleared: false} if no baseline was set).
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_name | string | yes | App name to clear the baseline for. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
diff_walks
Compute a diff between two walks. Joins states by content-addressed state_id and findings by dedup_key. Returns added/removed/changed states plus new/resolved/persistent findings, sorted by severity. Cached on first call so subsequent reads are instant.
| Parameter | Type | Required | Description |
|---|---|---|---|
| base_walk_id | string | yes | The 'before' walk (usually your baseline). |
| new_walk_id | string | yes | The 'after' walk to compare against base. |
| use_cache | boolean | no | Reuse the cached diff on disk if it exists. Set False to force recompute. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
walk_recursive_report
Recursive BFS-tree view of a walk's UI state graph. Each node carries route_template, depth, finding counts, and (if a baseline is provided) its NEW/UNCHANGED/REMOVED/CHANGED status.
| Parameter | Type | Required | Description |
|---|---|---|---|
| walk_id | string | yes | Walk to render as a recursive tree. |
| baseline_walk_id | string | null | no | If supplied, each node is annotated with NEW|UNCHANGED|REMOVED|CHANGED status against this baseline. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
walk_findings_to_tickets
Serialize a walk's findings into ticket payloads ready to POST to Linear / Jira / GitHub. Returns the JSON body each system expects; the operator (or a follow-up MCP webhook in M2) handles the actual POST.
| Parameter | Type | Required | Description |
|---|---|---|---|
| walk_id | string | yes | Walk whose findings to convert. |
| format | enum: "linear" | "jira" | "github" | no | Target ticket format. 'linear' = GraphQL IssueCreateInput; 'jira' = REST v3 issue body; 'github' = REST v3 issue body. |
| severity_filter | enum: "all" | "blocker" | "major" | "minor" | no | Only convert findings at this severity. 'all' drops info-level by default. |
| baseline_walk_id | string | null | no | Baseline walk_id (required when only_new_since_baseline=true). |
| only_new_since_baseline | boolean | no | If true, only convert findings that are NEW relative to baseline_walk_id (skips persistent + resolved). |
| team_id | string | null | no | Linear team_id. Required when format='linear'. |
| project_key | string | null | no | Jira project_key. Required when format='jira'. |
| project_id | string | null | no | Linear project_id (optional). |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
run_all_app_scenarios
Kick off a batch run of every saved scenario for this app. Thin wrapper over the existing run_app_test_group(scope='app', app_name=...) primitive. Returns a batch_id pollable via get_app_test_group(batch_id).
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_name | string | yes | App name whose saved scenarios should all run. |
| vm_name | string | null | no | Tester VM to run on. Omit to auto-lease one from the app's pool. |
| project_id | string | null | no | Optional project_id filter. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
walk_site
Autonomously walk a website and bring back a structured map of it. BFS-walks every interactive control from ``url`` on a Chromium tester VM, deduping UI states by fingerprint, recording a content-addressed state tree plus per-state screenshots, DOM-truth elements, and any console / network errors. Runs in ``mechanical`` mode so the resulting tree is deterministic and comparable across runs (the basis of the regression gate). ``vm_name`` is optional — omit it and a Chromium tester is leased (and cold-booted if needed) automatically. With ``wait_seconds`` > 0 the tool blocks up to that long and returns the walk summary inline if it finishes; otherwise it returns the ``walk_id`` to poll with ``get_walk_summary``. Workflow: walk_site → get_walk_summary → seal_walk_baseline → (after code changes) walk_site again → check_walk_regression.
| Parameter | Type | Required | Description |
|---|---|---|---|
| url | string | yes | The website URL to walk (any reachable site — not just OpenFactory apps). |
| app_name | string | null | no | Grouping key for baselines/regression. Defaults to the URL host. |
| profile | string | no | Budget bundle: 'quick' (25 states/5min), 'standard' (80/15min), 'deep' (150/30min). |
| vm_name | string | null | no | Optional of-tester-*/of-desktop-* VM. Omit to auto-lease a Chromium tester (may cold-boot). |
| wait_seconds | integer | no | Block up to this many seconds (0-120) for the walk to finish, returning its summary inline. 0 = return the walk_id immediately. |
| max_states | integer | null | no | Override the profile's max states (1-200). |
| max_depth | integer | null | no | Override the profile's max depth (1-12). |
| max_wall_seconds | integer | null | no | Override the profile's wall-clock budget (30-1800). |
| auth | object | null | no | Login preamble — KMS var NAMES only (login_url, username_var, password_var, ...). No plaintext secrets. |
| browser_auth | object | null | no | {provider:'composio', connection_id:'...'} to restore an encrypted browser profile. |
| mobile | null | no | Walk the site in mobile view. true = iPhone (390x844@3 + mobile UA + touch); or a preset name: 'iphone', 'iphone-se', 'android', 'ipad'; or an object {preset?, width?, height?, device_scale_factor?, user_agent?}. Every state screenshot and DOM read in the walk is taken at that viewport, so mobile-o… |
| project_id | string | null | no | Optional project scope. |
| session_token | string | null | no | Session token echoed back by a prior tool. Replay it on every call. |
| api_key | string | null | no | OpenFactory MCP API key (alternative to session_token). |
get_walk_summary
Token-bounded digest of a walked website: status + coverage, the site state tree (routes, titles, inbound actions, per-node finding counts), a findings digest (top by severity), a capability inventory (forms, inputs, internal/external links), a console/HTTP error rollup, the structural ``tree_hash``, and active-baseline status. Safe to call on any walk without blowing context (unlike the raw get_app_walk dump).
| Parameter | Type | Required | Description |
|---|---|---|---|
| walk_id | string | yes | Walk id from walk_site / walk_app. |
| max_tree_nodes | integer | no | Cap on site-tree nodes returned (1-500). |
| max_findings | integer | no | Cap on findings returned (1-200). |
| session_token | string | null | no | Session token echoed by a prior tool. |
| api_key | string | null | no | OpenFactory MCP API key. |
seal_walk_baseline
Seal a completed walk into an IMMUTABLE golden state tree and pin it as the active baseline for (you, app_name). Computes a structural ``tree_hash`` (comparable across walks) and a tamper-evidence ``content_hash``, then freezes the walk: its states, transitions, findings, and screenshots can no longer be modified or deleted, and the baseline history is append-only. This is the anchor ``check_walk_regression`` compares future walks against so agentic code changes can't silently break UX.
| Parameter | Type | Required | Description |
|---|---|---|---|
| walk_id | string | yes | Completed walk to seal into an immutable golden state tree. |
| app_name | string | null | no | Baseline grouping key. Defaults to the walk's app_name. |
| notes | string | null | no | Freeform note stored with the sealed baseline version. |
| session_token | string | null | no | Session token echoed by a prior tool. |
| api_key | string | null | no | OpenFactory MCP API key. |
check_walk_regression
The agentic UX-regression gate. Diffs a candidate walk against the active SEALED baseline and returns a verdict FIRST: pass — no UX path removed, no new finding at/above the threshold fail — a state disappeared, a new blocker/major appeared, or the sealed baseline failed hash verification (tampered) no_baseline — nothing sealed yet (walk + seal_walk_baseline first) Call this after an agent changes the app's code to confirm the user experience still holds. ``comparability_warnings`` flag budget/mode mismatches that could cause false failures.
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_name | string | yes | The baseline grouping key (from seal_walk_baseline). |
| walk_id | string | null | no | Candidate walk to check. Omit to use the latest completed walk for this app. |
| severity_threshold | string | no | Minimum NEW-finding severity that fails the gate: 'blocker' | 'major' | 'minor'. |
| fail_on_removed | boolean | no | Fail when a baseline state (UX path) disappears in the candidate. |
| fail_on_changed | boolean | no | Fail on CHANGED states (title/element drift). Off by default — normal during development. |
| require_sealed | boolean | no | Require the baseline to be sealed (immutable). If false, an unsealed pin is allowed. |
| session_token | string | null | no | Session token echoed by a prior tool. |
| api_key | string | null | no | OpenFactory MCP API key. |
propose_fix
Create a FixIntent for a walker Finding. M1 does NOT auto-generate a patch; the returned intent carries the finding context and the caller supplies the actual patch via apply_fix(). M2 wires LLM patch generation via Context.sample().
| Parameter | Type | Required | Description |
|---|---|---|---|
| finding_id | string | yes | Walker finding_id to fix. |
| mode | enum: "local-vm" | "github-pr" | "provider-redeploy" | no | local-vm = edit file in tester VM + restart unit (M1). github-pr = open PR (M2.5). provider-redeploy = push to Vercel/Netlify branch (M3). |
| notes | string | null | no | Free-text note about the proposed fix. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
apply_fix
Apply a patch to a deployed app and restart its systemd unit. M1 is local-vm only: writes the file via the guest agent, then `systemctl restart of-app- `. github-pr / provider-redeploy modes return 501 until M2.5 / M3.
| Parameter | Type | Required | Description |
|---|---|---|---|
| intent_id | string | yes | FixIntent id from propose_fix. |
| patch | string | yes | The FULL new file content (NOT a unified diff in M1). |
| target_file | string | yes | Relative path under /opt/of-apps/ / (or absolute). |
| vm_name | string | yes | Tester VM name from the App entity. Required in M1. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
get_fix_intent
Read one FixIntent (status, target_file, suggested_patch, apply_result).
| Parameter | Type | Required | Description |
|---|---|---|---|
| intent_id | string | yes | FixIntent id. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
list_fix_intents
List your FixIntents, newest first. Optional walk_id filter.
| Parameter | Type | Required | Description |
|---|---|---|---|
| walk_id | string | null | no | Optional filter: only intents for this walk. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
close_finding
Mark a finding as resolved (fixed/wont_fix/duplicate/not_a_bug). Future run_fix_cycle calls skip already-resolved findings.
| Parameter | Type | Required | Description |
|---|---|---|---|
| finding_id | string | yes | Walker finding_id to mark as resolved. |
| resolution | enum: "fixed" | "wont_fix" | "duplicate" | "not_a_bug" | yes | How this finding was handled. |
| notes | string | null | no | Free-text resolution note. |
| fix_intent_id | string | null | no | Optional FixIntent id that resolved this finding. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
run_fix_cycle
Propose a fix cycle: create FixIntents for every blocker/major finding (or NEW since baseline if supplied), up to max_findings. M1 STUB — returns the plan without executing. Caller drives apply_fix() per intent. M2 auto-executes via LLM patch generation.
| Parameter | Type | Required | Description |
|---|---|---|---|
| walk_id | string | yes | Walk to fix-cycle against. |
| baseline_walk_id | string | null | no | When set, only fixes findings NEW since baseline. |
| max_findings | integer | no | Cap on FixIntents proposed in this cycle. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
build_image
Build the image of one of your builds and open its verification. The image is made from the saved recipe and the files you wrote. The recipe delivers packages and repositories; anything else reaches the image only as a file or hook written with write_build_config, so a recipe alone builds a stock image. For client-driven Fedora live remasters, the saved recipe's package list and selected supported signed repositories are prepared here. check_image_inputs previews what is missing. Confirm a requested build with the user before its first image; rebuilding to fix a defect is part of that build. A new dispatch can replace the prior image and its verification result. On a plan that caps image attempts it uses one; `allowance` here and in check_image_inputs says what is left, and a null limit means the plan does not cap them. The call returns after at most wait_seconds (0 to 300) and the work continues: poll get_build_status and get_verification_session. `dispatched` says whether this call started an image. When it is false the answer is about the image that already exists, and a change to the recipe or to your files since then starts a new one. image_built reports assembly and success reports the verified lifecycle.
| Parameter | Type | Required | Description |
|---|---|---|---|
| build_id | string | yes | The build to prepare, compile, verify, and publish. |
| session_token | string | null | no | Session token from a previous tool response. IMPORTANT: Always pass the session_token from the most recent tool response to maintain session continuity. |
| api_key | string | null | no | OpenFactory MCP API key (optional). |
| wait_seconds | integer | no |
query_build_knowledge
Search OpenFactory's record of what has worked in real builds. Ask one focused question per concept ("time zone fedora", "branding debian", "users autologin gdm", "installer anaconda") or per failure text, one call at a time. A concept card comes back whole: the files that concept needs, with their content and the checks that prove them. `learned_rules` are verified rules for the build's base image and come with the first call for a build unless include_learned_rules asks for them. Use k=2 and include_learned_rules=false for a focused lookup. The read-only response is capped at 24 KiB before MCP encoding.
| Parameter | Type | Required | Description |
|---|---|---|---|
| build_id | string | yes | The build whose knowledge scope to query. |
| query | string | yes | What you need to know — a failure summary, feature question, or capability you are about to implement. |
| k | integer | no | Maximum evidence hits to return (capped at 12). |
| include_learned_rules | boolean | null | no | Also include learned_rules (previously VERIFIED remediations for this build's base image) and config_baseline. Default: only on this session's first call for this build; true repeats them, false omits them. |
| session_token | string | null | no | Session token from a previous tool response. IMPORTANT: Always pass the session_token from the most recent tool response to maintain session continuity. |
| api_key | string | null | no | OpenFactory MCP API key (optional). |
check_image_inputs
Find what is missing from a build before building its image. Compares the saved recipe with the files you wrote and returns every gap at once in `problems`: packages, repositories and signing keys, accounts nothing creates, settings no file applies (time zone, kernel arguments, hooks, startup scripts), and hooks that download during the build. `notes` lists what could not be checked and `next_step` says what to do. For a client-driven Fedora live remaster it includes the packages and supported signed sources taken from the recipe. This check does not change the build or use the build allowance. `allowance` says how many image attempts the plan leaves; a null limit means the plan does not cap them. It checks configuration, not RPM availability or whether the image boots and works.
| Parameter | Type | Required | Description |
|---|---|---|---|
| build_id | string | yes | The build whose authored config/ to check. |
| session_token | string | null | no | Session token from a previous tool response. IMPORTANT: Always pass the session_token from the most recent tool response to maintain session continuity. |
| api_key | string | null | no | OpenFactory MCP API key (optional). |
request_user_decision
Ask the owner to choose, when only they can. `status` auto_defaulted means the question is already answered: build answer.option_id and go on. A minor question with a recommended option always comes back that way. `status` pending means a person has to answer: do the work that does not depend on it, then read get_build_status for decision_answers[ ]. scope="platform" reports a failure only OpenFactory can fix. It stops the build until an OpenFactory operator answers, so it is for when no other work is left. It is not needed for a failed verification run the platform caused: that costs nothing and the image can still be improved. Never ask the owner to waive a verification phase.
| Parameter | Type | Required | Description |
|---|---|---|---|
| build_id | string | yes | The build the decision belongs to. |
| question | string | yes | The fork or problem, phrased for the user. |
| options | array<object> | yes | 2-6 options: [{id, label, description, route?}]. |
| recommendation_option_id | string | null | no | Which option you would pick — required for a minor/major decision to auto-proceed. |
| severity | string | null | no | minor | major | destructive. The server coerces UP (unset, no recommendation, drop-scope options, unsolvable → destructive). |
| kind | string | no | architecture_fork | unsolvable | clarification. |
| scope | string | no | build | platform. "platform": the blocker is the platform (installer driver, verifier, judge budget, engine); the question goes to OpenFactory operators, the owner is not asked, and the goal waits for an operator. |
| context | string | no | Short markdown context shown on the card. |
| session_token | string | null | no | Session token from a previous tool response. IMPORTANT: Always pass the session_token from the most recent tool response to maintain session continuity. |
| api_key | string | null | no | OpenFactory MCP API key (optional). |
prepare_harness_build
Create a build + prepared worktree WITHOUT queueing the autonomous pipeline. Create-without-queue primitive for the interactive build terminal: the calling agent is the single driver and orchestrates the build itself, so this must be used instead of create_build (which would queue a second, autonomous pipeline over the same recipe). Pass ``platform_agent=True`` to buy out of that and have OpenFactory's own goal agent drive instead; it is the only way to get one here, and it needs a plan that includes it. When a conversation is bound, cancels that conversation's previous active interactive build first. It never cancels another unbound caller's build. It creates and persists the record, canonicalizes the recipe, prepares the primed worktree (deterministic distro and package inputs), and marks the build "building". No email notifications fire on this path — the user is present in the terminal. The returned ``agent_mode`` (author | report-only) governs authoring: report-only is the worker-owned pipelines only (pi-gen, pmbootstrap), whose ``configure()`` writes the config later, during ``build_image`` dispatch, so their agent authors nothing (``agent_mode_notice`` restates the rule). Every other worker returns author, because the preparation path is actuators only and the agent is the sole author of ``config/``. Returns: {build_id, worktree_path, branch_name, agent_mode, session_token}
| Parameter | Type | Required | Description |
|---|---|---|---|
| recipe | string | object | yes | The build recipe as a JSON object (or a JSON string). Required: name, base_image. Put OS features, packages, services, users, networking, and security under os. |
| prompt | string | null | no | The owner's original natural-language request, if there was one. Persisted privately as durable planning intent and seeded as the opening user message; provide the owner's words, not a narrowed recipe summary. |
| create_chat | boolean | no | Create a chat for this build, seeded with the prompt and a recipe card, and link it so the build is reachable from the sidebar and opens the build panel. Leave on unless you're generating bulk/QA builds. |
| owning_conversation_id | string | null | no | Existing owner-scoped conversation to bind before goal/worktree preparation. Used by the unified v3 harness. |
| build_context | object | null | no | Structured Chat/TTY build selections to apply to the recipe. |
| platform_agent | boolean | no | Hand this build to OpenFactory's own goal agent instead of driving it yourself. A paid add-on: included with the Builder, Team, Compliance and BYOC Fleet plans, and refused with error_code=upgrade_required on a plan without it. Omit it and YOU drive -- you get the worktree and no platform agent is… |
| session_token | string | null | no | Session token from a previous tool response. IMPORTANT: Always pass the session_token from the most recent tool response to maintain session continuity. |
| api_key | string | null | no | OpenFactory MCP API key (optional). |
platform_fix_start
Start a host-side platform-website fix: an ad-hoc git branch/worktree plus a host coding session that implements + commits the change (never pushes). Returns immediately — poll get_platform_fix(fix_id) until status is 'implemented' (then stage_platform_fix) or 'failed'.
| Parameter | Type | Required | Description |
|---|---|---|---|
| site | string | yes | Target platform site: openfactory.tech | console.openfactory.tech | direktor.tech | build.openfactory.tech |
| instruction | string | yes | Precise change description: what is broken/missing, where (page/element), expected behavior, and your repro evidence (run ids, screenshots) from the visual tests. |
| thread_id | string | null | no | Originating voice thread id (correlation). |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
get_platform_fix
Read a platform fix record: status (running | implemented | staging | staged | landing | landed | failed | stage_failed | land_failed), commit, changed files, staging/prod URLs, error details.
| Parameter | Type | Required | Description |
|---|---|---|---|
| fix_id | string | yes | Platform fix id from platform_fix_start. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
stage_platform_fix
Stage an implemented fix onto the local dev servers (the tester VM can reach the returned staging_url). Returns immediately — poll get_platform_fix until 'staged', then verify the repro + run the regression scenario against the staging URL.
| Parameter | Type | Required | Description |
|---|---|---|---|
| fix_id | string | yes | Platform fix id (status must be 'implemented'). |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
land_platform_fix
Land a staged fix to production: verifies the green-scenario gate and that every commit names the fix that produced it (Openfactory-Goal), then pushes via the blessed pipeline (monorepo: ai-deploy; openfactory.tech: fast-forward main + push). Returns immediately — poll get_platform_fix until 'landed', wait out the deploy, then re-run the scenario against the production URL.
| Parameter | Type | Required | Description |
|---|---|---|---|
| fix_id | string | yes | Platform fix id (status must be 'staged'). |
| scenario_id | string | yes | Regression scenario id covering this fix. |
| scenario_run_id | string | yes | A PASSED run id of that scenario (against the staging URL), <24h old. Landing is refused without a green run. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
connect_cloud_provider
Connect a cloud account. Credentials are encrypted at rest, validated live against the provider, and (for the default connection per provider) projected into your account env so deployed apps can use the cloud directly. Returns the masked connection plus the validation result.
| Parameter | Type | Required | Description |
|---|---|---|---|
| provider | string | yes | Cloud provider: 'aws', 'gcp', or 'azure'. |
| name | string | yes | Display name, e.g. 'Production AWS'. |
| credentials | object | yes | Provider credentials. aws: {access_key_id, secret_access_key, session_token?}. gcp: {service_account_json} (the key-file JSON, as object or string). azure: {tenant_id, client_id, client_secret, subscription_id}. |
| region | string | null | no | Default region, e.g. 'us-east-1', 'europe-west1', 'eastus'. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
list_cloud_providers
List your connected cloud providers (credentials always redacted).
| Parameter | Type | Required | Description |
|---|---|---|---|
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
test_cloud_provider
Re-validate a cloud connection against the live provider API and refresh its status.
| Parameter | Type | Required | Description |
|---|---|---|---|
| connection_id | string | yes | Connection ID from list_cloud_providers. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
disconnect_cloud_provider
Remove a cloud connection and every account env var it projected. Cloud resources themselves are never touched.
| Parameter | Type | Required | Description |
|---|---|---|---|
| connection_id | string | yes | Connection ID from list_cloud_providers. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
list_cloud_instances
List cloud instances (EC2 / Compute Engine / Azure VMs) for your connected providers, normalized to one schema.
| Parameter | Type | Required | Description |
|---|---|---|---|
| connection_id | string | null | no | Limit to one connection; omit for instances across ALL connected providers. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
start_cloud_instance
Start a stopped cloud instance. Starting an instance incurs cloud charges on the connected account.
| Parameter | Type | Required | Description |
|---|---|---|---|
| connection_id | string | yes | Connection ID that owns the instance. |
| instance_id | string | yes | Provider instance ID (e.g. i-0abc…). |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
stop_cloud_instance
Stop a running cloud instance.
| Parameter | Type | Required | Description |
|---|---|---|---|
| connection_id | string | yes | Connection ID that owns the instance. |
| instance_id | string | yes | Provider instance ID. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
terminate_cloud_instance
PERMANENTLY terminate a cloud instance. Irreversible; requires confirm=true.
| Parameter | Type | Required | Description |
|---|---|---|---|
| connection_id | string | yes | Connection ID that owns the instance. |
| instance_id | string | yes | Provider instance ID. |
| confirm | boolean | no | Must be true — termination permanently deletes the instance. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
get_verification_session
Read your goal's verification session: its state, its VM, and what it is graded on. Your build is verified by ONE recorded session that you drive yourself, on the of-test-* VM named here. That `vm_name` is the `vm_name` argument of every desktop_screenshot, desktop_read_region, desktop_interact, desktop_open_url and guest_command call you make for this build — there is no other machine, and you do not create one. The one exception: a session started with browser_client=true names the platform's browser VM in `browser_client.vm_name` (with the image's `server_address`), for a web UI the image serves; drive it with the desktop tools and record its frames with record_verification_step(capture_vm='browser_client'). Driving your own build from an outside MCP client, pass its `build_id` to all four session tools; the platform judge grades your recording just the same. `status` is provisioning (the platform is booting the image), ready (drive it), installing (the platform is installing to disk; hands off), judging (handed in), or the terminal verdict passed/failed/error. `admission_pending` means the saved launch has no run record yet; retry the `diagnostic_next_tool` on the same image. Failed artifact finalization requires build_image before a verification launch can be admitted. In ready, `intent_items` lists the claims to show. Read additional pages by passing `next_intent_offset` as `intent_offset`. Record a step for each, passing its `id` in `intent_item_ids`. Each item's `rul…
| Parameter | Type | Required | Description |
|---|---|---|---|
| build_id | string | null | no | The build you are verifying. Required when you drive your own build over the public surface; a platform goal session may omit it. |
| api_key | string | null | no | Your OpenFactory MCP API key, unless it is already the Authorization header |
| session_token | string | null | no | Session token from a previous tool response (a guest cannot verify) |
| intent_offset | integer | no | Read the next page of ready claims using next_intent_offset. |
revise_verification_checklist
Change which claims a build's verification is graded on, with a reason the owner sees. The claims get_verification_session lists were fixed when the build was admitted. You may add read-only checks for what you built, record what a vague preference means as concrete checks, tag checks for one firmware, and remove the checks of an application or game the owner never asked for, once it is out of the recipe and the package lists. When the owner asked against a feature, pass their exact words as owner_quote. owner_message_id cites the owner's latest chat message for this build when an inherited or superseded claim has to change; each corrected check is judged against everything the owner asked. For a whole new recipe, pass only owner_message_id and the reason after the new recipe is saved. Refused, with the reason per item: the owner's own request, platform, hygiene, installer, base image, security, compliance and reference-image claims, a feature still installed or that the owner named, an account the recipe creates, and a check a revision added. Nothing changes unless every requested change is allowed. Changes apply from the next session. At most three revisions that remove or replace checks; additions and firmware tags are free.
| Parameter | Type | Required | Description |
|---|---|---|---|
| reason | string | yes | Why, in a sentence or two the owner reads in the chat, e.g. 'Steam, Lutris and GameMode were not requested; the recipe no longer installs them.' |
| installation_case_scopes | object | null | no | Owner-bound relocation of existing checks: {item_id: {installation_case_ids: [...], phases: [live|installed], replacement_package?: native_name}}. Cases come from accepted os.installer.verification_cases. Explicitly owner-named packages cannot be substituted. |
| interpretations | array<object> | null | no | Finite interpretations of vague owner preferences: each {source_quote, interpretation, item_ids}. Quote actual owner words and name concrete existing or simultaneously added checks. The judge independently preserves explicit functionality, exclusions and security. Recorded before the next verificat… |
| remove_item_ids | array<string> | null | no | Intent item ids to remove (from get_verification_session). Only a feature.* item of an application or game feature you added, have taken out of the recipe and the image's package lists, and the owner never named, can be removed, and a user.* account check once the account is out of the recipe's use… |
| add_assertions | array<object> | null | no | Checks to add, each {description, type, params, expected_visual, required (default true), phase (live or installed_system, default live)}: type 'visual' with expected_visual for something the judge must see, or a read-only check (package_installed, file_exists, file_contains, file_permissions, serv… |
| add_visual_references | array<object> | null | no | Required visual comparisons to add: {claim, source, kind}, using the recipe visual_references format. With owner_message_id, pair a removed agent-chosen reference with the exact same claim and kind to correct only its image source; required status and phases are retained. Owner-supplied sources rem… |
| owner_message_id | string | null | no | To correct inherited checks or superseded requirements, cite the latest user message ID. Each corrected check is judged independently against the full owner check. Obsolete custom, desktop, generated account and non-security feature checks may change; account checks stay required and owner-bound; u… |
| owner_quote | string | null | no | The owner's exact words asking AGAINST a feature, copied from their message (e.g. 'Do NOT install: GNOME'). A feature named only inside that quote no longer counts as one the owner asked for, so its checks can be removed once it is out of the recipe and package lists. |
| firmware_tags | object | null | no | {item_id: 'bios' | 'uefi'} for checks that only one firmware can show, any item included: a Legacy BIOS / DOS-MBR claim 'bios', a separate UEFI boot claim 'uefi'. A tagged check is graded only in a session of that firmware and an untagged one in every session; the build then certifies only when the… |
| build_id | string | null | no | The build you are verifying. Required when you drive your own build over the public surface; a platform goal session may omit it. |
| api_key | string | null | no | Your OpenFactory MCP API key, unless it is already the Authorization header |
| session_token | string | null | no | Session token from a previous tool response (a guest cannot verify) |
start_verification_session
Open a new verification session on the image a build already has. Use it to start the session build_image saved, after a session ended before the image was looked at, after the platform itself failed a run, or to present a claim again when the recorded evidence was wrong and the image is right. An image that really has a defect needs a fix and build_image, which opens its own session. Presenting unchanged evidence again to get a different grade is not a reason. Refused while a run of this build is still in flight, and once three sessions have judged these exact bytes. A session that ended as an error is not counted. When those three left claims insufficient but failed none, one more is allowed. One session covers the live and, when there is one, the installed phase. Poll get_verification_session until it is ready. boot_firmware opens a session on the firmware a check needs (Legacy BIOS or UEFI); each session is judged on the untagged checks and those of its firmware. disk_fixture="windows-uefi" puts an existing Windows on the disk. disk_read_mb_per_s slows the boot media for a claim about slow media. live_credential='platform' is for a live session whose lock screen needs a password the image never gave you. browser_client=true is for an image whose interface is a web page it serves (Proxmox, CasaOS, Cockpit, a router's admin page): the platform adds its own recorded browser VM on the session's private network, named in get_verification_session's browser_client.vm_name; reco…
| Parameter | Type | Required | Description |
|---|---|---|---|
| installation_case_id | string | null | no | Native declared installer choice ID. Each choice needs its own fresh recorded session; other cases remain owed. |
| build_id | string | null | no | The build you are verifying. Required when you drive your own build over the public surface; a platform goal session may omit it. |
| boot_firmware | enum: "uefi" | "bios" | null | no | Firmware the session VM boots, for both its live and installed phases. 'bios' is Legacy BIOS (SeaBIOS), so the installer partitions a DOS/MBR disk; 'uefi' is OVMF. Omit it to keep the platform's choice, which boots any hybrid ISO under UEFI. |
| disk_fixture | string | null | no | Start the session VM's disk as a prepared layout instead of blank. 'windows-uefi': GPT with an EFI system partition holding placeholder Windows Boot Manager files, a Microsoft reserved partition and an NTFS volume, so the installer offers to install alongside Windows. It holds no Windows; booting i… |
| live_credential | string | null | no | 'platform': before you act, the platform sets a generated password on the live desktop's active account and delivers it privately as native-login-password, for type_secret at a lock screen or privileged prompt. Disclosed to the judge as a platform step, so it cannot show the image's own credential.… |
| disk_read_mb_per_s | integer | null | no | Cap reads from every disk and CD-ROM of the session VM at this many MB/s (10^6 bytes, 20 to 1000; 20 is a slow USB 2.0 stick) for both phases, for a boot-time claim on slow media. The judge reads the cap off the VM as a platform fact; an install or boot that times out under it is the platform's, no… |
| browser_client | boolean | null | no | true for an image whose interface is a web page it serves (Proxmox VE, CasaOS, TrueNAS, OpenMediaVault, Cockpit, a router's admin page): the platform adds its own browser VM (Firefox/Chromium, tester image) on the session's private test network, recorded and sealed with the session. get_verificatio… |
| api_key | string | null | no | Your OpenFactory MCP API key, unless it is already the Authorization header |
| session_token | string | null | no | Session token from a previous tool response (a guest cannot verify) |
record_verification_step
Append one narrated step to the platform's ledger for this session. The platform takes the screenshot, on the session's own VM, at this moment: you never supply the frame you are graded on. So put the subject on screen BEFORE you call this — close the menu you opened, raise the window, dismiss the dialog — because the judge samples the whole recording and an occluded frame proves nothing. Bind every step to the claim(s) it shows with `intent_item_ids`. Without them the judge has to guess which frame belongs to which claim from the words on screen. An id that is not one of this session's intent items is refused, with the valid ids. Goes to the session get_verification_session named, on that session's VM — you never choose the run. Budget-checked: when the session wall clock or the step count is spent, this refuses and the platform judges what was recorded.
| Parameter | Type | Required | Description |
|---|---|---|---|
| description | string | yes | What you did and what is visibly true as a result, e.g. 'Opened Settings > Appearance; the accent colour reads Orange and the title bars are orange'. One step per intent item. Never record a step for something you did not look at. |
| status | string | no | passed | failed | error | skipped |
| notes | string | null | no | Optional detail — expected versus actual when a claim does not hold |
| intent_item_ids | array<string> | null | no | The intent item ids (from get_verification_session) this step demonstrates, at most 8; the judge grades those claims on this frame first. |
| operation_id | string | null | no | Stable opaque ID, at most 128 characters, for this capture. Retry the same ID and content after a lost response. |
| app_run_id | string | null | no | Expected ledger from get_verification_session. Required with operation_id; a changed artifact or phase is refused. |
| motion_seconds | number | null | no | Motion capture, for claims about video, animation or smoothness: the platform samples the VM display for this many seconds (more than 0, at most 10, about 30 fps) before the frame, and gives the judge the updates per second and the longest stall it measured, labelled VM display. Start the motion fi… |
| capture_vm | enum: "session" | "browser_client" | null | no | 'browser_client' captures this step's frame (and motion) on the session's browser client instead of the image's VM: for a claim about a web page the image serves, with that page loaded from the image's address and its address bar visible. Only a session started with browser_client=true has one. Omi… |
| build_id | string | null | no | The build you are verifying. Required when you drive your own build over the public surface; a platform goal session may omit it. |
| api_key | string | null | no | Your OpenFactory MCP API key, unless it is already the Authorization header |
| session_token | string | null | no | Session token from a previous tool response (a guest cannot verify) |
finish_verification_session
Hand the current phase in. The platform seals its recording. Hands in the phase get_verification_session named. This is irreversible: once finishing is requested the phase cannot be cancelled or reopened. Finish only after walking every independent claim; bind each observed defect to a failed step and continue checking unrelated claims. If the build has an installed phase and you finish the LIVE phase with passed or failed, the platform installs the image to disk and boots it (status installing); poll get_verification_session until the installed phase is ready, show the claims again there, and finish it the same way. Finishing the live phase with error or skipped stops before installation. A failed phase still gets independent grading of its recording and native command facts; its valid checks stay passed, while the artifact cannot be certified. Otherwise the platform judges what was recorded. Poll get_verification_session for the verdict. A judged pass of every required phase and installation case can certify the build.
| Parameter | Type | Required | Description |
|---|---|---|---|
| status | string | yes | Phase completion: passed if you found no defects; failed if you found defects after checking the remaining independent claims. Both submit all evidence for independent grading and continue to the installed phase when required. A failed check does not justify ending early. Use error or skipped only… |
| notes | string | null | no | What you verified and anything you could not verify, in plain words |
| build_id | string | null | no | The build you are verifying. Required when you drive your own build over the public surface; a platform goal session may omit it. |
| api_key | string | null | no | Your OpenFactory MCP API key, unless it is already the Authorization header |
| session_token | string | null | no | Session token from a previous tool response (a guest cannot verify) |
get_compute_allocation
Read your purchased hosted allowance, own usage and remaining budget. Returns no physical host capacity or other customers. Allowance is not dedicated hardware availability. Free accounts can inspect this report. `image_allowance` is what the plan leaves of image attempts your own agent dispatches; a null limit means the plan does not cap them.
| Parameter | Type | Required | Description |
|---|---|---|---|
| api_key | string | null | no | |
| session_token | string | null | no |
create_lab
Create a private, owner-only lab within your purchased plan allocation. Retry with the same idempotency_key. No public DNS or gateway is created.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | |
| idempotency_key | string | yes | |
| api_key | string | null | no | |
| session_token | string | null | no |
list_labs
List only your private labs, with their retained versioned declarations.
| Parameter | Type | Required | Description |
|---|---|---|---|
| api_key | string | null | no | |
| session_token | string | null | no |
get_lab
Read one owned lab's nodes, private networks, secret metadata and evidence lineage.
| Parameter | Type | Required | Description |
|---|---|---|---|
| lab_id | string | yes | |
| api_key | string | null | no | |
| session_token | string | null | no |
configure_lab_network
Configure an isolated lab network, .test DNS and explicit node traffic. rules: [{source: 'entry', target: 'workspace', protocol: 'tcp', port: 8080}]. dns: {'files.workshop.test': 'entry'}. Subnets and runtime names are assigned by the platform. Internet enables public HTTP/HTTPS only; management, metadata, private ranges and other labs remain inaccessible.
| Parameter | Type | Required | Description |
|---|---|---|---|
| lab_id | string | yes | |
| network_id | string | yes | |
| internet | boolean | no | |
| rules | array<object> | null | no | |
| dns | object | null | no | |
| api_key | string | null | no | |
| session_token | string | null | no |
delete_lab_network
Remove an owned lab network only after its nodes are removed.
| Parameter | Type | Required | Description |
|---|---|---|---|
| lab_id | string | yes | |
| network_id | string | yes | |
| api_key | string | null | no | |
| session_token | string | null | no |
create_lab_node
Provision only an owned private-lab role from a pinned built artifact. This mandatory lab scope lets a session goal provision roles without exposing unrestricted VM lifecycle tools to an image-build goal.
| Parameter | Type | Required | Description |
|---|---|---|---|
| lab_id | string | yes | |
| node_id | string | yes | |
| build_id | string | yes | |
| networks | array<string> | yes | |
| memory_mb | integer | no | |
| vcpus | integer | no | |
| disk_size_gb | integer | no | |
| auto_install | boolean | no | |
| installer_method | string | null | no | |
| installer_type | string | null | no | |
| base_image | string | null | no | |
| admin_username | string | no | |
| admin_password_ref | string | null | no | |
| api_key | string | null | no | |
| session_token | string | null | no |
ensure_lab_tester
Provision an owned, lab-scoped browser VM from the platform's pinned tester. The tester uses only the named lab network and consumes the same account allocation. It is ephemeral; remove its node after retaining evidence.
| Parameter | Type | Required | Description |
|---|---|---|---|
| lab_id | string | yes | |
| network_id | string | yes | |
| memory_mb | integer | no | |
| vcpus | integer | no | |
| api_key | string | null | no | |
| session_token | string | null | no |
delete_lab_node
Remove one owned lab node and its disks; its immutable evidence remains.
| Parameter | Type | Required | Description |
|---|---|---|---|
| lab_id | string | yes | |
| node_id | string | yes | |
| api_key | string | null | no | |
| session_token | string | null | no |
pause_lab
Gracefully stop lab roles, retain data and report its tier-based expiry.
| Parameter | Type | Required | Description |
|---|---|---|---|
| lab_id | string | yes | |
| api_key | string | null | no | |
| session_token | string | null | no |
resume_lab
Resume owned lab roles after verifying remaining allocation and network policy.
| Parameter | Type | Required | Description |
|---|---|---|---|
| lab_id | string | yes | |
| api_key | string | null | no | |
| session_token | string | null | no |
delete_lab
Delete owned lab resources and credentials. Explicit confirm=true is required. Retained test evidence follows its existing retention policy. Does not delete unrelated VMs, networks, or other customers' resources.
| Parameter | Type | Required | Description |
|---|---|---|---|
| lab_id | string | yes | |
| confirm | boolean | no | |
| api_key | string | null | no | |
| session_token | string | null | no |
generate_lab_secret
Generate an encrypted, versioned lab credential; return only its reference. Existing names stage a new version. Explicit deployment references activate it after the application's credential rotation procedure. The owner reveals credentials through the authenticated console, never this MCP response.
| Parameter | Type | Required | Description |
|---|---|---|---|
| lab_id | string | yes | |
| name | string | yes | |
| api_key | string | null | no | |
| session_token | string | null | no |
set_lab_secret
Store a supplied credential encrypted at rest; return its versioned reference.
| Parameter | Type | Required | Description |
|---|---|---|---|
| lab_id | string | yes | |
| name | string | yes | |
| value | string | yes | |
| api_key | string | null | no | |
| session_token | string | null | no |
list_lab_secrets
List owned lab credential names and versions without plaintext values.
| Parameter | Type | Required | Description |
|---|---|---|---|
| lab_id | string | yes | |
| api_key | string | null | no | |
| session_token | string | null | no |
delete_lab_secret
Delete all versions of a secret once no deployment references it.
| Parameter | Type | Required | Description |
|---|---|---|---|
| lab_id | string | yes | |
| name | string | yes | |
| api_key | string | null | no | |
| session_token | string | null | no |
deliver_lab_secret
Deliver one owned secret version to a role's root-only guest file. Returns its guest path, never plaintext. Use native OS/application tools reading that file for administrator bootstrap, rotation or recovery.
| Parameter | Type | Required | Description |
|---|---|---|---|
| lab_id | string | yes | |
| node_id | string | yes | |
| reference | string | yes | |
| api_key | string | null | no | |
| session_token | string | null | no |
deploy_lab_services
Deploy an owned published Git commit's digest-pinned Compose services privately. The prepared role must contain Docker Compose and systemd. Secrets are explicit {VARIABLE: 'SECRET_NAME:version'} references. No hosted application gateway route is registered. Uses the existing deployment reconciler.
| Parameter | Type | Required | Description |
|---|---|---|---|
| lab_id | string | yes | |
| node_id | string | yes | |
| repository | string | yes | |
| revision | string | yes | |
| compose_path | string | no | |
| secret_refs | object | null | no |
get_lab_deployment
Read an owned lab role's private deployment status and pinned provenance.
| Parameter | Type | Required | Description |
|---|---|---|---|
| lab_id | string | yes | |
| node_id | string | yes | |
| api_key | string | null | no | |
| session_token | string | null | no |
create_app
Register an app (a git repo to deploy) on OpenFactory. This creates the App record (name, source, slug, visibility). Deploy it with deploy_app(app_id=…) to build a fresh immutable variant and get a URL at https:// .apps.openfactory.tech (web-service apps). To test an app that's ALREADY hosted elsewhere (Vercel, etc.), you don't need this — just point a scenario at its URL with create_app_scenario.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Human name for the app, e.g. 'my-shop' |
| git_url | string | yes | HTTPS git URL of the app's repository |
| branch | string | no | Branch to deploy (default main) |
| deployment_type | string | no | web-service (long-running server), static-site, or scheduled-job |
| port | integer | null | no | Port the app listens on (e.g. 3000) |
| base_image | string | no | Base variant for deployments (default: debian-trixie) |
| slug | string | null | no | Optional DNS-safe slug for the app's URL; auto-derived from the name if omitted |
| visibility | string | no | 'public' (anyone with the URL can view) or 'private' (only you — the preview URL is gated by your OpenFactory login). |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
list_apps
List your registered apps.
| Parameter | Type | Required | Description |
|---|---|---|---|
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
get_app
Get one app's full record (source, slug, status, deploy history).
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_id | string | yes | App id from create_app/list_apps |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
deploy_app
Build a fresh app-baked OpenFactory variant and deploy it blue-green. The exact Git revision is resolved with your connected GitHub account, dependencies and the app are built through OBS or a live-build hook, and a new live VM boots only after the ISO is complete. The VM receives runtime env, starts the packaged service, passes health checks, and then atomically replaces the old gateway route. No install/build work runs in the live VM. To test an app hosted elsewhere (Vercel, AWS, …) you do NOT need this — pass the hosted URL straight to create_app_scenario.
| Parameter | Type | Required | Description |
|---|---|---|---|
| git_url | string | null | no | Git URL to deploy (omit if app_id is given) |
| app_id | string | null | no | Deploy a registered app by id (uses its git_url/branch/slug) |
| branch | string | null | no | Optional branch override |
| run_command | string | null | no | Command to start the app, e.g. 'pnpm start' or 'python3 app.py'. Auto-detected for npm/pnpm/Yarn projects (port 3000) and static sites (python3 http.server, port 8080) if omitted. |
| install_command | string | null | no | Optional deps install, e.g. 'npm install' or 'pip3 install -r requirements.txt' |
| build_command | string | null | no | Optional production build command. For Node repos this is auto-detected from the package.json build script when omitted. |
| port | integer | null | no | Port the app listens on (>=1024) |
| visibility | string | null | no | Preview-URL visibility: 'public' (default) or 'private' (only the owner, gated by login). Defaults to the registered app's setting when app_id is given. |
| base_image | string | null | no | Optional base-variant override; registered app default is debian-trixie |
| use_obs | boolean | null | no | Package through OBS when true; use the image-build hook when false; omit for automatic selection based on OBS health and stack support. |
| static_output_dir | string | null | no | Output directory for a built static site, e.g. dist or out |
| wait | boolean | no | Wait for completion within wait_timeout_seconds; the deployment continues if the wait expires |
| wait_timeout_seconds | integer | no | Maximum bounded wait when wait=true (1-540 seconds) |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
get_app_deploy_status
Poll an immutable app variant through build, boot, health, and cutover.
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_id | string | yes | App id from create_app/deploy_app |
| deploy_id | string | null | no | Deployment id; defaults to latest |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
create_app_from_prompt
Turn a one-sentence brief into a queued immutable app deployment. The returned ``app_id`` can be passed to: - ``iterate_app(app_id, instruction='make the header green')`` to record an iteration (M2 will actually apply it) - ``get_app_build_status(app_id)`` to check current state - ``set_app_env(app_id, set={KEY:val})`` to inject env vars - ``walk_app(app_url= , mode='hybrid')`` for self-test
| Parameter | Type | Required | Description |
|---|---|---|---|
| brief | string | yes | One-sentence description of what the app should do. Saved to App.origin.brief for future iteration. |
| template_git_url | string | yes | HTTPS git URL of a template repo to bake into a fresh app variant. |
| name | string | null | no | Optional display name. Derived from the brief if omitted. |
| visibility | string | no | 'public' (anyone with URL can view) or 'private' (gated by your OpenFactory login). |
| branch | string | no | Template repo branch. |
| base_image | string | no | Base variant for the deployment. |
| use_obs | boolean | null | no | Use OBS when true, the image hook when false, or automatic selection when omitted. |
| wait | boolean | no | Wait briefly for the asynchronous deployment to finish. |
| wait_timeout_seconds | integer | no | |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
iterate_app
Dispatch a natural-language change to an app and have it applied for you. A repair agent reproduces, applies the change to the app deployed in its sandbox VM, redeploys, and verifies. Works on any app you own that has a git source. Poll ``get_app_build_status(app_id)`` for the live thread status (queued -> working -> done/failed). Persisting the change back to your git repo (via a connected GitHub integration) is a follow-up capability.
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_id | string | yes | App ID (from create_app or create_app_from_prompt). |
| instruction | string | yes | What to change in plain language. Examples: 'make the header green', 'add a CSV export button', 'fix the broken submit button'. A repair agent applies the change to the app in its sandbox VM and redeploys. |
| context_envelope | object | null | no | Optional context about where the change applies (route, page, etc.). |
| thread_id | string | null | no | Optional prior thread id to continue an existing request. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
get_app_build_status
Return the build/deploy status for an app plus live iteration-thread state — origin (brief + iterations), current URL, deploy history count, env version drift signal, and each in-flight change's status (queued/working/ done/failed) with the agent's result evidence. For general app inspection, use list_apps() / get_app().
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_id | string | yes | App ID from create_app_from_prompt. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
list_app_env
List the app's env vars (masked — values returned as ``********``). Returns ``{entries: [{name, value:"********", source, producer, updated_at}], env_version, applied_env_version}``. Use ``reveal_app_env`` to decrypt a specific value (audited).
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_id | string | yes | App ID (UUID from create_app). |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
set_app_env
Upsert and/or delete env vars on an app in a single transaction. Bumps ``app.env_version`` if any var actually changed; deploy_app picks up the new version on the next run (compare ``env_version`` to ``applied_env_version`` to see drift). At least one of ``set`` / ``delete`` required. Returns ``{env_version, redeploy_hint}``.
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_id | string | yes | App ID (UUID from create_app). |
| set | object | null | no | Upsert dict of KEY → value. Keys must match ^[A-Z_][A-Z0-9_]{0,127}$ (uppercase + digits + underscore, ≤128 chars). Values ≤8 KiB. OPENFACTORY_ prefix reserved. |
| delete | array<any> | null | no | Optional list of KEY names to remove from the app's env. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
reveal_app_env
Decrypt and return a single app env var's plaintext value. Writes an audit entry recording the actor, app_id, name, and timestamp.
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_id | string | yes | App ID (UUID from create_app). |
| name | string | yes | Env var name to decrypt. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
list_account_env
List account-level env vars (shared defaults across all your apps). These flow into every app deploy BEFORE app-level vars (app overrides on collision). Use for shared secrets like a personal API key that multiple apps need. Returns ``{entries: [{name, value:"********", source, updated_at}]}``.
| Parameter | Type | Required | Description |
|---|---|---|---|
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
set_account_env
Upsert/delete account-level env vars in a single transaction. These propagate into every subsequent app deploy you own (account vars are merged in BEFORE app vars, so app-level keys override account-level).
| Parameter | Type | Required | Description |
|---|---|---|---|
| set | object | null | no | Upsert dict of KEY → value. Same validation as set_app_env. |
| delete | array<any> | null | no | Optional list of KEY names to remove from account env. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
reveal_account_env
Decrypt and return a single account env var. Writes an audit entry.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Account env var name to decrypt. |
| session_token | string | null | no | Session token |
| api_key | string | null | no | MCP API key |
desktop_start_recording
Start recording a VM's screen to a video file. Runs server-side on the libvirt capture path, so you can keep watching the VM's live VNC console and keep driving it with the desktop_* tools while it records. Returns a recording_id and a video_url (fetchable once stopped). Call desktop_stop_recording(recording_id) to finish.
| Parameter | Type | Required | Description |
|---|---|---|---|
| vm_name | string | yes | Tester/desktop VM to record (of-tester-* / of-desktop-*) |
| fps | integer | no | Frames per second (1-5; default 2) |
| format | string | no | Video format: mp4 (H.264) or webm (VP9) |
| label | string | null | no | Optional human label |
| session_token | string | null | no | Session token from a previous tool response |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
desktop_stop_recording
Stop a recording and finalize the video. Returns the fetchable video_url.
| Parameter | Type | Required | Description |
|---|---|---|---|
| recording_id | string | yes | recording_id from desktop_start_recording |
| session_token | string | null | no | Session token from a previous tool response |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
get_recording
Get a recording's status + metadata (status, duration_ms, size_bytes, video_url).
| Parameter | Type | Required | Description |
|---|---|---|---|
| recording_id | string | yes | recording_id to inspect |
| session_token | string | null | no | Session token from a previous tool response |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
list_recordings
List recordings for a VM, newest first.
| Parameter | Type | Required | Description |
|---|---|---|---|
| vm_name | string | yes | Tester/desktop VM whose recordings to list |
| session_token | string | null | no | Session token from a previous tool response |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
test_workflow
Autonomously TEST a GUI workflow and report whether it works. OpenFactory's AI drives the tester VM (sees the screen, clicks/types) toward your goal, recording each step to the app-test harness with video. This spends platform AI and is metered against your plan's AI allowance; it is refused once that allowance is used. To use your own model instead, drive the VM yourself with desktop_screenshot / desktop_interact. ASYNC BY DEFAULT: this returns right away with a run_id while the AI keeps driving the VM in the background, so your MCP client's call never blocks/times out. Poll get_app_test_run(run_id) — when status flips to passed/failed/error the run.verdict_notes holds the verdict and run.video has the recording. Pass wait=true to block for the verdict inline instead (short workflows only). Run ensure_tester_vm first, and make sure the app is reachable from the VM.
| Parameter | Type | Required | Description |
|---|---|---|---|
| app_name | string | yes | Stable app key for history grouping, e.g. 'knostra' |
| scenario | string | yes | Stable scenario key, e.g. 'booking-smoke' |
| instructions | string | yes | The workflow + what 'works' means, e.g. 'Open /booking, fill the demo form, submit, and verify a confirmation appears.' |
| vm_name | string | null | no | Tester VM to test in (of-tester-*/of-desktop-*). Omit (recommended) to auto-lease one from the app's tester pool — it queues if every VM is busy and is released automatically when the run finishes, so two tests never share a VM. |
| app_url | string | null | no | URL to open first (as seen from the VM) |
| max_steps | integer | no | Max agent steps (1-20) |
| wait | boolean | no | If true, block until the agent finishes and return the verdict inline (may hit your MCP client's call timeout for long runs). Default false: return immediately with a run_id; poll get_app_test_run(run_id) for the verdict + video. |
| session_token | string | null | no | Session token from a previous tool response |
| api_key | string | null | no | Your OpenFactory MCP API key (optional) |
get_harness_skill
Fetch a packaged OpenFactory harness skill (instructions + references). Remote sessions have no filesystem access to this host, so the canonical skill markdown is served in-band. Follow the returned skill exactly as if it were installed locally. ``resources`` lists its companion files; a small skill's are included in ``references``. Pass one as ``resource_path`` to read that file alone. To keep long text within the client's response limit, pass ``resource_path`` and ``limit=12000`` and follow ``resource.next_offset``.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Guide name: openfactory-compute (build and verify an image yourself; start here), replicate-this-machine, openfactory-build (what each file of an image does, by operating system; read its companion files by path), policy-system-generation, policy-control-authoring or policy-document-publication. |
| session_token | string | null | no | Session token from a previous tool response. IMPORTANT: Always pass the session_token from the most recent tool response to maintain session continuity. |
| api_key | string | null | no | OpenFactory MCP API key (optional). |
| resource_path | string | null | no | Read one path from resources, including SKILL.md. Set limit=12000 for clients with small response limits. |
| offset | integer | no | Character offset when paging a text resource. |
| limit | integer | null | no | Maximum characters from a text resource. Follow resource.next_offset for the rest. |
get_feature_reference
Read the feature library: what a feature installs and the hook that configures it. Without feature_ids it returns the index of features, optionally for one category. With feature_ids it returns each feature's definition (packages per distribution, repository and key), the verbatim text of its hook when it has one, and `companions`, the files that hook reads. A hook goes to hooks/live/NNNN- .chroot (NNNN- .hook.chroot on Debian and Elster) and a companion to hooks/live/ , both with write_build_config. A hook that exits unless ENABLE_ is true needs `export ENABLE_ =true` after its first line. Keep the rest of a hook verbatim: it carries workarounds for the distribution.
| Parameter | Type | Required | Description |
|---|---|---|---|
| feature_ids | array<string> | null | no | All features to read in one call, even when only one is needed. Omit to get the feature index; maximum 32. |
| category | string | null | no | Restrict the index to one category directory, e.g. 'desktop', 'services', 'security'. Ignored when feature_ids is given. |
| session_token | string | null | no | Session token from a previous tool response. IMPORTANT: Always pass the session_token from the most recent tool response to maintain session continuity. |
| api_key | string | null | no | OpenFactory MCP API key (optional). |
finalize_build_plan
Validate and launch one complete authored plan; no prior submissions or buffer.
| Parameter | Type | Required | Description |
|---|---|---|---|
| plan | string | object | null | no | Complete BuildPlan JSON. Omit in a goal workspace to read .openfactory/build-plan.json. |
| queue | boolean | no | False validates the authored plan without launching it. |
| session_token | string | null | no | Session token from a previous tool response. IMPORTANT: Always pass the session_token from the most recent tool response to maintain session continuity. |
| api_key | string | null | no | OpenFactory MCP API key (optional). |
get_build_group
Read a build group's per-node child statuses (fresh, merged).
| Parameter | Type | Required | Description |
|---|---|---|---|
| group_id | string | yes | The build group to inspect. |
| session_token | string | null | no | Session token from a previous tool response. IMPORTANT: Always pass the session_token from the most recent tool response to maintain session continuity. |
| api_key | string | null | no | OpenFactory MCP API key (optional). |
start_build_group_node
Start ONE node's build in a conductor-driven build group (ordered fan-out). A multi-node conductor calls this per node, in dependency order, to start each node's autonomous build. Other nodes are untouched, so you control the order (e.g. bring up a router/switch or a shared base image before the nodes that depend on it). Monitor with get_build_group / get_build_status.
| Parameter | Type | Required | Description |
|---|---|---|---|
| group_id | string | yes | The build group whose node build to start. |
| node_id | string | yes | The topology node_id to start building now. |
| session_token | string | null | no | Session token from a previous tool response. IMPORTANT: Always pass the session_token from the most recent tool response to maintain session continuity. |
| api_key | string | null | no | OpenFactory MCP API key (optional). |
list_build_config
List the image code you have written for a build, and where you may write. ``authoring.mode`` says what this base allows: config (write_build_config works), recipe_only (its builder reads only the recipe) or not_available. ``authoring.writable_paths`` describes each place and what uses it. ``files`` are the files you wrote, with sha256, size and mode. The package list the platform derives from your recipe can be read too (``recipe_files``).
| Parameter | Type | Required | Description |
|---|---|---|---|
| build_id | string | yes | A build your own agent drives. |
| session_token | string | null | no | Session token from a previous tool response. IMPORTANT: Always pass the session_token from the most recent tool response to maintain session continuity. |
| api_key | string | null | no | OpenFactory MCP API key (optional). |
read_build_config
Read one file you wrote into a build, or its recipe-derived package list. Text comes back as content; anything else as base64. At most 256 KiB is returned, with the full size in ``size_bytes``.
| Parameter | Type | Required | Description |
|---|---|---|---|
| build_id | string | yes | A build your own agent drives. |
| path | string | yes | Path relative to config/, for example hooks/live/0500-timezone.chroot. |
| session_token | string | null | no | Session token from a previous tool response. IMPORTANT: Always pass the session_token from the most recent tool response to maintain session continuity. |
| api_key | string | null | no | OpenFactory MCP API key (optional). |
write_build_config
Write image code into a build: files for the image, hooks, package lists, repositories. This is how everything a recipe does not deliver reaches the image: time zone, users, services, desktop settings, wallpaper, kernel arguments, any configuration file. Files under includes.chroot/ are copied into the image at the same absolute path (on Debian and Elster a hook writes them), and scripts under hooks/ run as root inside the image while it is built. On Fedora, Ubuntu and Debian a boot-session/NN-name.json and NN-name.sh boot a throwaway copy of the image with network while it is built, run the script in it and keep the paths the declaration names: that is how Flatpaks and apps that only finish installing in a running system are in the image offline. The change overwrites each path in ``files`` and removes each path in ``delete``, all or nothing. It is used by the next build_image; it does not change an image already built. At most 500 paths and 4 MiB per call. list_build_config names the places this build's base accepts, and a refused path says what to do instead. Never include passwords, keys or tokens: everyone who gets the image can read them. Run check_image_inputs afterwards, then build_image.
| Parameter | Type | Required | Description |
|---|---|---|---|
| build_id | string | yes | A build your own agent drives. |
| files | string | array<any> | yes | Files to write, as [{path, content}] or [{path, content_b64}], each with an optional mode of 420 (0644) or 493 (0755). Paths are relative to config/. Hooks are always made executable. |
| delete | string | array<any> | null | no | Paths of files you wrote earlier, to remove in the same change. |
| note | string | null | no | What this change does, recorded with it. |
| session_token | string | null | no | Session token from a previous tool response. IMPORTANT: Always pass the session_token from the most recent tool response to maintain session continuity. |
| api_key | string | null | no | OpenFactory MCP API key (optional). |
list_internal_repositories
List the package source repositories you own.
No parameters.
create_internal_repository
Create, seed, clone, and authorize an internal-only Git repository.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Short tenant-local repository name. |
| description | string | no | One-line purpose written to README.md. |
attach_internal_repository
Clone and authorize an existing repository owned by this tenant.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Repository id or unambiguous name returned by list_internal_repositories. |
publish_internal_repository
Publish a repository's pending work to its main branch. Writes land on the work branch; this moves main to that tip in one step. Give branch to publish another branch instead. Packages are built from main.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Attached repository id, checkout name, or unambiguous label returned by list_internal_repositories. |
| branch | string | null | no | Bare branch name to publish -- the branch you pushed. Omit for 'work', which is where file writes over MCP commit. Not a refname and not a path. |
write_internal_repository
Commit files into an attached internal repository over MCP. This is the write path for a caller with no shell on this host. Commits land on the repository's ``work`` branch and NEVER on ``main``: ``main`` is what OBS builds and what an ISO installs, and it only moves when you call ``publish_internal_repository``. Each call adds ONE commit on top of the current ``work`` tip and amends no earlier commit. That commit overwrites each path in ``files`` and removes each path in ``delete``, so send only the files that change. ``base_revision`` is how you reconcile with a ``main`` that moved: pass ``'main'`` to restart ``work`` from the published tip, discarding ``work`` commits that were never published, and re-apply these files on top of it. Pass a SHA to make the write conditional on ``work`` still being where you last saw it.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Attached repository id, name, or unambiguous label returned by list_internal_repositories. |
| files | string | array<any> | yes | Files to write, as [{path, content}] or [{path, content_b64, mode}]. Paths are repository-relative. Binaries and file modes are supported. |
| message | string | yes | Commit message. |
| delete | string | array<any> | null | no | Repository-relative paths to remove in the same commit. |
| base_revision | string | null | no | Omit to commit on top of the current work tip. Pass 'main' to restart work from the published main and re-apply these files. Pass a commit SHA to require the work tip to be exactly that. |
submit_obs_package
Build one of your published internal repositories as a package. Returns once the source is accepted and does not wait for the compile: poll get_obs_package_status and read get_obs_package_log after a failure. The revision is resolved in what you published, so publish it first. When get_obs_package_status reports published true, add each binary package to os.custom_obs_packages in the recipe and build the image. build_dependencies names source packages already submitted for this build whose repositories are searched before the distribution's, closest first; repeat the list on each submission. build_preferences chooses at most 16 binary packages when a dependency has several providers; repeat it too. rebuild_policy="local" keeps a Debian source with archive-only build dependencies from being rebuilt when those change, and cannot be combined with build_dependencies.
| Parameter | Type | Required | Description |
|---|---|---|---|
| repository | string | yes | Attached internal repository id, checkout name, or label -- the one holding the source you want built, as returned by list_internal_repositories. |
| package | string | yes | Source-package name to build it as. Becomes the OBS package name and the last segment of the project path; use the Debian source package name from your debian/control. |
| revision | string | no | Branch, tag, or SHA that must already exist in the published repository. Call publish_internal_repository first. |
| targets | array<string> | null | no | Package target ids such as debian-13, ubuntu-24.04, fedora-44. Defaults to the target implied by the build's base image. |
| build_id | string | null | no | Build this package is being made for. Scopes the OBS project to that build, picks the default target from its base image, and records the submission on the build row. |
| build_dependencies | array<string> | null | no | |
| build_preferences | array<string> | null | no | |
| rebuild_policy | string | null | no | |
| reconcile_stalled_publication | boolean | no | Reconcile only stale successful Debian publication through native project metadata, without resubmitting source; preserves explicit disables, ownership, admission and signature checks. |
| retry_stalled_failed_source | boolean | no | Opt in to one failed-only native retry per selected target after confirming this exact Debian source revision; ordinary ownership and package allowance checks remain required. |
get_obs_package_status
Read what OBS currently says about one package. One read, no waiting. Returns the raw per-repository/per-architecture rows plus a single collapsed ``status`` (``queued``, ``building``, ``succeeded``, ``failed``, ``unresolvable``, ``broken``) and whether the resulting APT repository is actually servable. ``succeeded`` and ``published`` are two different facts and this tool keeps them apart. OBS reports a package as built well before the publisher has written a signed index, and live-build's first ``apt-get update`` against a repository with no ``Release``/``Packages``/``Release.key`` is fatal. Only ``published: true`` means an ISO may pull from ``repo_url``. When the submission record carries the revision you asked for, ``published`` additionally requires binaries stamped with *that* revision to be in the index, so a stale prior build cannot look like your new one. Binary names come from that exact source revision's Debian manifest; all of them must be present with the expected revision, even when none shares its name. RPM/APK publication instead requires the exact uploaded source marker and clean, successful, published native results for every requested architecture, in addition to a servable native index. Old dirty or pending jobs never establish publication of a new submission. This tool never tells you what to do next. "queued" does not mean wait, "failed" does not mean regenerate -- you have the recipe, the source and the log, and the decision is yours.
| Parameter | Type | Required | Description |
|---|---|---|---|
| project | string | yes | Full OBS project path returned by submit_obs_package, or build: to observe this account's package project for an authorized build. The alias does not prove an unrecorded source revision. |
| package | string | yes | OBS package name returned by submit_obs_package. |
| include_repository_key_digest | boolean | no | Read the authorized project's native public signing-key SHA256, for authenticating a portable package bundle; returns no key or credential bytes. |
get_obs_package_log
Return the tail of one package's OBS build log. The default is a bounded current snapshot, never a stream. Set last_completed=true to inspect the last finished native build even while dependencies have scheduled another one. It is historical diagnostic output, not proof that the current source is published. Counts describe that retrieved window, not the complete historical log. To find a failure outside the tail, supply repository, start_byte and literal search_text; next_byte_offset advances one bounded window, and matches include context. Preserve overlap when searching a string across adjacent byte windows. The tail is where a build log says why it failed; the head is boilerplate chroot setup. This returns lines only -- read them, decide what is wrong, fix the source in your repository, ``publish_internal_repository``, and resubmit the same project at the new revision.
| Parameter | Type | Required | Description |
|---|---|---|---|
| project | string | yes | Full OBS project path returned by submit_obs_package. |
| package | string | yes | OBS package name returned by submit_obs_package. |
| repository | string | null | no | OBS repository such as Debian_13. Defaults to the first repository OBS reports a result for. |
| arch | string | no | Build architecture. |
| tail_lines | integer | no | How many trailing log lines to return (max 2000). |
| start_byte | integer | null | no | Optional bounded historical search offset. Requires repository and search_text. |
| last_completed | boolean | no | |
| search_text | string | null | no | Literal text to find within one bounded log window, with nearby context. Requires start_byte and repository. |
Client compatibility
Based on the transports each client documents as supported; this is not a live test inside the client.
| Client | Documented transports | This server | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepted | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepted | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepted | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepted | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepted | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepted | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepted | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepted | doc |
Ready-to-copy configs
Remote address used: https://console.openfactory.tech/api/mcp-stream/plugin/mcp. Formats taken from each client’s documentation.
claude mcp add --transport http openfactory https://console.openfactory.tech/api/mcp-stream/plugin/mcpCustomize > Connectors > + Add > Add custom connector ; Name : openfactory ; URL : https://console.openfactory.tech/api/mcp-stream/plugin/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : openfactory ; Server URL : https://console.openfactory.tech/api/mcp-stream/plugin/mcp ; Create as a plugin{
"mcpServers": {
"openfactory": {
"url": "https://console.openfactory.tech/api/mcp-stream/plugin/mcp"
}
}
}{
"mcpServers": {
"openfactory": {
"type": "http",
"url": "https://console.openfactory.tech/api/mcp-stream/plugin/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"openfactory": {
"url": "https://console.openfactory.tech/api/mcp-stream/plugin/mcp"
}
}
}{
"mcpServers": {
"openfactory": {
"httpUrl": "https://console.openfactory.tech/api/mcp-stream/plugin/mcp"
}
}
}[mcp_servers.openfactory]
url = "https://console.openfactory.tech/api/mcp-stream/plugin/mcp"Cite this source
Writing an article or comparison? This entry distinguishes registry information from our measurements. Cite the permanent link and the test date; an OK result is not a security audit or an availability guarantee.
OpenFactory · L’Atlas · Tested on
[OpenFactory — L’Atlas](https://latlas.dev/en/mcp/tech.openfactory/openfactory)Source : Registre officiel MCP · retrieved 29 Nov 2026. L’Atlas adds no data beyond this source and its own tests.