openreality-mcp

v0.4.0
openreality-mcp Checked 6 hours ago Published 1 month ago

Open Reality OS as MCP tools: drive scan upload, reconstruction, scene query, scene agents, and robot-training exports from Claude Code, Claude desktop, Codex…

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

workspace_list_scenes List scenes in the account

List all persisted scenes in the signed-in Open Reality account (newest first). Also reports which scan_ids are NEW since this machine last listed — the account is the sync layer: scans made on the phone or the web appear here. Use scene_card next for anything you want context on.

ParameterTypeDescription
since_epoch_snumberOnly return scenes created at/after this epoch-seconds timestamp

workspace_upload_video Upload a video for reconstruction

Upload a local video file (.mp4/.mov/.avi/.mkv/.webm, ≤1 GB) into the account and start a reconstruction job. Returns {job_id, scan_id} immediately (202); follow with workspace_job_wait. The scene appears in workspace_list_scenes when the job is done.

ParameterTypeDescription
path *stringAbsolute path of the local video file
labelstringHuman label for the scene (X-Scene-Label)
sourcestringSet ONLY for depth-camera footage (X-Demo-Source provenance tag)

workspace_upload_recording Upload a robot recording

Upload a robot recording (DimOS memory2 .db, ≤2 GB) into the account. Runs the recordings pipeline (recon → odometry-consistency score → QC gate); the scene persists as source="robot_recording" with the QC report under derived/demo/recordings/. Returns {job_id, scan_id}; follow with workspace_job_wait.

ParameterTypeDescription
path *stringAbsolute path of the local .db recording

workspace_upload_splat Import a Gaussian splat

Import a local .ply/.spz Gaussian splat as a scene (source="imported_splat", honestly degraded report). ≤64 MiB uploads inline and returns {scan_id, gaussian_count} synchronously; larger files go through the chunked lane and return {job_id, scan_id} to poll with workspace_job_wait. Non-gaussian PLYs are refused (422 not_a_gaussian_splat).

ParameterTypeDescription
path *stringAbsolute path of the local .ply or .spz file
labelstringHuman label for the scene

workspace_job_status Check a workspace job

One status read of an ingest/export job (GET /api/workspace/jobs/<job_id>): {status: queued|running|done|error, stage?, scan_id?, error?}.

ParameterTypeDescription
job_id *string

workspace_job_wait Wait for a workspace job

Poll an ingest/export job until it is done or errored (or the timeout passes). Returns the final status plus the stage trail observed.

ParameterTypeDescription
job_id *string
poll_snumber
timeout_snumber

scene_card Scene context card

The Tier-1 context card for a scene: source, metric/anchor state, room + summary, closed-world object inventory, ground frame, and workspace artifacts (agent runs, measurements, paths). Small by design — pull details with the other scene tools.

ParameterTypeDescription
scan_id *string

scene_list_objects List scene objects

The closed-world object inventory from the persisted record (facts.objects): model query, operator relabel, confidence, world center/extent. These uids/labels are the ONLY objects that exist — never invent others.

ParameterTypeDescription
scan_id *string
include_dismissedboolean

scene_measure_distance Measure a distance

Distance between two WORLD-frame points (POST /measure). The response units are "m" ONLY when the scene has a metric anchor — otherwise "relative". ALWAYS report the units and scale_source with the value; never say metres for relative units.

ParameterTypeDescription
point_a *array
point_b *
scan_id *string

scene_measure_angle Measure an angle

Angle at the vertex (second point) of three WORLD-frame points (POST /measure, kind=angle). Returns degrees.

ParameterTypeDescription
points_world *array
scan_id *string

scene_plan_path Plan a robot path

Plan a path through scanned free space to an object (by uid) or a world point (POST /nav/plan). Provide exactly one of object_uid | point_world. Honest failures: 422 no_geometry / no_floor / unreachable_goal (with a nearest-reachable suggestion). The response provenance line ("not certified navigation") must ride along with any use. The per-frame camera flythrough (poses) is left on disk by default and the waypoint list comes back as an evenly-sampled preview — both counts and the full-trajectory artifact key ride along; artifact_fetch(doc_key) for the whole thing.

ParameterTypeDescription
scan_id *string
clearancenumber
include_posesbooleanInline the per-frame 4x4 c2w flythrough (large — one pose per frame)
max_waypointsintegerCap on waypoints returned inline; the plan is sampled evenly to fit
object_uidstring
point_worldarray
start
up_overridestring

scene_planes Detect floor/wall planes

Floor + wall plane candidates from the scene geometry (POST /planes; cached per-scene). Used for restyle scoping and understanding room structure.

ParameterTypeDescription
scan_id *string
forcebooleanRecompute even when a cached result exists
max_wallsinteger

