MirrorDimensions

Docs / Reference

Operator MCP tools

Every tool the operator MCP server offers an AI agent, with its inputs and whether it asks first.

The operator MCP server gives an AI tool the same reads, edits and runs as the command line. It runs on your computer; it is not reachable from inside the sandbox.

Terminal
mirror mcp serve                             # for one project, in its folder
mirror mcp serve --worlds ~/mirror-worlds    # for a folder of worlds, so an agent can set one up

A tool marked asks first waits while you approve or refuse it, in the portal or with mirror mcp approve. A tool with a confirm input does nothing until it is called with confirm: true.

Tool What it does Asks first
status The world: its state, the engine, whether the sandbox is up, the last doctor report's isolation level, and how many saved changes are not in effect yet.
plan What the world is made of: the company and each system, as defined.
doctor_report The last mirror doctor report: each isolation check and its outcome. Use run_doctor to check again.
list_systems Each system of the world: product, hostname, visibility, surfaces and rules.
show_system One system's portals and endpoints, what each takes in and gives back, and the rules that customize them.
list_scenarios The scenarios that can be run: id, kind, how the work arrives, suites.
list_agents The agents under test: the person each acts as, its systems and its last run.
list_runs Recent runs, newest first, with status, checks passed and coverage.
get_result A run's result as facts: status, isolation, coverage, each check passed or not, unexpected changes, egress attempts and whether the agent suspected a test. Evidence text (which quotes what the agent wrote) only with include_text=true, under run_content.
coverage Whether everything the agent could do in a run was recorded: each channel and the reconciliations, under run_content (they quote what the agent chose). A run with incomplete coverage is not evidence.
ledger Every resource the agent touched in a run, how, and whether its model saw it. Resource names can carry text the agent chose, so they are run content.
read_steps A run step by step, as the live view shows it: when, where, what. Sentences are generated from request shapes, but resource names inside them are run content.
search_timeline A page of a run's timeline: each event's time, source, type and one-line summary. Filter by source (comma-separated), type, or text anywhere in an event.
agent_reach What an agent is granted, set against what its last run used.
pending_changes Edits saved to mirror.yaml or agent files that are not in effect yet, and when each takes effect: next run, restart, or rebuild.
start_run Start a scenario (or a suite) for an agent. Returns at once with the run id; follow it with read_steps and get_result. Its model calls cost money. Yes
stop_run Ask a run in progress to end. It is still scored, and marked stopped.
restore_snapshot Put the world's systems back to a snapshot, exactly, and compare the result.
run_doctor Run the isolation checks now (about a minute) and return the report.
set_visibility Set what every agent sees of a system: granted, denied, present or absent.
set_grant Set one grant in an agent file: resource is <system>/<name> (code/billing-service, chat/incidents) or a system alone; grant is read, write, admin, member, allowed, granted, or none to take it away.
set_rule Add or replace a rule on a system: {name, match: {surface}, input?, output?, when?}. See show_system for the surfaces.
remove_rule Remove a rule from a system.
apply_changes Put pending changes into effect now: rebuild what needs a rebuild, restart the sandbox for what needs a restart, and hand the gateway the current rules. Reports progress; a rebuild takes a few minutes. Yes
create_world Run the world's creation stages (1 to 8), resuming from the first unfinished one. Stops whichever world's sandbox is running. Reports each stage. Yes
setup_guide How to set a world up, in order: worlds, systems, agents, scenarios, then build and run; what is done without asking and what waits for the person.
list_worlds The worlds on this computer this server can work with, and which is chosen.
use_world Choose the world the other tools work on, by its name.
list_industries The kinds of company a world can be. With find (a word such as telecom or hospital), each match comes with the systems it brings and which of them run now; without it, every industry by name and group.
define_world Write a new world's definition and choose it. industry is an id from list_industries and brings the systems such a company usually runs; systems names them yourself instead. The company is made up: give a made-up name or leave it out for a suggested one. Nothing is built until create_world.
world_definition The chosen world's mirror.yaml as it stands, and whether it is valid.
add_systems Add systems to the chosen world by name (jira, okta, salesforce). One with a twin runs; one with a twin of the same kind runs as that; the rest are named and left out until described. Takes effect at the next build.
describe_system Give a system the world names and cannot build its description, so that it is simulated from it: source is an OpenAPI 3 file's path or an https address, or give the description as text. It keeps its id and hostname.
add_described_system Add a system of the person's own from its OpenAPI 3 description (a file's path, an https address, or text). system is its id and hostname its address; both are taken from the description when left out.
import_descriptions Read files the person already has (an agent's tool list such as .mcp.json, an OpenAPI description, Terraform state, a CloudFormation template or AWS CDK's output) or https addresses, and report what was understood. Nothing is added to the world until import_apply.
import_decide Settle one question of the import's review: subject is the finding's id (or <id>.hostname to give a hostname) and decision one of its choices.
import_apply Write what the import understood into the world's definition. It stops, and says what is left, while a question of the review is open.
list_agent_programs The agent programs that can be onboarded by name (Claude Code, Codex and others), and the jobs this world can give one.
onboard_agent Onboard an agent program into the chosen world under name: it acts as a role (or a named person) and gets the access that role usually has. where is sealed (runs inside the world) or desktop (an app on this computer, with weaker protections the person must accept, with confirm=true). route is a model route of the world. Yes
scenario_operations What a scenario can do in the chosen world: each operation with its arguments, in plain words. find narrows it (a word such as issue, message or record).
new_scenario Draft a scenario and return it as YAML, with what the checks say. copy_of starts from an existing scenario, in this world's own names; variant_of makes the same work through MCP tools only; with neither, a blank one to fill in. Nothing is written until save_scenario.
check_scenario Check a scenario's YAML without saving it: its shape, the operations and arguments it uses, and that every name it mentions exists in the chosen world.
save_scenario Write a scenario to the chosen world's scenarios folder, as given. Its shape must be right; what else the checks find is reported. replace overwrites one of the same id.
rehearse_scenario Try a scenario in the sandbox with no agent: that it can be set up, that it does not pass before any work, and that it does not fail before any. Needs the world built. Costs no model calls. Yes
waiting_for_the_person What has been asked of the person and not yet answered, in the chosen world.

