Skip to main content
The Orka MCP server provides five tools for the VM lifecycle. To connect an agent, see Connect an AI agent to the Orka MCP server. Every tool acts as the service account whose token the agent presents, and only acts on VMs that service account created. A VM that another service account created behaves as if it doesn’t exist, even for an admin.

vm_deploy

Starts a macOS VM from an OCI image and waits, for up to 10 minutes, until it’s running and answers on SSH. It returns the VM, in the same form as vm_get. The following table lists the arguments. The server names the VM from the namespace, the service account, and the idempotency_key, so you don’t choose the name. That makes vm_deploy safe to retry:
  • A retry with the same key and arguments returns the same VM, and waits for it if it’s still starting. Retry this way after a timeout or a lost connection, instead of deploying a new VM.
  • A retry with the same key and different arguments fails with idempotency_key_conflict.
  • Once a VM is fully deleted, you can use its key again. While it’s still being deleted, a deploy with that key fails with internal. Wait a few seconds and retry.
If the deploy fails because the image can’t be pulled, no node can take the VM, or the VM never answers on SSH, the server deletes the VM. A VM that a retry found is never deleted, because the agent may already be using it.

vm_get

Returns one VM. The following table lists the arguments. The following table lists the fields in the result. The result doesn’t include SSH credentials. They come from the image.

vm_list

Lists the VMs this service account created, sorted by name. The following table lists the arguments. The result has vms, a list of VMs in the same form as vm_get, and next_cursor when there are more pages.

vm_push

Saves a running VM as an OCI image and pushes it to a registry. It returns right away, and the push runs in the background. To follow it, call vm_get and read push. The following table lists the arguments. The result is the VM’s name, namespace, and push, in the same form as vm_get reports it. Your namespace needs credentials for the target registry. Add them with orka regcred add. See Manage OCI registry credentials in Orka. vm_push is safe to retry: a retry while that VM’s push to the same image is still running returns that push. A push to a different image while one is running fails with push_in_progress.

vm_delete

Deletes a VM. The following table lists the arguments. The result is the VM’s name and namespace. vm_delete is safe to retry: it returns the same result whether it deleted the VM, the VM was already gone, or another service account created it. It returns once Orka accepts the delete, and Orka finishes removing the VM afterward.

Errors

A failed tool call returns an MCP tool error. Its text starts with a code, followed by a message, for example vm_not_found: no VM named "ci-1" in namespace "orka-default" was created by this service account. The following table lists the codes. A call with a missing required argument, such as vm_get without name, is rejected before the tool runs. Its error text starts with validating "arguments". A request with a missing or rejected token doesn’t reach the tools at all: the server answers with HTTP 401, which your MCP client reports as an authentication error.