scene_ground_frame Read the ground frame

Read the recorded floor/ceiling frame (GET /ground_frame). If vertical_axis_known is false, the numbers are ABSENT on purpose — say so rather than guessing heights.

ParameterTypeDescription
scan_id *string

scene_ground_frame_fit Fit the ground frame

(Re)fit the floor plane and write the result onto the scene metrics (POST /ground_frame). dry_run=true computes without persisting.

ParameterTypeDescription
scan_id *string
dry_runboolean

scene_anchor Anchor the scene to metres

Metric-anchor calibration (POST /anchor): two picked world points + their real distance in metres. Non-destructive (writes NEW derived/anchor/* artifacts + the derived_latest pointer) and it is what unlocks units:"m" for measure/nav/export. materialize:"job" returns 202 with a job_id to poll via workspace_job_wait.

ParameterTypeDescription
distance_m *number
point_a *array
point_b *
scan_id *string
materializestring

scene_keyframe_image Fetch a keyframe image

One capture keyframe as an image (GET /keyframes/<blob_key>). blob_key comes from the scene detail keyframes[] refs. Real capture photos — cite as photo evidence.

ParameterTypeDescription
blob_key *string
scan_id *string

scene_synthetic_views List synthetic views

Renders of the scene's own splat registered as evidence (GET /synthetic_views). These are NOT photographs — always carry the "synthetic view" provenance when citing.

ParameterTypeDescription
scan_id *string

scene_synthetic_view_image Fetch a synthetic view image

One synthetic view PNG (a RENDER of the splat, not a photo — say so when citing).

ParameterTypeDescription
scan_id *string
view_id *string

scene_lod LOD status

Level-of-detail index status for the scene splat (GET /lod). Always 200 — read `status` (ready|none|running|error|not_needed).

ParameterTypeDescription
scan_id *string

scene_lod_build Build LOD variants

Spawn the LOD decimation job (POST /lod → 202 {job_id}; 409 lod_job_active when one is already running). Poll with workspace_job_wait.

ParameterTypeDescription
scan_id *string

scene_imported_objects Imported-splat objects status

Status of geometry-derived objects for an imported splat (GET /imported_objects).

ParameterTypeDescription
scan_id *string

scene_imported_objects_run Cluster imported-splat objects

Cluster an imported splat's geometry into facts.objects (POST /imported_objects). Labels carry geometry/synthetic-view provenance — confidence 0.0 is honest, not a bug.

ParameterTypeDescription
scan_id *string

scene_object_complete Complete an object to 3D

SAM-3D-Objects mesh completion for a segmented object (POST /objects/<uid>/complete → 202 {job_id}, broker-thread lane). Poll with scene_job_wait. Output is GENERATED geometry (honesty envelope in the artifact meta.json).

ParameterTypeDescription
scan_id *string
uid *string

scene_object_variants Generate object variants

TRELLIS variant generation for a completed object (POST /objects/<uid>/variants → 202 {job_id}). Optional body fields pass through (see server docs). GENERATED assets.

ParameterTypeDescription
scan_id *string
uid *string
bodyobjectOptional route body passthrough

scene_segment Segment an object (advanced)

SAM-3 click segmentation (POST /segment). Advanced: the body must match the server contract (click point + view selection — see routes_sam3d.py / the OS UI). Provided as a raw passthrough so the full surface stays reachable.

ParameterTypeDescription
body *objectRaw request body for the segment route
scan_id *string

scene_job_status Check a scene job

One status read of a broker-thread scene job (SAM-3D completion, variants, view renders). NOTE: these jobs honestly 404 across a broker restart.

ParameterTypeDescription
job_id *string
scan_id *string

scene_job_wait Wait for a scene job

Poll a broker-thread scene job until done/error/timeout.

ParameterTypeDescription
job_id *string
scan_id *string
poll_snumber
timeout_snumber

scene_share_access What each share link was used for

Owner-only read of the share-link access log (GET /share/access): per minted link (access_id) — opened, request count, visits (new visit after 30 min idle), first/last seen, returned (a visit >= 24 h after the first), devices, and the Q&A questions the viewer asked. This is the behavioural evidence for customer discovery (L5 = returned). Match access_id to the person you sent the link to. events:true appends the raw event list.

ParameterTypeDescription
scan_id *string
eventsboolean

scene_share Mint a read-only share link

Mint a read-only, single-scene share token + embed URL (POST /share; default TTL 30 days). Share tokens can NEVER reach the OS feature routes — viewer only.

ParameterTypeDescription
scan_id *string
ttl_secondsinteger

agent_annotate Run the annotation agent

Start the five-phase scene annotation run (survey → labels → description → dimensions → key features) on the server-side scene agent. 202 {run_id}; one active run per scene (409 agent_run_active carries active_run_id — or set attach_if_active). Costs bounded server-side LLM calls. Follow with agent_run_events wait_for_done.

ParameterTypeDescription
scan_id *string
attach_if_activeboolean

agent_replay Replay a recorded run

Re-serve a recorded run's persisted event log as a new (replay-badged, $0) run. Use for reviewing what an earlier run found without spending LLM calls.

ParameterTypeDescription
scan_id *string
source_run_id *string
speednumber

agent_pilot Run the pilot agent

Give the pilot agent a free-text instruction (navigate/inspect flows; tools: list_scene_objects, plan_path, measure_distance). 202 {run_id}; poll agent_run_events.

ParameterTypeDescription
instruction *string
scan_id *string

agent_chat Chat with the scene agent

One chat turn with the scene agent (its own bounded run; the server agent may call its scene tools mid-turn). By default waits for the run to finish and returns the event transcript. The agent's numbers carry units/scale_source — repeat them honestly.

ParameterTypeDescription
message *string
scan_id *string
poll_snumber
run_idstringAttach to a prior run's context
timeout_snumber
waitboolean

agent_run_events Read run events

Read a run's event log from a cursor (GET /runs/<run_id>/events?after=). With wait_for_done, polls at ~1 Hz (the web client's cadence) until the run finishes.

ParameterTypeDescription
run_id *string
scan_id *string
afterinteger
poll_snumber
timeout_snumber
wait_for_doneboolean

agent_runs List agent runs

The scene's run index (newest first) + which run is live: kind, status, cost_usd, llm_calls, findings. Persisted runs can be replayed for $0 with agent_replay.

ParameterTypeDescription
scan_id *string

export_manifest Export dry-run manifest

What an export WOULD contain (GET /demo/export/manifest): file tree + sizes, complete/absent components, and whether the zip route would work. No build, no writes. Formats: openreality | groot_lerobot_v2 | isaac_usd | mujoco_mjcf (the simulator formats isaac_usd / mujoco_mjcf are metric-gated — they need an anchor).

ParameterTypeDescription
format *string
scan_id *string
sourcestring'original' (default) or a derived/... key

export_prepare Build an export

Build the export zip as a background job (POST /demo/export/prepare → 202 {job_id}; 409 export_job_active when one is running). With wait=true (default) polls the job and returns the prepared artifact (including download_path). Then artifact_fetch it. For MuJoCo prefer export_mujoco, which also downloads and unpacks the scene.

ParameterTypeDescription
format *string
scan_id *string
poll_snumber
sourcestring
timeout_snumber
waitboolean

export_status Prepared-export status

What is prepared for scene+format (GET /demo/export/prepared). Always 200 with {status: ready|running|error|none}; ready carries the artifact + download_path.

ParameterTypeDescription
format *string
scan_id *string
sourcestring

export_mujoco Export the scene to MuJoCo

One call from scene to a loadable MuJoCo model: builds (or reuses a fresh) mujoco_mjcf export, downloads it and unpacks it to disk, and returns the path to scene.xml — load it with mujoco.MjModel.from_xml_path(path) or `python -m mujoco.viewer --mjcf=<path>` (needs mujoco>=3.3). METRIC-GATED: an un-anchored scene is refused with 409 metric_scale_required — run scene_anchor first. Collision is primitives only (a floor plane + one upright box per detected object); the scan mesh is visual-only. A fresh build meshes the scene on a 64 GB container and takes minutes. Bytes never enter context.

ParameterTypeDescription
scan_id *string
forcebooleanRebuild even when a fresh export is already prepared
out_dirstringAbsolute directory to unpack into (default <artifacts_dir>); the scene lands in <out_dir>/<scan_id>/mujoco/
poll_snumber
sourcestring'original' (default) or a derived/... key
timeout_snumber

artifact_fetch Fetch a derived artifact to disk

Download any derived/... artifact (export zips, LOD levels, agent run logs, QC reports, masks) to a local file and return the path — bytes NEVER go into context. Default target: <artifacts_dir>/<scan_id>/<key>.

ParameterTypeDescription
derived_key *stringA derived/... key (from manifests, pointers, job results)
scan_id *string
out_pathstringAbsolute path override for the output file

artifact_fetch_splat Fetch the scene splat to disk

Download the scene's original splat.ply to a local file and return the path. For a render-sized variant prefer the LOD levels (scene_lod → artifact_fetch of a level key).

ParameterTypeDescription
scan_id *string
out_pathstring

artifact_fetch_cloud Fetch the scene point cloud to disk

Download the scene's cloud.ply to a local file and return the path.

ParameterTypeDescription
scan_id *string
out_pathstring