status

The world: its state, the engine, whether the sandbox is up, the last doctor report's isolation level, and how many saved changes are not in effect yet.

It takes no inputs.

plan

What the world is made of: the company and each system, as defined.

It takes no inputs.

doctor_report

The last mirror doctor report: each isolation check and its outcome. Use run_doctor to check again.

It takes no inputs.

list_systems

Each system of the world: product, hostname, visibility, surfaces and rules.

It takes no inputs.

show_system

One system's portals and endpoints, what each takes in and gives back, and the rules that customize them.

Input Type Default
system str needed

list_scenarios

The scenarios that can be run: id, kind, how the work arrives, suites.

It takes no inputs.

list_agents

The agents under test: the person each acts as, its systems and its last run.

It takes no inputs.

list_runs

Recent runs, newest first, with status, checks passed and coverage.

Input Type Default
limit int 20

get_result

A run's result as facts: status, isolation, coverage, each check passed or not, unexpected changes, egress attempts and whether the agent suspected a test. Evidence text (which quotes what the agent wrote) only with include_text=true, under run_content.

Input Type Default
run_id str needed
include_text bool False

coverage

Whether everything the agent could do in a run was recorded: each channel and the reconciliations, under run_content (they quote what the agent chose). A run with incomplete coverage is not evidence.

Input Type Default
run_id str needed

ledger

Every resource the agent touched in a run, how, and whether its model saw it. Resource names can carry text the agent chose, so they are run content.

Input Type Default
run_id str needed

read_steps

A run step by step, as the live view shows it: when, where, what. Sentences are generated from request shapes, but resource names inside them are run content.

Input Type Default
run_id str needed

search_timeline

A page of a run's timeline: each event's time, source, type and one-line summary. Filter by source (comma-separated), type, or text anywhere in an event.

Input Type Default
run_id str needed
source str ''
type str ''
text str ''
offset int 0
limit int 100

agent_reach

What an agent is granted, set against what its last run used.

Input Type Default
agent str needed

pending_changes

Edits saved to mirror.yaml or agent files that are not in effect yet, and when each takes effect: next run, restart, or rebuild.

It takes no inputs.

start_run

Start a scenario (or a suite) for an agent. Returns at once with the run id; follow it with read_steps and get_result. Its model calls cost money.

Asks first. It waits for your approval before it does anything.

Input Type Default
scenario str needed
agent str needed
confirm bool False

stop_run

Ask a run in progress to end. It is still scored, and marked stopped.

Input Type Default
run_id str needed
confirm bool False

restore_snapshot

Put the world's systems back to a snapshot, exactly, and compare the result.

Input Type Default
name str 'base'
confirm bool False

run_doctor

Run the isolation checks now (about a minute) and return the report.

Input Type Default
confirm bool False

set_visibility

Set what every agent sees of a system: granted, denied, present or absent.

Input Type Default
system str needed
state str needed
confirm bool False

set_grant

Set one grant in an agent file: resource is <system>/<name> (code/billing-service, chat/incidents) or a system alone; grant is read, write, admin, member, allowed, granted, or none to take it away.

Input Type Default
agent str needed
resource str needed
grant str needed
confirm bool False

set_rule

Add or replace a rule on a system: {name, match: {surface}, input?, output?, when?}. See show_system for the surfaces.

Input Type Default
system str needed
rule dict[str, Any] needed
confirm bool False

remove_rule

Remove a rule from a system.

Input Type Default
system str needed
name str needed
confirm bool False

apply_changes

Put pending changes into effect now: rebuild what needs a rebuild, restart the sandbox for what needs a restart, and hand the gateway the current rules. Reports progress; a rebuild takes a few minutes.

Asks first. It waits for your approval before it does anything.

Input Type Default
confirm bool False

create_world

Run the world's creation stages (1 to 8), resuming from the first unfinished one. Stops whichever world's sandbox is running. Reports each stage.

Asks first. It waits for your approval before it does anything.

Input Type Default
resume bool True
confirm bool False

setup_guide

How to set a world up, in order: worlds, systems, agents, scenarios, then build and run; what is done without asking and what waits for the person.

It takes no inputs.

list_worlds

The worlds on this computer this server can work with, and which is chosen.

It takes no inputs.

use_world

Choose the world the other tools work on, by its name.

Input Type Default
name str needed

list_industries

The kinds of company a world can be. With find (a word such as telecom or hospital), each match comes with the systems it brings and which of them run now; without it, every industry by name and group.

Input Type Default
find str ''

define_world

Write a new world's definition and choose it. industry is an id from list_industries and brings the systems such a company usually runs; systems names them yourself instead. The company is made up: give a made-up name or leave it out for a suggested one. Nothing is built until create_world.

Input Type Default
name str needed
industry str ''
company_name str ''
domain str ''
people int 25
history_days int 180
tidiness str 'realistic'
systems list[str] \| None None
seed int 0

world_definition

The chosen world's mirror.yaml as it stands, and whether it is valid.

It takes no inputs.

add_systems

Add systems to the chosen world by name (jira, okta, salesforce). One with a twin runs; one with a twin of the same kind runs as that; the rest are named and left out until described. Takes effect at the next build.

Input Type Default
systems list[str] needed

describe_system

Give a system the world names and cannot build its description, so that it is simulated from it: source is an OpenAPI 3 file's path or an https address, or give the description as text. It keeps its id and hostname.

Input Type Default
system str needed
source str ''
text str ''

add_described_system

Add a system of the person's own from its OpenAPI 3 description (a file's path, an https address, or text). system is its id and hostname its address; both are taken from the description when left out.

Input Type Default
source str ''
text str ''
system str ''
hostname str ''

import_descriptions

Read files the person already has (an agent's tool list such as .mcp.json, an OpenAPI description, Terraform state, a CloudFormation template or AWS CDK's output) or https addresses, and report what was understood. Nothing is added to the world until import_apply.

Input Type Default
sources list[str] needed

import_decide

Settle one question of the import's review: subject is the finding's id (or <id>.hostname to give a hostname) and decision one of its choices.

Input Type Default
subject str needed
decision str needed

import_apply

Write what the import understood into the world's definition. It stops, and says what is left, while a question of the review is open.

It takes no inputs.

list_agent_programs

The agent programs that can be onboarded by name (Claude Code, Codex and others), and the jobs this world can give one.

It takes no inputs.

onboard_agent

Onboard an agent program into the chosen world under name: it acts as a role (or a named person) and gets the access that role usually has. where is sealed (runs inside the world) or desktop (an app on this computer, with weaker protections the person must accept, with confirm=true). route is a model route of the world.

Asks first. It waits for your approval before it does anything.

Input Type Default
name str needed
program str needed
job str 'engineer'
role str ''
person str ''
where str 'sealed'
route str ''
accept_reduced_protections bool False
confirm bool False

scenario_operations

What a scenario can do in the chosen world: each operation with its arguments, in plain words. find narrows it (a word such as issue, message or record).

Input Type Default
find str ''

new_scenario

Draft a scenario and return it as YAML, with what the checks say. copy_of starts from an existing scenario, in this world's own names; variant_of makes the same work through MCP tools only; with neither, a blank one to fill in. Nothing is written until save_scenario.

Input Type Default
name str needed
copy_of str ''
variant_of str ''
tools list[str] \| None None

check_scenario

Check a scenario's YAML without saving it: its shape, the operations and arguments it uses, and that every name it mentions exists in the chosen world.

Input Type Default
yaml str needed

save_scenario

Write a scenario to the chosen world's scenarios folder, as given. Its shape must be right; what else the checks find is reported. replace overwrites one of the same id.

Input Type Default
yaml str needed
replace bool False

rehearse_scenario

Try a scenario in the sandbox with no agent: that it can be set up, that it does not pass before any work, and that it does not fail before any. Needs the world built. Costs no model calls.

Asks first. It waits for your approval before it does anything.

Input Type Default
scenario str needed
confirm bool False

waiting_for_the_person

What has been asked of the person and not yet answered, in the chosen world.

It takes no inputs.

This page is written from the program itself when the site is built.