Skip to main content

Capability Matrix — Phase 1

Status: Phase 1 (v0.1). What MetaForge can do today, what it can't yet, and where each capability is exercised end-to-end. Last verified against main on 2026-06-14.

If you want a feature: search this page first. If it's missing, it's either Phase 2/3 (see roadmap.md) or genuinely not on the roadmap — file an issue.

MCP tools (154 across 26 adapters)​

The standalone MCP server (python -m metaforge.mcp --transport stdio) loads adapters listed in the METAFORGE_ADAPTERS env var. Default is knowledge,twin,constraint,cadquery,calculix (32 tools). FreeCAD, KiCad, Gazebo, the OpenUSD conversion adapter, the SimReady asset adapter, and Isaac Sim are opt-in; project, memory, and session are runtime-injected (registered when the gateway supplies their backend).

One hundred fifty-five of the 162 are described in the table below. The seven that are not yet — cadquery.validate_physics_stability, twin.propose_change and the five twin.commit_* document tools (compliance_checklist, design_sketch, hazard_analysis, procurement_record, technical_drawing) — are registered and callable; they simply have no row here yet. Every one of the 162 does carry an MCP annotation (see below), because that set is checked against the registry by a test rather than maintained by hand.

Tool profiles​

All 100 tools are served by default. Every MCP client caps how many tools it will carry, though, and the ones that do not error simply drop the overflow — which leaves the model behaving as though the missing capability does not exist.

--profile serves a named subset instead:

ProfileToolsFor
core40Projects, sessions, twin reads, the records that are not domain-specific, and the design-flow lifecycle tools, renders of a work product (twin.render_work_product; run.get_status made room for it, flow.status covers a run's state), the pending approvals (approvals.list, approvals.decide; the two memory.* tools made room and stay in all), and files in and out from any client (files.import, files.request_upload, files.link; twin.compute_hierarchy_rollup, twin.evaluate_metric and twin.record_hierarchy_node made room and stay in all)
mechanical39CAD authoring across both kernels, plus geometry commit, renders of what was modelled (twin.render_work_product), bought parts' models from NVIDIA SimReady (simready.search, simready.inspect, simready.import, recorded with twin.record_design_files), and a supplier's native CAD converted to STEP and measured through Zoo (zoo.convert, zoo.get_conversion, zoo.mass_properties; served only where ZOO_API_TOKEN is set)
simulation35FEA (including twin.run_item_fea, mesh then solve on a CAD item), circuit simulation (spice.run_simulation), steady internal flow (openfoam.run_internal_flow), load cases, meshes and the evidence they produce, including twin.record_document to record a simulation_result or load_case
electronics34Phase 1: schematic and board checks, fabrication exports (Gerber, drill, pick-and-place, BOM), component search, sourcing, the per-rail power budget (power.check_budget), circuit simulation (spice.run_simulation), building, checking and emulating firmware (firmware.build, firmware.static_check, firmware.run_emulated), and keeping the firmware project and pin map in the twin (twin.record_design_files). kicad.export_netlist and knowledge.populate_bom left it to keep the phases that draw on it within budget
pcb_design40Phase 2 board design: schematic, board and routing generated from a circuit (kicad.generate_schematic, kicad.generate_pcb, kicad.autoroute_pcb), an existing board edited and re-routed (kicad.edit_pcb), an agent's own upload decided under the owner's delegation (files.decide_upload), the board's 3D model and renders (kicad.export_3d, kicad.render_pcb), component updates (kicad.update_components), the checks and fabrication exports run on the result, and the schematic, board, gerbers and placement kept in the twin (twin.record_design_files). Kept apart from electronics, which would otherwise pass the 40-tool cap
robotics39Assemblies, URDF/SDF/USD export, simulators, and robot arms, grippers and cell equipment from NVIDIA SimReady with their physics (simready.*, twin.record_design_files)
mechanical_product36A mechanical product end to end: the FreeCAD session tools (open, sketch, pad/pocket, assembly, export, close), geometry commit, component selection. No promotion tool: promotion is a human authority
manufacturing38Choosing a process before design and the DFM review after it: web and knowledge sourcing, component search, the machine library reads (library.list_machines, library.get_machine, library.machine_limits), library.process_limits (a library process's rules as DFM limits; the chosen processes and materials are already in the flow context), vendor quotes and handoffs (vendor.list_connectors, vendor.quote, vendor.handoffs; ordering is not in any capped set), a rough cost estimate (cost.estimate_manufacturing), the geometry reads a DFM check can use (freecad.measure, freecad.describe_model, freecad.describe_session, freecad.list_named_faces, twin.evaluate_overhang_metric) and the records. The manufacturing context, DFM report and release checklist tools (twin.get_manufacturing_context, twin.state_manufacturing_context, twin.get_dfm_report, twin.get_release_checklist) stay in all: the route selection phase is at the phase budget, and its flow context already carries the context. No CAD authoring
industrial_design37Industrial design: renders of a work product in its appearances (twin.render_work_product), the appearance library (library.list_appearances, library.get_appearance, library.register_appearance, library.update_appearance), the ergonomic limits (library.list_ergonomic_limits, library.get_ergonomic_limit), materials, process and machine limits for what a finish or a wall can be, model measurement (freecad.measure, freecad.describe_model, freecad.describe_step_file) and value sourcing for ergonomic limits (web, knowledge.extract). No CAD authoring: the envelope it fixes is what mechanical design draws
prototyping40A printable part from a prompt, an image or a supplier's file: generative meshes (all six tripo.* tools, meshy.text_to_3d, meshy.image_to_3d, meshy.get_task, meshy.download), conversion and mass properties (zoo.*), slicing with PrusaSlicer (slicer.slice, slicer.list_profiles), Slant 3D print-farm analysis and quotes (slant3d.analyze_part, slant3d.quote, slant3d.get_part, slant3d.list_filaments), STL export (cadquery.export_geometry), geometry commit and staging, renders, twin.record_document, and files in and out (files.import, files.request_upload, files.link; the machine library reads and slant3d.get_part made room and stay in all). The cloud tools are served only where their key is set; where a key is missing, the server reports them as unserved rather than silently dropping them. In no design-flow phase: manufacturing's phase is already at the phase budget
client_run38Driving a client-mode run on a harness with a hard tool cap: start and watch the run, phase.list_tasks/claim/submit, flow.await_gate, and value sourcing (knowledge.extract, web, component search, the records), and the machine library (library.list_machines, library.machine_limits). No CAD authoring or solvers: they do not fit beside these

all is not a capped set: it asks for every tool by name. It is for a client that loads tools lazily, such as Claude Code, which defers them behind its tool search. A client-mode run needs phase, gate, CAD, simulation and value-sourcing tools together, and no 40-tool set holds them all.

Each profile also includes health.check, so /metaforge:doctor works on the connection most likely to need it — a capped one, on a harness that truncates.

Choose it per connection, on the URL:

Code
http://localhost:8765/mcp?profile=mechanical

That is how the shipped plugin manifests ask for one: a manifest has no way to pass a command-line flag, and --profile is deployment-wide — one sidecar serves both a plugin and the dashboard chat, so shrinking it for one shrinks it for the other. The connection's own choice wins over the flag.

Terminal
# still available, as a deployment default
python -m metaforge.mcp --transport http --profile mechanical

The Claude Code packages ask for all out of the box: the HTTP plugin through its tool_profile user-config option, the stdio one through --profile all (no URL to hang a query on). They used to ask for core, which carried none of phase.*, flow.await_gate or knowledge.extract, so a client-mode run or value sourcing was impossible on the default install. Setting tool_profile to a capped set still works. The Codex package asks for core in its .mcp.json and config.toml together, because a harness with a hard cap truncates; switch it to client_run to drive a client-mode run there.

The sets live in mcp_core/profiles.py and are held between 20 and 40 tools by a test rather than trimmed at runtime — a profile that outgrows its ceiling is a decision about what to drop, and silently dropping it is the failure profiles exist to prevent.

An unknown profile name is refused, never resolved to "serve everything" (only the explicit name all does that): a client that asked for a 30-tool set and silently received 108 has been handed the exact problem profiles exist to prevent. As a start-up flag it stops the server; as a URL parameter it is an -32602 naming the profiles that do exist.

tools/list reports _meta.profile with the profile's name, how many tools were served and which of its tools no loaded adapter registers — a profile that looks small because an adapter is disabled is a configuration problem, not a smaller profile.

"No data" is not a pass​

A cross-domain check reports one of three things, not two:

StatusMeaning
passThe check ran and the design satisfies it
failThe check ran and the design does not
no_dataThe check could not run — the thing it inspects is not recorded

CrossDomainCheck.passed is true only for pass, so a gate reading it treats no_data as unsatisfied rather than as success. Whether missing data should block is the gate's decision; it cannot make that decision if the check has already claimed to pass.

This replaced nine checks that returned passed=True whenever the thing they inspected was absent. A project with no work products, no mounting holes, no thermal zones, no connectors, no weight budget and no power figures scored a clean cross-domain sweep — the emptiest project looked like the best one.

Two of them computed a verdict from absence rather than skipping: a PCB with no recorded dimensions became 0×0mm and fitted inside any enclosure, and components with no recorded weight contributed nothing to the budget they were being checked against. A no_data result now names the fields it is missing, because "no data" is only useful if it says which.

Asking the thread a question​

Two tools name the questions engineers actually ask:

ToolQuestion
twin.what_verifiesWhat evidence, tests or claims support this requirement?
twin.where_usedWhich assemblies or designs depend on this part?

twin.thread_for can answer both — but only if you know which way to walk. Traceability edges point child-to-parent (evidence satisfies a requirement), so a requirement is usually an edge target, and thread_for's default direction="outgoing" returns nothing for it. An empty subgraph reads as "nothing verifies this requirement" when the traversal simply went the wrong way.

These two encode the direction, because it is a property of the question rather than something the asker should have to know. Each restricts to its own edge types, so "what verifies this" does not also return everything that merely contains it.

An empty answer says so explicitly — verified: false, related_count: 0 and a note naming the edges walked and the direction — so it reads as "nothing is recorded" rather than "the tool did not work". thread_for stays available for an arbitrary walk.

MCP prompts​

Six curated workflows are served through prompts/list and prompts/get:

PromptWhat it does
usePick the project for this session and summarise where it stands
statusWhat is built, and which requirements are unverified
designDesign or revise a part, committed to the twin
feaRun a load case and record the evidence against the revision it came from
gateReview whether the project can be promoted
doctorCheck the connection, and what is unreachable

They are defined once, in mcp_core/workflows.py, and served twice: as MCP prompts to any spec-compliant client, and as slash commands in the generated Claude Code package. Two definitions would mean two harnesses getting different instructions for the same task, and the one that drifts being whichever nobody is currently testing.

An unknown prompt name lists the ones that exist, rather than rejecting bare — the caller cannot otherwise tell a typo from a server with no prompts at all.

MCP resources​

The server advertises resources on initialize and routes resources/list and resources/read. Resources use the metaforge:// scheme:

Code
metaforge://<adapter>/<kind>/<id>

A read routes on the adapter segment the URI already carries, rather than asking every adapter and taking the first match — that would make the answer depend on the order adapters happen to be constructed in, which no caller can see or control.

resources/list follows the same rule as tools/list: an adapter that cannot answer is reported under _meta.unavailableAdapters, never quietly dropped. A short resource list reads to a model as "that context does not exist".

Adapters have been able to register resources and the knowledge adapter already did — but the unified server used to dispatch neither method and advertise no capability, so a spec-compliant client got "Unknown method" and no way to learn they existed.

Project resources​

URIWhat it answers
metaforge://twin/brief/{project_id}What this project is and what has been built in it, newest work first, with recent requirement docs inline
metaforge://twin/hierarchy/{project_id}The product breakdown, with mass and cost rolled up the tree
metaforge://twin/requirements/{project_id}Requirements against the evidence that verifies them, with each row's live status
metaforge://twin/decisions/{project_id}Recorded decisions, their rationale and the alternatives considered
metaforge://twin/risks/{project_id}Recorded risk entities

The brief is the same one the chat harness gives its agent — one builder, two callers — so an MCP client and a chat agent are briefed identically and stay that way as it changes.

Each resource renders an existing source rather than computing anything new. A resource doing its own analysis would be a second opinion the dashboard and the gates do not share, and the one an agent reads would be the one nobody validated.

The requirement resource reports no_data as itself and states the count of requirements with no evidence at all. An unverified requirement must never read as a satisfied one — the same rule the cross-domain checks follow.

A project that does not exist is an error; a project that exists with nothing recorded returns a resource saying so. "No such project" and "nothing built yet" are different answers, and the second is the one an agent needs at the start of a session.

Grounding: citing what actually happened​

Every tools/call response carries a reference in _meta:

JSON
{
"content": [{"type": "text", "text": "{\"node\": \"n-1\"}"}],
"isError": false,
"_meta": {"callId": "7a619373979b4216"}
}

The same id is recorded against the action in the agent session, so a reply claiming "I committed the geometry" can name a call id — and that id either appears in the session timeline or the claim is unsupported. Without it, a grounded answer and an invented one read identically: both are prose, and a reviewer has no way to tell which is which.

Failed calls get a reference too. An agent claiming it tried something is as worth checking as one claiming it succeeded.

The id lives in _meta, not inside the text payload — the text is the tool's own output, and burying a protocol-level id in it would make every adapter's result schema wrong.

These claims are tested​

The guarantees on this page are checked against the HTTP app on every test run (tests/unit/test_documented_contract.py), not only against objects a test constructed.

That distinction is the whole reason the file exists. A guarantee this page stated and the server did not keep was found — writes from a remote caller were documented as held, and ran — and it survived because every test that touched it built the server directly, passing arguments the real transport never passed. The contract was verified everywhere except where it is assembled.

Approval-held writes​

A tool that writes is held for a human when the request comes from a remote caller, whatever client asked. The gate is on the MCP dispatch path itself, not in any client — a harness cannot opt out of it by not implementing it.

This used to exist only on the chat path: HarnessRuntime paused on requires_approval, and the MCP path consulted nothing. The same twin.commit_geometry was gated when a person asked in the dashboard and ungated when an external harness asked over MCP.

What is held is decided from the same annotations the client is shown (see above), so a tool cannot advertise readOnlyHint: true and be treated as a write, or the reverse. A tool nobody has classified is held.

CallerReadWrite
Local stdiorunsruns (see below)
Remote (OAuth identity)runsheld
Untrusted (tunnel, no identity)runsheld

Those last two rows used to never happen. caller defaulted to local and no transport ever set it, so every HTTP caller was treated as the engineer at the keyboard and the local-write exemption waved their writes through. The default is now untrusted — a default that is the most permissive value is how a guardrail goes missing quietly — and each transport declares what it is: stdio local, HTTP remote when the login identifies the caller and untrusted otherwise.

Held calls land in the same queue as chat approvals and appear on the dashboard's Approvals page, recorded with caller and source: mcp — the same write from a remote harness and from the dashboard are not the same request to whoever is deciding.

Every outcome other than an approval stops the call:

OutcomeMeaning
not_configuredThe server was told to hold writes and given no gate. Refused, never run.
rejectedA reviewer said no.
timed_outNobody answered inside the window: 180s when the client is sent progress, 100s when it is not (see Writes wait for a human).
cancelledThe hold was closed before anyone answered.

rejected and timed_out stay distinct because "a person said no" and "nobody was looking" need different words to an agent; all of them carry retryable: false.

Local stdio writes are exempt by default — unless the client can be asked. Not because local is trusted (the chat path holds local writes today) but because a stdio session historically had nowhere to answer: no dashboard is necessarily open. Holding with no way to approve is an outage, not a guardrail. A client that supports elicitation is somewhere to answer, so the exemption stops applying to it. Set exempt_local_writes=False to hold local writes even from clients that cannot be asked.

The Codex package​

integrations/codex/ carries a plugin manifest at .codex-plugin/plugin.json, a marketplace entry, an .mcp.json, the skills, and an AGENTS.md.

The format did not come from the documentation, which describes installing Codex plugins but not the manifest's filename, location or fields — the developer guide it links 404s. It came from codex-cli 0.118.0 itself: codex features list reports plugins stable true, and the binary embeds the scaffolding script that writes these files.

Manifest<plugin>/.codex-plugin/plugin.json
Marketplace.agents/plugins/marketplace.json
Entry source{"source": "local", "path": "./plugins/<name>"}
Install policyNOT_AVAILABLE | AVAILABLE | INSTALLED_BY_DEFAULT
Auth policyON_INSTALL | ON_USE

An entry's ./plugins/<name> resolves from the directory that contains .agents/, not from the marketplace file — so a home-rooted marketplace at ~/.agents/plugins/marketplace.json looks for ~/plugins/<name>.

It has been loaded and driven end to end against codex-cli 0.118.0 and 0.159.2 — the format survived that upgrade unchanged. Checked by driving codex app-server over stdio: plugin/list returns metaforge@metaforge with no marketplace load errors, plugin/read resolves all 30 skills plus mcpServers: ["metaforge"], plugin/install writes the entry into ~/.codex/config.toml, and Codex's own MCP client completes the handshake with the sidecar — server_info: Implementation { name: "metaforge-mcp" } at protocol 2025-06-18 — and reads its tools/list.

The agent then uses the tools, which is the part a manifest check misses. A read goes through: Codex called project.list and got a status: success envelope. A write is held: project.create was refused with -32001 / approval_required, caller classified untrusted, and a follow-up project.list came back empty, so the write did not run. That distinction is the whole guardrail — an error returned after the write would be worse than no guardrail, because it would look like it held.

The format is still taken from the program that reads it rather than from a published spec, so a future Codex upgrade can still move it: if /plugins stops showing the plugin, re-check the manifest against your version first. Wiring the MCP server up by hand via config.toml needs no plugin and is the path this repo has been running.

Reaching a local gateway from a hosted harness​

ChatGPT and claude.ai cannot reach localhost. forge tunnel up runs an off-the-shelf tunnel (cloudflared or ngrok, whichever is installed) and, first, checks the gateway is fit to be public:

Code
$ forge tunnel up --check-only
Refusing to open a tunnel:
- this gateway accepts unauthenticated connections. On your own machine
that is fine; through a tunnel it is an open endpoint on the internet.
Set METAFORGE_MCP_API_KEY (or configure OAuth) and restart it before
exposing it.

The pre-flight is the reason this is a command rather than a line in a README telling people to run cloudflared themselves. A tunnel does not change what the server enforces; it changes who can reach it, and the moment between "it worked locally" and "it is public" is exactly where nobody re-checks.

It refuses four things: nothing listening, something that is not a MetaForge gateway (tunnelling it would publish a stranger's service), a gateway that accepts unauthenticated connections, and — implicitly — an un-installed tunnel binary, which it will not install for you. A binary that opens a public hostname is something you should have chosen to have.

A passing check still warns that writes from a tunnelled caller are held for approval, so the first held write does not look like the tunnel breaking.

Installing it​

Code
/plugin marketplace add FidelOdok/MetaForge
/plugin install metaforge # connects to a gateway over HTTP
/plugin install metaforge-local # runs MetaForge here, no gateway

The first line needs .claude-plugin/marketplace.json at the repo root, which is where Claude Code looks and where every relative plugin source resolves from. Both READMEs had advertised that command since the packages existed and there was no marketplace file, so it failed — a documented install path with nothing behind it, which is worse than none because it is the first thing a new user does.

The catalog is generated by scripts/build_integrations.py alongside the packages, so the entries cannot drift from the directories they point at. A test checks each source resolves to a real plugin, and that the READMEs install a plugin this marketplace actually lists — the pairing that broke.

The other channels A1 names are not done, and are not blocked on this:

ChannelState
Claude Code marketplaceshipped
Codex /pluginsshipped, not verified end to end — see below
opencodeshipped as integrations/opencode/; loaded by opencode 2.2.5, sign-in not verified here (see opencode)
ChatGPT app directoryneeds a public HTTPS endpoint and OAuth, which is the tunnel/broker work
Hermes Skills HubMCP + skills; not yet packaged

Finding the gateway​

forge connect probes for a MetaForge gateway and prints the URL to put in the plugin's gateway_url setting. /metaforge:connect is the same thing from inside a harness — and, being a packaged command file rather than an MCP prompt, it still works when nothing is connected, which is the situation it exists for.

Code
Found a MetaForge gateway at http://fidel-dev:8765/mcp
version 0.1.0, MCP 2024-11-05

A candidate only counts when it names itself. The check is not "is something listening" — a dev machine has plenty of services, and another MCP server answers initialize perfectly happily. Only serverInfo.name == "metaforge-mcp" is a match. Reporting a random service would be worse than finding nothing: the user pastes it in and gets a stranger set of failures, further from the cause.

A 401/403 is a match. The URL is right and the token is the next step; saying "not found" would send them after the wrong problem.

Candidates, in order:

  1. <configured gateway>/mcp — whoever set METAFORGE_GATEWAY_URL or a saved config has already said where their gateway is.
  2. <same host>:8765/mcp — in the standard compose file the gateway is :8000 and the MCP sidecar is a separate service on :8765, so <gateway>/mcp 404s and this is the right answer.
  3. localhost:8765, 127.0.0.1:8765, localhost:8000.

Deriving a URL is a guess; each one is still probed before being reported.

When nothing is found, every candidate is listed with what it said, and the three ways forward are named: start one with docker compose up gateway, enter a team or hosted URL, or install the metaforge-local package and run with no gateway at all. forge connect exits non-zero, so it works as a precondition check in a script.

Importing somebody else's robot​

twin.import_urdf reads a URDF and records it as a reference design to work against: links become components, joints become interfaces, stored through the same recorder as twin.commit_system_architecture. A URDF is a rigid-body graph, which is the shape the twin already holds, so this adds no representation nothing else reads.

STEP import already worked and preserves the file's own part labels (freecad.import_step). URDF had export only — there was no way to bring an existing arm in.

Geometry does not come in. A URDF references meshes by path, usually package:// URIs that resolve only inside a ROS workspace this server does not have. The structure is imported, every skipped mesh is listed:

JSON
{
"robot_name": "two_link_arm", "component_count": 3, "interface_count": 2,
"not_imported": [
{"kind": "mesh", "name": "base_link/visual",
"detail": "package://arm/meshes/base.stl -- geometry is referenced by path and was not resolved; the structure was imported without it"}
]
}

not_imported also carries any joint whose type is not one the URDF spec defines, and any joint naming a link the file does not contain. Neither is guessed at — a joint whose type we invented would move wrongly in every downstream simulation.

A document that is not a URDF is refused rather than partly read: malformed XML, a root that is not <robot>, or a file with no links. An empty import reporting success is worse than an error.

Bought parts from NVIDIA SimReady​

SimReady Central is NVIDIA's catalogue of OpenUSD models with physics already on them: robot arms and grippers from their makers, motors, racks, cooling units and thousands of generic props. The simready adapter finds them, checks them and puts them where the twin can keep them:

  1. simready.search reads the catalogue from the index repository (NVIDIA-Omniverse/simready-central, one commit-pinned URL per package) and each dataset's licence from its Hugging Face card.
  2. simready.import fetches the package's manifest, decides the licence, and only then fetches the OpenUSD layers, each checked against the sha256 the package lists. It measures the stage and writes a GLB preview.
  3. twin.record_design_files with work_product_type="purchased_model" records that folder as a versioned cad_model item (PMD- keys). The 3D viewer and the preview open its GLB as a mesh (the USD layers, licence and attribution are its other files); mass_kg is on the node, so a hierarchy roll-up and a mass constraint read it like a measured part.
  4. library.register_component with the returned library_component keeps the part for other projects. Its geometry is {usd_url, sha256, licence, package_id, attribution}, and the library refuses a USD geometry without an accepted licence.

The licence decides first. Accepted without a person reading them: CC-BY-4.0, CC0-1.0, Apache-2.0, BSD-2-Clause, BSD-3-Clause and MIT (twin_core/library/licences.py). A package states its licence in up to four places (dataset card, manifest, LICENSE.txt, the USD layer's asset_license); they must agree, or the import is refused as inconsistent. Universal Robots' dataset (license: other, terms that bind whoever opens the file) is left out of search and refused by import. simready.attribution gives the credit lines a deliverable must carry. Some packages declare their licence everywhere but ship no text (OnRobot's grippers, BSD-3-Clause); their LICENSE.txt is then a notice naming the SPDX identifier, the copyright holder the package names, its source and where the licence text is published, never an empty file.

What comes in, and what does not. Only the USD layers, ~60 MB for a typical asset; textures (often a gigabyte) only with include_textures, and never the thumbnails or the publisher's source_assets. The preview colours each face with its material's diffuse colour (a geometry subset's own material first, then the mesh's, then displayColor, then grey); it carries no textures or shading. It is written the way the STEP converter writes a part, in millimetres and Z up with every transform in the vertices, so the 3D viewer draws it at the same scale and the same way up as the project's own parts. Measured in SI whatever the stage's units: bounding box, mass per rigid body (a body and its mesh can both carry the same MassAPI mass, so only the topmost counts), joints, contact friction and restitution, Wikidata labels, the physics backends the asset offers and its latest SimReady conformance run.

These are simulation models, not manufacturer CAD. NVIDIA's own library is generic props, so their mass goes into the library as an assumption that needs review; a manufacturer's dataset is a manufacturer_spec. Use them for envelopes, mass, dynamics and context, not as geometry to machine against.

Inspect and import need the omniverse-usd extra (usd-core, trimesh, scipy); search and attribution need only the network.

Does the part actually meet the requirements​

twin.record_component_selection holds the chosen part's specs against every typed requirement the project already has, and returns the result with the commit:

JSON
{
"node_id": "bom-1", "mpn": "TPS62840",
"requirement_margins": [
{"requirement": "iq", "metric": "quiescent_current", "operator": "<=",
"limit": 50.0, "unit": "uA", "spec_value": 75.0,
"satisfied": false, "margin": -25.0, "margin_pct": -50.0}
],
"violates": ["iq"]
}

The selection is still recorded. Refusing the commit would block the normal case — choosing the best available part and then revising the requirement. But it is no longer silent: without this the violation first surfaced at a gate, with nothing linking it back to the decision to buy that part.

margin is signed, in the requirement's own unit: positive is slack, negative is overshoot. An == requirement reports no margin at all, because "how far over" is not meaningful there and a number would invite a comparison between parts that does not mean anything.

Units are converted when the spec carries one ("3300 mV" against a limit in V). A bare number is compared and flagged unit_assumed — refusing would leave most catalog rows unchecked, and not flagging would let a 3300 that is microfarads read as farads and satisfy almost anything. A genuinely incompatible unit is not compared.

unchecked_requirements names every requirement no margin could be computed for, with a reason: no_matching_spec, spec_not_numeric, incompatible_units, requirement_not_bound. Reported rather than skipped — "no margin shown" and "no requirement" otherwise look the same.

Who makes and sells it. The maker and the distributor are resolved through the library's organisations, by any recorded spelling. Their ids are recorded with the selection (manufacturer_org, supplier_org in the BOM item's specifications) and returned under organisations. The BOM identity (global_asset_id, urn:metaforge:bom:<maker>:<mpn>) uses the maker's canonical title, so TI and Texas Instruments give one identity. A maker or distributor the library blocks is returned in blocked with the reason; like a violated requirement, the part is still recorded and the choice is flagged, not refused. twin.select_component marks each candidate whose maker is blocked, and adds the reason to that alternative's rejection. With no organisation for a name, nothing changes. Code: api_gateway/library/organisation_lookup.py.

This works only because requirements are typed (see A requirement something can check); an untyped one comes back as requirement_not_bound.

Why a budget cell is blank​

Budget allocations roll up mass and cost over the CONTAINS tree and compare each subsystem's actual against what it was allocated. When the comparison cannot be made, the status says which of three reasons it is rather than returning a blank:

reasonMeansWhat to do
metric_has_no_rollupNothing can compute this metric — power todayNothing; wait for a source
target_is_not_a_node_idtarget is the free-text label the model documents ("frame")Store a node id if you want it checked
target_node_not_foundA well-formed id pointing at nothingRepair the reference
(empty)The rollup ranRead actual

A rollup that ran and summed to nothing gives actual: 0.0, not null — a genuine zero is an answer, and under budget.

This matters because all three used to arrive as the same empty cell, and they call for different actions: wait for a feature, fix a typo, repair a dangling reference. An engineer could not tell them apart, nor from a subsystem whose parts simply have no mass recorded yet.

Power is two budgets, not one​

Draw and dissipation are different quantities checked against different limits, and both roll up the hierarchy:

Budget metricRolls upChecked against
power_draw_peakdraw_peak_wsupply or rail capacity — brown-outs, inrush
power_draw_averagedraw_average_wbattery capacity — runtime
power_dissipationdissipation_wwhat the enclosure can shed

They are linked by one derived relationship:

Code
dissipation = draw − output

For most electronics the useful output is near zero and the two nearly coincide, which is why merging them looks harmless. For a motor, an LED, a transmitter or a converter it is not — much of the draw leaves as work, light or RF. Merging gets one budget wrong every time: thermal overestimated, or supply underestimated.

Per component, declare draw_w (or draw_peak_w/draw_average_w) and output_w, on a work product's metadata or a BOM item's specifications. dissipation_w is derived, never read — a stated dissipation that disagrees with draw − output is two sources of truth.

A bare draw_w counts as both peak and average: a caller who gave one number has not distinguished them, and treating it as only one would understate the other budget.

An unknown output_w defaults dissipation to the full draw, and says so. That is the right default and it is wrong for anything that does useful work, so it lands in power_assumptions rather than being applied silently — an unknown is an assumption, never data (F3).

A budget whose metric is bare power is refused as ambiguous, not guessed:

JSON
{"reason": "metric_is_ambiguous",
"detail": "'power' is two budgets: power_draw_peak / power_draw_average (against supply) and power_dissipation (against thermal capacity). Say which."}

Choosing on the caller's behalf is wrong in a way nothing later catches: a thermal budget checked against draw passes designs that overheat, and a supply budget checked against dissipation passes designs that brown out.

The Structure tab renders mass and cost columns only, so a power budget still does not appear there — tracked separately. It is logged with has_rollup: true so nobody goes looking for a rollup that already exists.

A requirement something can check​

Design-flow gates compare structured envelope, thickness and material constraints to the committed cad_model, and deflection, stress and safety-factor constraints to the latest linked simulation_result with load-case scaling; the covered metrics and the gaps are listed in design-flow-harness.

twin.record_constraint_set takes a metric, operator, limit and unit so a gate can evaluate the requirement, plus verification_method (how it will be shown to hold) and acceptance_criteria (what counts as meeting it).

Those last two were already real typed fields on Constraint, read by the recorder and by the gate engine — and once absent from the tool's input schema. Supported, undocumented, invisible to any client reading tools/list, so the only way to use them was to already know the key.

verification_method and expected_evidence are different questions: analysis is the method, simulation is the kind of artefact that would count.

Only name is required, which is right — a half-specified requirement is a normal step in a conversation. What was missing is anyone saying so, so the result now names what it could not check:

JSON
{
"node_id": "wp-1",
"constraint_ids": ["c-1"],
"incomplete": [
{"name": "be_light", "missing": ["expression or metric+limit", "verification_method"]}
]
}

An untyped requirement records happily, then sits in the evidence matrix as no_data indefinitely — indistinguishable from a properly-specified one whose evidence has not arrived yet. incomplete is what tells the two apart at the moment of writing. It is absent, not empty, when there is nothing to report.

A limit with no unit is called out on its own: the matrix compares margins, and it cannot compare a bare number to a quantity.

When a plugin call fails​

The MCP surface publishes four metrics. It used to have none — only logs — so "which plugin tool is failing, for whom" was a question you answered by reading Loki by hand.

MetricLabelsFor
metaforge_mcp_tool_call_totaltool_id, status, clientThroughput and failure rate per tool
metaforge_mcp_tool_call_duration_secondstool_id, statusLatency
metaforge_mcp_error_totaltool_id, error_class, clientWhat kind of failure
metaforge_mcp_adapter_probe_totaladapter_id, resultHealth probes as a time series

error_class is the point of the group. A rate of "errors" says something is wrong; the class says what to do about it — adapter_unavailable needs a container, approval_refused needs a person, approval_handed_off is a write waiting on a person who has been told, tool_not_found means a client is calling something this build does not have, and unexpected means an exception nobody has classified, which should stand out rather than hide inside tool_execution_error.

The classes come from the exception types the server already raises rather than a parallel list, so the label cannot disagree with the error the client received.

Labels are deliberately low-cardinality: a harness name, a tool id, an outcome. Nothing is labelled with a node id, actor or project — those are unbounded, and a label that grows without limit takes Prometheus down rather than telling you anything.

Four alert rules live in observability/alerting/rules.yaml (McpAdapterUnreachable, McpErrorRateHigh, McpApprovalsTimingOut, McpUnexpectedErrors).

Failures are also recorded on the trace. There were no record_exception calls anywhere in the MCP module, which is the difference between a Tempo span that shows a failure and one that shows a request that happened to return; each error path now records the exception and sets mcp.error_class, so a trace can be filtered by the same taxonomy the metric counts.

Telemetry never fails a call — the same contract session capture keeps.

Running with no gateway at all​

The MCP server runs as a local subprocess over stdio and needs nothing configured. Verified on an empty environment, from a working directory outside the repo:

Code
initialize : {'name': 'metaforge-mcp', 'version': '0.3.797'}
health : healthy | adapters 13 | tools 105

No gateway, no URL, no token, no network, no API key. Persistent stores (Neo4j, Postgres) are optional; without them the twin is in-memory and does not survive a restart, and health/check says what is reachable rather than leaving it to be discovered.

That path existed but nothing shipped it, so the only installable package was HTTP-only and working alone still meant running a sidecar. There are now two packages:

metaforgemetaforge-local
Reachesa gateway over HTTPa process on this machine
Needsa gateway running, and its URLmetaforge-mcp on your PATH
Suitsa team or hosted gatewayworking on your own

Install one, not both. The plugin manifest format has no conditional — no enabled, no when — so a single package declaring both an http and a stdio server would connect to both: every tool twice, and an HTTP user also spawning a Python process they did not ask for. The choice has to be made at install time.

The local package launches the metaforge-mcp console script rather than python -m metaforge.mcp, which would depend on whichever interpreter and working directory the harness spawned with. It also sets METAFORGE_OTEL_EXPORT=false: with export on, a bare stdio boot logged five OTLP connection failures to localhost:4317 before finishing, which on a laptop with no collector is noise and nothing else. Local instrumentation stays on.

Pointing at the view that shows it​

A tools/call result can carry links to the dashboard view for whatever it just touched, alongside the call id in _meta:

JSON
"_meta": {
"callId": "7a619373979b4216",
"links": [
{"url": "https://forge.example.com/twin?tab=model&node=n-7",
"label": "View the part in the twin"}
]
}

An agent saying "I committed the bracket" is asking the reader to go and find it — thirteen pages, some project, some node. The server is the only party that knows both the id and the route.

Two rules, because a wrong link is worse than none (the agent states it with the same confidence either way, and the reader only finds out by clicking):

  • The base URL is never invented. It comes from METAFORGE_DASHBOARD_URL. Unset means no links at all, and health/check reports dashboard_links: "disabled (...)" so a doctor can say so rather than leaving the reader to conclude the tools never produce them.
  • The route is never invented. Only mappings verified against the dashboard's own route table are listed, and a test re-checks every one of them against dashboard/src/App.tsx — the failure mode of renaming a route is otherwise a link that 404s months later in someone else's transcript. A tool with no mapping, or a result missing the id its route needs, gets no link; linking the bare page would point at whatever happens to be selected, which is a different object.

links is absent rather than empty when there is nothing to say: an empty list reads as "we looked and there is no view for this".

/twin accepts ?node= and ?tab= (graph, structure, model, sim, asm, mfg). The tab was local state until, so a link naming one landed on the page and silently showed the default.

Who did it, with what​

Every captured action carries an attribution stamp. Captured actions used to be all filed under agent_code: "mcp" with nothing else, so /sessions could show what was done and not who did it, from which client, or with which model.

JSON
{
"tool_id": "twin.commit_geometry",
"actor": "user:fidel",
"actor_verified": true,
"client": {"name": "claude-code", "version": "2.1.4"},
"claimed": {"model": "claude-opus-5"}
}

The split between what the server established and what the client asserted is deliberate:

  • actor comes from the call context, and actor_verified is true only when an OAuth token established it. A shared API key authorises the call and identifies nobody; a client-supplied X-MetaForge-Actor header is a claim. A past bug let that claim outrank a verified token, and recording both under one unlabelled field would give it back by another route.
  • client comes from the initialize handshake. Absent, not empty, when the client never identified itself.
  • model cannot be known server-side — nothing on the MCP wire carries it. A client may state it in the request's _meta.model, and it is recorded under claimed so nobody later reads an assertion as something the server checked.

The session's agent_code is set from the client name, which is the one part of the stamp visible in /sessions without a schema change. Adding columns would need a migration mechanism the repo does not have yet (schema is create_all plus a few CREATE TABLE IF NOT EXISTS), so the rest rides in the event's existing JSON data column.

Being briefed, not offered a brief​

project.open returns the project brief inline with the result, so the agent is briefed by the act of opening the project.

It used to be a resource the client had to fetch — metaforge://twin/brief/{project_id} — and the workflow prompts told the agent to read it. That made being briefed depend on the client supporting resources and the agent following the instruction, and an agent that skipped it looked exactly like one that had opened an empty project.

Two things had to be fixed before the resource worked at all:

  • The standalone MCP sidecar served no resources whatsoever. Registration is conditional on an injected brief_provider and build_unified_server never forwarded one, so resources/list came back empty on the deployment external harnesses actually connect to. Nothing failed — the resources were simply never there.
  • They were published under the wrong method and field name. Every MetaForge resource is parameterised by project, so they are all templates: they belong in resources/templates/list under resourceTemplates/uriTemplate. They were being returned from resources/list keyed uri_template, which is neither the method nor the field a compliant client reads, and a template has no uri for it to address.

resources/list now returns concrete resources only (none today, which is the honest answer) and resources/templates/list returns the five project templates.

A deployment with no brief provider omits the brief key rather than returning an empty string — "no brief configured" and "a project with nothing in it" must not read the same. A brief that fails to render never fails the open.

Naming a project in prose​

project.open takes what the user said — an id, an exact name, or a unique name substring — and makes that project the session's scope. project.create scopes the session to what it just made, for the same reason: creating a project and then not being in it is the same papercut as picking one and having it not stick.

Several matches is an error, never a guess. The error names them:

Code
project.open: "arm" matches 2 projects: 6-DOF Arm (11111111), Arm Mk2 (22222222) — be more specific or use the id

Silently picking one scopes a design change to the wrong project, and nothing downstream can tell that happened. An unknown reference is an error too, rather than an empty result, which would invite a second project on the same subject — splitting the design thread with nothing to reconcile the halves.

The matching is mcp_core.project_ref, shared with the gateway's chat-scope resolution so a human and an agent refuse the same ambiguous query with the same sentence.

project.open is annotated readOnlyHint: true. It persists nothing, changes only this session's own view, and is undone by calling it again — treating project selection as a write would put it behind a human approval, which is the one action that makes every later call more correctly scoped.

Because it does change where a later write lands, the approval prompt names the effective project. Once a scope is set, the calls that follow carry no project of their own, so that line is the only place a reviewer learns which project a commit writes to.

Picking a project, and it sticking​

/metaforge:use calls session.start with a project_id. Everything after that resolves to it: a later call that names no project gets the session's, and a call that names one explicitly still wins.

The binding is keyed on the call's session id, never process-global. On a shared sidecar a "last project started" would hand one client's project to another's calls, which is a worse bug than the one it fixes.

That means it only works for a caller the server can recognise again on the next request. Three ways that happens:

TransportSession identity
stdioMETAFORGE_SESSION_ID — one process, one session
Streamable HTTPMcp-Session-Id, issued by the server on the initialize response and echoed by the client on every later request
Anything elseX-MetaForge-Session, MetaForge's own header

The middle row is the transport's own mechanism, so a spec-compliant HTTP client gets a sticky scope without being told about anything MetaForge-specific. A client may end its session with DELETE /mcp carrying the header, which releases the binding.

session.start reports whether it worked, and the report is load-bearing. project_scope_bound: false means the caller presented no session identity, so the binding could never be matched again and the client must keep passing project_id on every call. This used to come back true regardless — which, given the instruction attached to it, told the agent to stop sending the one thing that was still working, and every later call fell through to the default tenant with nothing reporting it.

Answering in the harness​

Where the connected client supports MCP elicitation, the approval is put to the user in the harness they are already looking at, rather than parked in a dashboard queue they may not have open.

JSON
{
"jsonrpc": "2.0", "id": "elicit-1", "method": "elicitation/create",
"params": {
"message": "MetaForge wants to run twin.commit_geometry.\n\nwrites; held for approval (remote caller)\n\nArguments:\n obj_id: bracket\n\nRequested by: remote",
"requestedSchema": {
"type": "object",
"properties": {"approve": {"type": "boolean", "title": "Run twin.commit_geometry?"}},
"required": ["approve"]
}
}
}

Three conditions all have to hold, and health/check reports the result as client.can_elicit:

  1. the transport has a channel back to the client (stdio does; a plain HTTP POST with no SSE does not; over HTTP see Over HTTP: which stream carries the question),
  2. the client declared the elicitation capability at initialize, and
  3. the negotiated protocol revision is 2025-06-18 or later, which is where elicitation/create was introduced. A client that declares the capability while negotiating an older revision is not listening for the request.

The server negotiates the revision the client asked for when it is one of 2024-11-05 or 2025-06-18. Otherwise:

  • a client ahead of us — Claude Code 2.1.286 asks for 2025-11-25 — is answered 2025-06-18, the newest we speak. This is the MCP spec's recommended answer, and answering 2024-11-05 instead is what kept inline approvals unreachable for that client: elicitation/create does not exist before 2025-06-18, so can_elicit was false and every held write went to the dashboard queue.
  • a client asking for an older revision we do not speak — say 2025-03-26 — is answered the newest revision not newer than its request, so 2024-11-05. The spec would have us answer 2025-06-18 here too, and then permits such a client to disconnect; answering downward keeps a client that pinned an older revision working. A deliberate, narrow deviation from a SHOULD, only ever in the direction of not breaking an older client.

Either way the connection is still reported as skewed by health.check: answering better than before is not the same as answering what was asked.

The three-action response maps onto the outcomes above:

ResponseOutcome
acceptapproved, whatever the content
declinerejected: they refused the prompt itself
cancel, or no answer inside the windownobody decided: a durable hold stays pending (and its prompt stays open, below), a blocking one ends timed_out

The form has no yes/no checkbox, only an optional note, so Accept and Decline are the decision. An older form carried a required approve box, and an Accept with it unticked was recorded as a rejection; an Accept is now always an approval. See Held tool calls.

Over HTTP: which stream carries the question​

Over Streamable HTTP the question needs a server-to-client direction, and there are two. Both are per session: the session is the Mcp-Session-Id the server issued at initialize, and conditions 2 and 3 above are read from that session's own handshake.

The client...The question goes
opened GET /mcp with its Mcp-Session-Iddown that standalone stream
did not, but sent the tools/call with Accept: application/json, text/event-streamon that POST's own response, which the server switches to text/event-stream
neitherto the dashboard queue

The second row is the one Claude Code uses: it never opens GET /mcp. A tools/call from an eligible session runs as usual, and only if the call is held does its response become a stream: the elicitation/create request first, then (once the client POSTs its answer as a JSON-RPC response, routed by id and acknowledged 202) the tool result, and the stream closes. A call that is never held still gets its plain JSON response. Accept: */* is not taken as consent to a stream.

If the client hangs up while a question is open, the question is cancelled at once, so the call ends timed_out and nothing is written.

A durable hold's question can outlive its call. The call still returns after waiting 20 seconds for the answer, but the question stays open until the approval is decided on any surface or expires (at most an hour):

The question wentAfter the call's result
down GET /mcpit stays pending on that stream
on the call's own streamthe stream ends with the result, as Streamable HTTP requires, so the question is withdrawn at the end of the 20-second wait and the approval waits on the dashboard

Decided elsewhere or expired, it is withdrawn with notifications/cancelled (approval decided elsewhere, approval expired). Answered, the answer is recorded on the approval exactly as one inside the call would be. Either stream closing (the client disconnecting, or a client that stops reading once it has its result) answers the question cancel, which decides nothing. The prompts the sidecar raises by itself for approvals a session has not been asked about travel the same way. See The prompt outlives the call and Any approval in the client chat.

client.can_elicit in health/check is a snapshot taken inside that call. Over HTTP it is true when GET /mcp is open, or when the health.check call itself was sent with text/event-stream in Accept from an eligible session. The mcp_initialize log line names the capabilities the client declared, so a client that is never asked inline can be diagnosed from the log: no elicitation in that list is the usual reason.

The result says it was held​

An approved call used to return a success envelope identical to one that was never held, so a client had no way to tell the difference — and an agent reading it told the user "writes from this external harness are not being held for approval", which the gateway ledger flatly contradicted. The guardrail worked; the result did not mention it, so the model guessed.

A held call now carries the outcome in two places:

JSON
"_meta": {
"callId": "…",
"approval": {
"held": true,
"outcome": "approved",
"route": "dashboard",
"heldSeconds": 8.2,
"approvalId": "run_b42aa3ea023f46c0",
"approvedBy": "Fidel",
"approverVerified": false
}
}

and as a second content block, because a model reads content and _meta alone is what "technically present and never looked at" looks like:

This write was held for human approval and was approved by Fidel (approval run_b42aa3ea023f46c0) after 8.2s via dashboard, identity unverified.

Three things it is careful about. The tool's own output stays in the first block untouched, since that block belongs to the adapter's declared schema. approverVerified is reported separately from the name, because a local gateway runs with auth off and has no identity to check — "approved by Fidel" must not read as a verified signature. And rejected and timed_out remain errors naming the outcome: a refused write reported as a success with a note attached would be a worse version of the bug this fixes.

A call that was never held carries no approval key and no second block.

Elicitation is preferred, not chained. A client that can be asked is asked, and the dashboard queue is not consulted; going on to the queue after the user had already answered would put the same question to a second person and discard the first answer. Clients that cannot elicit use the queue exactly as before.

Over HTTP​

An elicitor used to be attached only on the stdio path, so can_elicit was false for every HTTP client whatever it declared — and every plugin connects over HTTP, so inline approvals existed for a transport almost nobody uses. The channel is now:

GET /mcpa long-lived SSE stream the server pushes elicitation/create down. Requires Mcp-Session-Id — a stream that cannot be correlated is a question asked into the void, so it is refused with 400 rather than opened on an invented session.
POST /mcp with a JSON-RPC responsethe client's answer, routed by id and acknowledged with 202. An id nothing is waiting for falls through to ordinary dispatch rather than being dropped.

GET /mcp/sse is unchanged and unrelated: it is a request/response convenience where the caller queues work as ?request= params and the server closes with event: done.

Eligibility is per connection, not per server. One sidecar serves many clients from one server instance, so can_elicit consults the elicitor rather than the server's own _client_capabilities — which are whichever client initialised last. A session is eligible only when its stream is open, its handshake declared elicitation, and its negotiated revision is 2025-06-18 or later. A connection that fails any of those falls back to the dashboard queue; choosing elicitation and then having nowhere to ask would hang the write to its timeout instead of parking it where somebody can see it.

Inline approval cannot satisfy a human-authority tool. twin.attempt_promotion, twin.approve_design_loop, twin.approve_engineering_change and twin.confirm_sketch_reading record who decided, and an elicitation answer carries no identity — the client can report that a user clicked yes, not which user. Those calls are still asked inline, and then refused with "the approval was granted but the gate did not identify who granted it" rather than recorded against an authority that does not exist. They go through the dashboard, where the approver is the authenticated principal who clicked.

Arguments are summarised into the prompt, redacted on any field whose name looks like a credential and clipped to keep the dialog readable. The spec is explicit that a server must not request sensitive information through elicitation; shipping a credential into the same dialog is the same mistake pointed the other way, and a reviewer does not need the key to say yes.

When the list is short​

tools/list never drops an adapter quietly. If an adapter cannot answer — its container is down, or it returns something that is not JSON — the tools it would have contributed are missing from the list, and the response says so in _meta:

JSON
{
"tools": [...],
"_meta": {
"unavailableAdapters": [
{"adapter_id": "calculix", "error": "adapter container is down (-32001)"}
],
"profile": {"name": "mechanical", "toolCount": 12, "missing": ["cadquery.create_parametric"]}
}
}

_meta is absent when there is nothing to report, so its presence is itself the signal. profile.missing names tools the profile asked for that no loaded adapter registers, which is a configuration mistake rather than a smaller profile.

Health is measured, not asserted​

health/check on the unified server asks every adapter the same question and reports what came back. It does not read the registration table.

JSON
{
"service": "metaforge-mcp",
"status": "degraded",
"adapter_count": 3,
"tool_count": 100,
"profile": {
"active": "core",
"served_tool_count": 21,
"available": ["core", "electronics", "industrial_design", "mechanical", "robotics", "simulation"],
"detail": "Profile 'core' serves 21 of 100 registered tools on this connection. The rest are not missing and nothing is down -- connect with a different profile to reach them."
},
"unreachable_adapters": ["calculix", "freecad"],
"detail": "2 of 3 adapters did not answer: calculix, freecad. Their tools are registered but calls to them will fail.",
"adapters": [
{"adapter_id": "twin", "version": "0.1.0", "tools_registered": 12, "reachable": true},
{"adapter_id": "calculix", "version": "0.1.0", "tools_registered": 5, "reachable": false,
"error": "adapter container is down (-32001)"},
{"adapter_id": "freecad", "version": "0.1.0", "tools_registered": 41, "reachable": false,
"error": "no answer within 3s"}
]
}

status is healthy only when every adapter answered; otherwise degraded, and unreachable_adapters names which. Each adapter gets three seconds; the probes run concurrently, so the whole check costs one timeout rather than one per adapter.

The field is tools_registered, not tools_available. Those numbers come from the registry and stay the same whether the adapter is up or down — calling them "available" next to reachable: false claimed the opposite of what the same object said one key later.

Two failure shapes stay distinct in error, because they need different fixes: "container is down" means the adapter answered with an error (start the container), "no answer within 3s" means nothing came back at all (the process is wedged, or the network to it is).

The HTTP status stays 200 even when degraded. The MCP server is up and answering — it is telling you the truth about something else. A 503 here would have an orchestrator restart the gateway to cure a sick CAD container, which does not work and takes the working half down with it.

Why the tool list is shorter than tool_count​

tool_count is the registered catalogue; profile.served_tool_count is what this connection can call. With the core profile those are 100 and 21, and nothing used to reconcile them -- so /metaforge:doctor reported "96 tools are not reaching the client" and named cadquery, freecad, calculix and kicad as missing. That was the profile working exactly as designed.

Two causes make the list shorter and they need telling apart:

CauseHow to see it
A tool profile is activeprofile.active is set, and profile.detail says so
An adapter is downit appears in unreachable_adapters, and reachable: false in adapters

profile.active is null when no profile is in force, rather than the key being absent: a reader that cannot tell "no profile" from "this build does not report one" has to guess, and guessing is what produced the original diagnosis. A per-connection ?profile= naming something unknown is reported as profile.error rather than raising -- a health check that raises tells nobody anything.

What is protecting this connection​

health/check also reports the auth posture and who is on the other end — the other three things /metaforge:doctor is asked about.

JSON
{
"auth": {
"mode": "open",
"transport": "stdio",
"identifies_caller": false,
"detail": "no API key and no OAuth configured: every connection on this transport is accepted, and no call is attributable to anyone"
},
"client": {
"connected": true,
"name": "claude-code",
"version": "2.1.4",
"protocol_requested": "2025-11-25",
"protocol_negotiated": "2025-06-18",
"protocol_skew": true,
"detail": "client asked for MCP 2025-11-25; this server answered 2025-06-18, the newest it speaks. Anything added after that revision is not available on this connection."
}
}

auth.mode is one of open, api_key, oauth, api_key+oauth — or unknown, which means the transport never declared one and the server genuinely cannot say. unknown is deliberately not merged into open: a deployment with nothing configured and a reporting gap need to be distinguishable, and the safe reading of unknown is "assume nothing".

identifies_caller is true only under OAuth. A shared API key authorises the call but identifies nobody, which is the same distinction the HTTP gate already draws by returning an actor for a token and none for a key match — so a session record from an api_key connection is attributable to the key, not to a person.

detail appears only when something is worth saying, which for auth means open mode. That is the state an unset METAFORGE_MCP_API_KEY gives you, so it is the one most likely to be in force without anyone having chosen it.

client is filled from the initialize handshake, or, for a handshake-free 2026-07-28 client, from the request asking. Such a client never sends initialize; its clientInfo and revision come with every request, so the report names them, sets protocol_requested and protocol_negotiated to that revision, and adds handshake: "none: this revision is handshake-free, ...". Before that fix it was told no handshake had been completed and shown the server's default revision. Before any handshake on the legacy path it reports connected: false rather than an anonymous client — the legacy transports dispatch without one, and an empty name would read as a client that failed to identify itself. protocol_skew appears when the client asked for an MCP revision this server does not speak: the connection still works, minus anything added after the pinned revision, which otherwise surfaces as "the tool is just missing".

/metaforge:doctor (see MCP prompts) is built on this call, so anything the report cannot say, the doctor cannot say either.

Tool annotations​

Every tool reports readOnlyHint, destructiveHint, idempotentHint and openWorldHint on tools/list, so a harness can tell twin.get_node from project.delete without reading the description.

The classification lives in mcp_core/annotations.py and is deliberate, never derived from the tool's name — twin.record_claim and twin.reject_engineering_change both read like queries and neither is one. A tool nobody has classified inherits MCP's own defaults (readOnlyHint: false, destructiveHint: true), so a new adapter is over-guarded rather than silently waved through.

twin.query_cypher is the exception worth knowing about: it rejects mutating Cypher by default, but the adapter takes --allow-twin-mutations, and when that is set the tool stops being read-only. The annotation is computed per request from the adapter's own flag, so the hint matches what the server will actually enforce.

AdapterToolPurposeUAT scenario
knowledge (default)knowledge.ingestIndex a file or text into the LightRAG-backed KBtier1/ingest.md
knowledgeknowledge.searchSemantic + fulltext search over indexed sourcestier1/retrieval.md
knowledgeknowledge.extractResolve an MPN → current Datasheet work producttier1/retrieval.md
knowledgeknowledge.populate_bomEnrich a BOM from indexed datasheets. Optional purchase_unit narrows candidates to knowledge entries tagged that way at ingest time, degrading to an unfiltered search (flagged via purchase_unit_filter_degraded) rather than losing recall against an untagged corpusnone yet
component (injected)component.search_parametricRange/comparison query against the typed component catalog (e.g. category=buck_converter, v_out==5, efficiency>0.9) — the parametric index knowledge.search's equality-only filters can't express. Each row also carries image_url/footprint/cad_model_url (caller-supplied at index time — no extraction pipeline populates them yet). An unknown category is refused with the closest names. Nothing populates the catalog yet: an empty result carries category_indexed: false and a note pointing to component.find / library.search, so it is not read as "no such part exists"live-verified (fidel-dev)
componentcomponent.search_intentTranslate a free-text goal ("step 12V down to 5V for a flight controller") into spec bounds, query the parametric catalog, fall back to knowledge.populate_bom's fuzzy search per category; splits results into buy_complete (COTS assemblies) vs. build_from_parts (discrete components) — never mergedlive-verified (fidel-dev)
twin (default)twin.get_nodeFetch a Twin node by id with first-hop neighborstier1/twin-hp.md
twintwin.thread_forWalk the digital thread for a work product. direction (outgoing/incoming/both, default outgoing) controls traversal — most traceability edges point child-to-parent, so a requirement/constraint root (usually an edge target) needs incoming or both to see anything connected to ittier1/twin-hp.md
twin (injected)twin.commit_geometry part coloursA commit from an external MCP client (a harness plugin) is refused while any part of the STEP is uncoloured, naming the parts (a STEP only: a mesh such as a tripo.download or meshy.download GLB keeps its own materials, is not held to the rule, and part_colours or color on it is refused); the server sets this per call, the client cannot set or clear it (the design-flow worker and in-app chat are not held to it yet). part_colours {part name: #RRGGBB or [r,g,b]} or color are written into the STEP at commit, so stateless CAD output can be coloured too; an unknown part name is refused. freecad.export_model takes the same part_colours and returns uncoloured_partsunit-verified
twin (injected)twin.commit_geometry sourcessource_node_ids are linked GENERATED_FROM, e.g. the pcb_layout a board STEP came from. A STEP committed from kicad.export_3d's 3d/ folder with no source_tool is stamped kicad.export_3d, not freecad.export_model. A board model (source_tool kicad.*) with no source is linked to the project's one current pcb_layout (generated_from_inferred), the project's other loose thread stages are linked too, and thread_unlinked_stages counts what could not be. Any other model (an enclosure, a bracket) is never linked this wayunit-verified
twin (injected)twin.item_historyEvery revision of one item (part, assembly, constraint set, intent, need, objective, BOM, component selection), oldest first, by item_key or any revision's node_id: revision number, node id, change_reason, run_id, author, head flag, and a lessons list of rejected revisions with their status_reason. The definition write tools (twin.commit_geometry, twin.record_constraint_set, twin.record_engineering_entity, twin.record_component_selection) now write each call as the next revision of an item and return item_key/revision; optional item_key (KEY or KEY@n), supersedes and change_reason pin the item when a name drifts. REST: GET /v1/twin/items, GET /v1/twin/items/{key}/revisionsunit-verified
twin (injected)twin.imagine_get_studioThe project's Imagine studio (IMG-STUDIO): status (none, draft, handed_over), revision, the formgraph product config, and the person's browser state per collection (choices, scenarios, context edits, assumptions, requirements, ledger, screening), and absolute links to the studio: studio_url (dashboard, from METAFORGE_DASHBOARD_URL) and engine_page_url (the engine page, from METAFORGE_GATEWAY_PUBLIC_URL, ten-minute token). Reads only. REST: GET /v1/twin/projects/{id}/imagine/studio. See The Imagine stageunit-verified
twin (injected)twin.imagine_put_studioWrites the per-product formgraph config as the next IMG-STUDIO revision, checked with the merged formgraph rules; the product context goes inline as config.context, never a folder path. Errors refuse the write; a handed-over studio is read-only until a person reworks it. Nothing written is above V2. REST: PUT /v1/twin/projects/{id}/imagine/studiounit-verified
twin (injected)twin.imagine_add_mesh_referencePuts a twin model (STEP, GLB, STL or OBJ work product) in the Imagine studio as a see-through mesh reference (context, envelope, target or look): a STEP is converted with the viewer's OCCT converter (millimetres, Z up), the mesh reduced to at most 40,000 triangles, its full size kept in stats, and written as the studio's next revision. Takes at, rotate, color and opacity, and records the origin the engine places at at. Additive. See The Imagine stageunit-verified
twin (injected)twin.imagine_patch_studioChanges the studio with a list of edits (JSON Patch style add, replace, remove; list items named by id) against base_revision, so a small change is not a whole-config rewrite. Checked and written exactly as twin.imagine_put_studio, as the next revision; a moved head, a change that names nothing, or a failing result writes nothing. Returns the new revision and what was applied, not the config. REST: PATCH /v1/twin/projects/{id}/imagine/studio.unit-verified
twin (injected)twin.component_threadEvery component followed through Imagine, Develop, Check and Make: the studio part, the selection and library entry Develop chose for it and how they were linked (stored, order code or role), the boards and references it sits on, its requirement margins, and the BOM and order lines. relation is same, refined, replaced, develop_only or imagine_only; adopt is what twin.imagine_adopt would take in. Reads only. REST: GET /v1/twin/projects/{id}/components/thread. See Components across the stagesunit-verified
twin (injected)twin.imagine_adoptTakes Develop's part for one component thread into the Imagine studio at base_revision: the studio part gets the order code, maker and library entry, or a Develop-only part is added. Refused when the studio moved on, is handed over or the thread has nothing to adopt; a board is never adopted. REST: POST /v1/twin/projects/{id}/imagine/adopt.unit-verified
twin (injected)twin.form_threadEach part the Imagine studio draws beside the Develop CAD item that makes it, with both sizes as boxes on the studio's axes and the difference: same, differs, accepted, unmeasured or unpaired; a brief studio's size limit is within or exceeds Develop's assembly. Openings and mounts are not compared yet. Reads only. See Form changes from Developunit-verified
twin (injected)twin.imagine_accept_formTakes one form difference into the studio as a recorded change: form parameters only (or a brief studio's size limit), the part stamped with the item revision it took. Allowed on a handed-over studio, which stays handed over.unit-verified
twin (injected)twin.imagine_handover_statusThe Imagine to Develop checklist (ledger, assumptions, scenarios, requirements, parts, manufacturing context, concept assembly, interfaces, screening), each done, missing or assumed. Reads only; the handover (POST .../imagine/handover) and the rework are a person's decisions on RESTunit-verified
twin (injected)twin.imagine_validateA dry run of the Imagine gates: every finding at once, who can clear each (agent, person, external), and a computed verdict (invalid, needs_agent, blocked_external, needs_person, ready_for_handover) at V2 at most. The verification service decides it; the tool only renders its report, and reports blocked_external when the service cannot be reached. Reads only, never held for approvalunit-verified; live-verified against the service
twin (injected)twin.imagine_lookLooks at an authored form: opens the stored studio's engine page in headless Chromium inside the process (the page and its assets are answered from memory under the gateway's own Content Security Policy, so no gateway has to run) and returns the status, each part's kind, size, triangles and error, and the picture as an image. set moves parameters in the page only (never saved) and looks again, with what changed and the requests the page made. revision names the head after a write. Reads only, never held. Needs the playwright package and a Chromium build: without them it answers unavailable with how to install them. An enclosure studio answers not_authored.
twin (injected)twin.imagine_resolve_partGives one real part a 3D body and says how trustworthy it is. The rung is exact (the KiCad library's own 3D model, sized by a CAD kernel), approximation (the closest shape that can be defended, with its basis in words) or placeholder (nothing was known, so a generic block); a part that already has an exact or generated model is kept. tried lists every rung and why it was or was not used. Pass package_text (the package outline section of the datasheet) and the size is read from it by a rule-based parser for standard IC outlines, an approximation whose size is read. The KiCad rung needs the libraries where the tool runs (METAFORGE_KICAD_LIBRARY_DIR); without them it says so. Reads only, nothing is written.
twin (injected)twin.imagine_handover / twin.imagine_reworkHand the studio over to Develop (freeze and seed the twin) or reopen it on a new revision. Human-authority: refused unless the owner sets METAFORGE_ALLOW_AGENT_HUMAN_AUTHORITY=true; over MCP an agent that names itself and the person (X-MetaForge-Agent, X-MetaForge-On-Behalf-Of) gets a delegated approval on the ledger, else the call is held. Recorded as the agent's decision for the person. See delegated holds through MCPunit-verified
twin (injected)twin.imagine_acceptAccept the studio's assumptions and confirm its inferred scenario tests for the person the agent acts for, so a delegated run reaches the handover without a person. Assumptions stay assumptions (accepted, never confirmed); the checklist says "accepted by agent X on behalf of Y; not confirmed by a person". Human-authority, delegated only, as the handover. REST equivalent: POST .../imagine/events (assumption_confirmed, or scenario with confirmed: true) from the agent surface under the same delegation. See The Imagine stageunit-verified
twintwin.find_by_propertyFind nodes matching a property predicatetier1/twin-hp.md
twintwin.constraint_violationsList active constraint violations on a project. Pass project_id to scope explicitly (the project brief tells the agent to do this the same way it does for twin.commit_geometry) — without it, falls back to the calling session's ambient project context if one is set (not currently reachable from a real chat turn), and otherwise evaluates every constraint across every project (admin path, previously always did this unconditionally, a real cross-project leak)tier1/twin-hp.md
twintwin.query_cypherRun a Cypher query against the Twin (mutating Cypher gated by --allow-twin-mutations)tier1/twin-hp.md
twintwin.record_decisionRecord a design decision as a typed DESIGN_DECISION work product (markdown blob + project link), with alternatives (structured option/reason-rejected pairs, never prose), parent_refs (requirement/objective links), and evidence_refs (links to the Evidence node(s) that support it via a real SUPPORTED_BY edge, not just a rationale string mentioning one). depends_on links the item revisions it rests on (CS-...@n) with a depends_on edge, so a requirements decision links the constraint set instead of restating it. GET /v1/decisions?related_to=<node_id> (no new MCP tool) answers "what decisions touch this node" for the dashboard's Structure tab and Design Loop section. The record is pinned to the item revisions it is about (optional depends_on item refs; otherwise inferred from parent_refs) and goes stale when one of them gets a newer head (see twin_schema 2.31)live-verified
twintwin.record_documentPersist a text artifact as a typed PRD/DOCUMENTATION/ROBOT_DESCRIPTION/SIMULATION_RESULT/LOAD_CASE work product (blob + project link); writes immediately, no approval gate. A load_case persists a reusable FEA boundary-condition definition (material, node sets, load force, source of loads) so it doesn't need retyping inline on every calculix.run_fea call. A simulation_result also takes field_file (or field_base64), stored as a second MinIO blob with field_object_key/field_content_hash metadata, plus analysed_geometry_node_id (pinned with its revision and content hash, and a DERIVES_FROM edge), load_case_spec and fixtures. A prd records prose only, as the next revision of the project's prd item; requirement values belong in twin.record_constraint_set, the prd is rendered from both (GET /v1/twin/projects/{id}/prd), and values the constraint set lacks come back as requirement_warning. The record is pinned to the item revisions it is about (optional depends_on item refs; otherwise inferred from analysed_geometry_node_id and source_part_node_ids; constraint sets only when named, as CS-...@n or the requirement ids it verifies) and goes stale when one of them gets a newer head (see twin_schema 2.31)live-verified; field persistence unit-verified
twin (injected)twin.record_component_selectionPersist one chosen component.search_parametric/search_intent result as a real BOMItem work product (graph node + project link) — without this, a search result was pure chat output with no reviewable, versioned trace in the Twin. Optionally stores datasheet_url/image_url/footprint/cad_model_url plus purchase/pricing provenance (purchase_url, price_currency, priced_distributor, and an auto-captured priced_at timestamp — a price is a snapshot, never caller-timestamped) on the BOMItem; any of those left unset by the caller are auto-filled from the component catalog store when a match on MPN/manufacturer exists, so a bare selection call still gets media/cost fields when the catalog already knows the part. When project-scoped, also adds a real CONTAINS edge from the project's BOM work product (created on first use, reused via a kind metadata marker so a document-shaped BOM work product is never mistaken for the container) to the new BOMItem — without this a BOMItem had only the Postgres project-junction link and no graph edge, so TwinAPI.find_orphans() flagged it as an orphan and it was unreachable via twin.thread_for. Optional studio_parts names the Imagine studio parts the part fills; without it the part is linked by order code family, then by a role exactly one chosen studio part has, and the link and its library entry are stored on the selection (specifications.thread, specifications.library_entry) and returned as thread; naming a part the studio does not have is refused. Presence-only: no requirement comparison — see twin.select_component for the requirement-driven halfunit-verified
twintwin.record_constraint_setRecord structured requirements as evaluable Constraint nodes + a CONSTRAINT_SET work product; expressions compile-checked, violations feed gate criteria. Each entry needs EITHER a raw expression OR a structured metric+operator+limit+unit+target_node_type binding — the latter records a benign placeholder expression ("True") instead of requiring hand-written Python, since live pass/fail/no_data status comes from GET /v1/requirements/matrix's real Claim/Evidence data, never from evaluating this expression. An entry may also declare verification_method and expected_evidence — the kind of evidence expected to verify it, validated against the same EVIDENCE_TYPES set twin.record_evidence itself accepts; G7 (Verification Readiness) checks both on every critical requirementunit-verified
twintwin.record_engineering_entityRecord one Engineering Intent & Requirements Harness entity (intent/stakeholder_need/objective/assumption/question/risk/verification_case/evidence/budget/invariant/waiver/release_approval/concept_option), optionally linked to parent(s) via a real graph edge (derives_from/satisfies/motivates/...), resolved by exact name or UUID. A budget requires metric, unit and system_total in extra and is rejected without them (before that it recorded successfully and was then dropped from every rollup, so it looked like no budget had been set); an invariant carries limit instead. Both are read back automatically by the G3 Preliminary Feasibility gate; a waiver/release_approval only counts toward the G8 Release gate once approved via twin.approve_engineering_entity. A budget's allocations[].target can be a HierarchyNode id so GET /v1/twin/hierarchy can check that branch's real rolled-up mass/cost against its allocation, not just the flat project-wide total the G3 gate checks. A concept_option is one candidate architecture in a trade study -- extra.criteria_scores (e.g. mass_kg/cost_usd/risk/performance) and extra.evidence_backed_criteria (which scores came from a real measured source, honestly usually just mass) -- graded and selected via twin.select_concept below. A design_value is one engineering value and its source: extra.name, extra.value, optional extra.unit, and extra.source = {kind, ...} (user, project_document, standard, past_work, component, analysis, measurement, assumption, each with the fields that let a reviewer find it again). A value without an identifiable source is refused; an assumption source is stamped needs_review. Any entity carrying a source has it checked the same wayunit-verified
twintwin.select_conceptTrade-study selection: given 2-4 recorded concept_option entities and a weight per criterion, computes each option's weighted score from its own recorded criteria_scores and records the selected one as a real Decision (twin.record_decision) -- every non-selected option becomes a real alternatives entry with its weighted score as reason_rejected, which flips twin_core.consistency.gates's G5 "Trade study performed" check from NOT_EVALUATED to PASS (confirmed live on the real arm project). Links the Decision to the selected option via EdgeType.GENERATED_FROM (no new edge type, same precedent as the design-loop winner). Concept GENERATION is not this tool -- record each candidate via twin.record_engineering_entity first; there is no deterministic "architecture generator" to build. POST /v1/trade-study/options, GET /v1/trade-study/options, POST /v1/trade-study/select expose the same actions to the dashboard's "Concept trade study" section on /requirementsunit-verified
twintwin.select_componentRequirement-driven component selection: given 2+ real candidates (each an mpn + caller-asserted datasheet specs, e.g. a servo's published torque_kg_cm) and the specs the design actually requires (a threshold + >=/<= direction per spec), computes a real numeric margin per requirement per candidate (a threshold/margin check, not twin.select_concept's weighted sum -- the wrong shape for "does this rating clear the requirement with margin"), records the selection as a real Decision (twin.record_decision, every non-selected candidate's margin summary as its alternatives entry), and persists the selected candidate as a real BOMItem via twin.record_component_selection's own recorder -- unlike that tool alone, which has zero requirement comparison. Links the Decision to the new BOMItem via EdgeType.GENERATED_FROM. A candidate that fails a requirement can still be selected (selected_meets_requirements reports the honest outcome rather than the tool refusing). Spec values are caller-asserted real datasheet numbers, not scraped by any in-repo parsing pipeline -- digital_twin.catalog.taxonomy.CATEGORY_REGISTRY declares typed fields for categories like servo/motor_driver but has no seeded sample data. POST /v1/component-selection/select exposes the same action to the dashboard's BOM-page "Select component" actionunit-verified
twintwin.approve_engineering_entityAdvance one EngineeringEntity's authority from proposed to reviewed/approved — a real approval step distinct from creation, giving AuthorityState its first-ever non-baseline write path. A waiver/release_approval recorded but never approved this way FAILS the G8 Release gate's checkunit-verified
twintwin.record_evidencePersist a tool-generated Evidence entity: the real structured output of a calculix/simulation/CAD/test tool call (producer, inputs, a content hash — never a restated assertion), optionally linked to the requirement(s) it supports/contradicts and revision-pinned valid_against dependencies that make staleness propagation apply to evidence for the first time. A valid_against entry can also pin a work_product (e.g. CAD-BODY-003, the doc's own example) — re-committing that same named geometry via twin.commit_geometry supersedes it and propagates staleness to any evidence pinned to the prior revision, and transitively to whatever depends on that evidence. supersedes records a revalidation rerun and flips the stale evidence it replaces to SUPERSEDED. The record is pinned to the item revisions it is about (optional depends_on item refs; otherwise inferred from valid_against work products and the project's constraint sets) and goes stale when one of them gets a newer head (see twin_schema 2.31)unit-verified
twintwin.record_claimPersist a requirement satisfaction claim: a real graph edge asserting an artefact (CAD model, schematic, ...) satisfies a requirement, citing evidence ids. Status (supported/unsupported) is always computed live from current evidence staleness, never cached — a claim with no evidence, or whose evidence has all gone stale, reports unsupportedunit-verified
twintwin.place_partPlace, move or remove one committed cad_model part in an assembly being put together, and show it in the twin viewer's Live assembly panel as it happens (position in mm, rotation in degrees). The viewer composes each part's cached GLB, so no conversion runs per step. Shows the layout only: it creates no assembly and records nothing in the twin, and live reports whether a viewer could have seen it. Not held for approval (it writes no design state). A part must exist, be a cad_model and belong to the project. The picture is held in the gateway's memory, so a gateway restart drops itunit-verified
twintwin.stage_work_product_fileMaterialize a committed work product's blob onto the shared adapter workspace, returning a file_path any freecad/cadquery/calculix tool can load — recovers a work product for inspection even after its authoring session is goneunit-verified
twintwin.propose_engineering_change / twin.analyze_engineering_change / twin.approve_engineering_change / twin.reject_engineering_change / twin.commit_engineering_change / twin.mark_engineering_change_rolled_backThe Engineering Change Transaction lifecycle (PROPOSED → ANALYZING → READY_FOR_REVIEW → APPROVED/REJECTED → COMMITTED/ROLLED_BACK, spec section 13) as MCP tools — real but unreachable from any agent until now. analyze computes real transitive impact (ImpactEngine) and approval level (HITLEngine), storing the full structured revalidation_plan (a pre-commit preview) on the ECT. approve's approver is an agent-asserted identity string (same trust level as every created_by field in this API) but the independence check is real — raises if approver equals the patch's own created_by. commit actually applies the patch via TransactionEngine; on success it ALSO calls StalenessEngine.propagate for real for every REVISE/SUPERSEDE/DEPRECATE/INVALIDATE op — a real gap, now closed (commit never used to propagate staleness at all, despite the living plan's tracker assuming it already did) — and overwrites revalidation_plan with the real post-commit plan. On a conflict the ECT stays APPROVED with the conflict recorded, never silently marked committed. mark_rolled_back is a bookkeeping label only — no automatic undo capability exists anywhere in this systemunit-verified
twintwin.execute_revalidation_planAfter a committed twin.commit_engineering_change, automatically re-runs exactly the Evidence a committed ECT's real revalidation_plan marked stale — only for entities carrying a replayable metadata["replay"] = {tool_id, args} recipe (e.g. twin.evaluate_metric's own evidence). Records fresh Evidence superseding the stale one for each; anything without a replay recipe (hand-authored evidence, or a non-evidence entity the impact walk reached, e.g. a Constraint) is reported manual_review_needed, never guessed at. Does NOT attempt property-level impact through Constraint.dependencies (that field doesn't exist yet — explicitly deferred) or show anything on the dashboard (no ECT-related UI exists yet — both are their own separable follow-ups)unit-verified
twintwin.rank_sensitivityOne-at-a-time finite-difference sensitivity of a metric's margin against its critical parameters, against a CAD work product's own recorded geometry (target lifecycle spec App. A Solver / step 15). metric="tip_deflection" ranks wall_thickness_mm and length_mm (a new hollow-rectangular-tube deflection formula, twin_core/prediction/evaluator.py's hollow_tube_tip_deflection_mm — the solid-beam model has no wall-thickness concept at all); metric="mass" ranks wall_thickness_mm (continuous, hollow_tube_mass_kg) and candidate materials (categorical — ranked by the actual margin delta from swapping material, not a derivative; densities/elastic moduli resolved from tool_registry.tools.cadquery.materials, the existing table, not a second one). Records the ranking as Evidence, valid_against the work product. No dashboard tornado-chart UI — result is MCP-tool/Evidence onlyunit-verified
twintwin.evaluate_metricTiered evaluator (target lifecycle spec §30, "minimum sufficient fidelity"): a tier-0 closed-form cantilever-beam hand-calc (twin_core/prediction/evaluator.py) against a CAD work product's own recorded geometry (bounding_box), escalating to a real tier-2 calculix.run_fea call (via a lazily-bound MCP bridge, api_gateway/server.py's _LazyBridge) when the estimate's margin to a supplied limit_mm falls inside its error band. Only metric="tip_deflection" is implemented. Every tier's result is recorded as Evidence pinned (valid_against) to the work product's current revision. Tier-2 requires the caller to already have a generated mesh + node sets (tier2: {mesh_file, fixed_node_set, load_node_set, material, load_force_n}) — this tool does not derive FEA boundary conditions on its own; with escalation but no tier2 args, it returns a clear "not attempted" result rather than guessing node-set names. Tier-2's persisted Evidence carries an explicit "tier": 2 key (the raw calculix.run_fea output never named its own tier, forcing any consumer to guess it from producer.tool string matching)unit-verified
twintwin.evaluate_thermal_metricSingle-tier thermal analysis evaluator: runs a real calculix.run_thermal steady-state conduction call (via the same lazily-bound MCP bridge pattern as twin.evaluate_metric's tier-2) and records its real peak-temperature result as Evidence pinned to a work product's current revision — closing the gap where the thermal analysis had no path into the requirements matrix/coverage numbers. Unlike twin.evaluate_metric, deliberately single-tier: there is no cheap hand-calc gate before running the real solver, since thermal analysis has no equivalent closed-form estimate to gate on. Optional cross_check also runs calculix.cross_check_thermal_steady_state against the same result; optional rated_max_temp_c reports within_rating. Wiring the other two new analysis types (modal, joint-loads) into this same evidence-recording pattern is explicitly deferred to their own future tickets — this demonstrates the pattern for one, not all threeunit-verified
twintwin.evaluate_overhang_metricDesign-for-manufacture check: runs a real freecad.list_named_faces mesh face-table lookup (the same real per-face average-normal computation already built for FEA boundary-condition selection) and flags faces tilted past a threshold (default 45 degrees, the standard FDM self-supporting overhang convention) from the vertical build axis, recording the result as Evidence pinned to a work product -- same "run a real tool, record its output as graph-checkable Evidence" pattern as twin.evaluate_thermal_metric. Deliberately undirected: the underlying mesh normal isn't guaranteed to point outward (see api_gateway/twin/dfm_evidence.py's module docstring), so this flags near-horizontal faces either way rather than risk a confidently-wrong directed check -- it will also flag a harmless flat top surface alongside a real unsupported overhang. Advisory only, not wired into twin.attempt_promotion. Scoped to one process (3D-print overhangs) and one rule of the ticket's own CNC/3D-print/sheet-metal breakdown -- CNC tool-access checking, minimum-wall-thickness measurement, and sheet-metal DFM each need geometric primitives this codebase doesn't have yet and are separate future ticketsunit-verified
twintwin.create_release_packageBundles a project's current hierarchy/BOM/evidence/decision node ids into one new release_package EngineeringEntity -- a versioned snapshot, never a deep copy of the referenced items' content. Gated at creation time on twin_core.consistency.gates.evaluate_g8_release returning PASSED -- G8 (baseline fixed, no stale evidence, verification coverage complete, waivers approved, a release_approval entity approved) existed before this ticket but was purely advisory; this is its first real consumer with teeth, refusing creation and naming every failing check if the gate hasn't passed. A real TraceabilityAgent-backed accessor is injected so G8's "verification complete" check can actually evaluate. "Diff against previous release" is a simple count delta (hierarchy/BOM/evidence/decision, current minus the immediately-prior package) -- not a full structural diff, no such utility exists in twin_core. Drawings are always an empty list (drawing generation hasn't shipped). The snapshot also pins a design_files manifest (each CAD item head by KEY@n, and the newest Gerber, position, BOM, firmware, schematic, board and G-code file, each with its content hash) and a manifest_sha256. GET /v1/releases, POST /v1/releases expose the same create/list actions to the dashboard's "Release packages" section on /requirementsunit-verified
twintwin.create_baselineFollow-up to Exposes the pre-existing, real twin_core.transactions.baseline.create_baseline so G8's "configuration baseline fixed" check (and, through it, twin.create_release_package) can actually become satisfiable on a real project -- before this, nothing in tool_registry/api_gateway ever called it. Auto-discovers the project's current Constraints and EngineeringEntitys (the only two ControlledEntityKinds a Baseline can pin) rather than requiring the caller to enumerate member ids, atomically pins each one's current revision and advances its authority to baselined via the real optimistic-concurrency TransactionEngine.commit path (a member that changed underneath the call aborts the whole baseline, no partial write). Requires project_id, approved_by (non-empty), reason. Destructive and never policy-approved; when the owner sets METAFORGE_ALLOW_AGENT_RELEASE=true and the MCP request names the agent and the person (X-MetaForge-Agent, X-MetaForge-On-Behalf-Of), it runs unheld as a delegated approval and records approved_by agent:<agent> on behalf of <person> (see delegating a release). Rejects a project with zero constraints/entities rather than creating a vacuous baseline. Multiple baselines per project are valid. Also pins every current item of the project (KEY@n, result item_count/items), so a parts-only project can be baselined; gate approvals now record an item baseline on their own. REST: GET /v1/twin/baselines, /baselines/{id}, /baselines/diff, /items/{key}/diff, /current-view, /runs/{run_id}/changes, /revision-indexunit-verified
twintwin.generate_test_planTest plans generated from requirements: for every Constraint on a project with verification_method == "test", mechanically derives one new verification_case EngineeringEntity from the requirement's own structured metric/operator/limit/unit/target_node_type fields -- a test step ("Measure {metric} on {target_node_type}; acceptance: {metric} {operator} {limit}{unit}") plus its acceptance value, pure string formatting over existing data, no new authoring/synthesis. Deliberately process-generic -- works for whatever real requirements a project actually declares verification_method="test", not hardcoded to the ticket's own illustrative "payload, reach, repeatability" categories. Out of scope: FMEA, HALT/HASS, reliability modeling (later-phase per MetaForge-Planner's FRAMEWORK_MAPPING.md); bench-equipment/procedure authoring; wiring generated cases into evaluate_g8_release's verification-complete check. GET /v1/testplans, POST /v1/testplans expose the same list/generate actions to the dashboard's "Test plan" section on /requirementsunit-verified
twintwin.create_bringup_checklistAssembly bring-up checklist from the hierarchy + joint list: a work product's real metadata.assembly.joints is flat and unordered, so this topologically sorts the base->follower dependency graph into a real build order and records one new bringup_checklist EngineeringEntity whose metadata carries the ordered steps ("Step {n}: attach {follower} to {base} via {name} ({type} joint)"). Raises rather than guessing at an order if the joint graph is cyclic; multiple independent root parts (parallel subassemblies) are valid. Out of scope: any 3D visualization (exploded or cross-highlight -- neither exists as reusable infrastructure in this codebase); EVT/DVT/PVT staging distinctions; writing to the literal tests/bringup.md project-structure file (a different mechanism than this Twin-graph-backed capability). GET /v1/bringup, POST /v1/bringup expose the same list/create actions to the dashboard's "Bring-up checklist" panel on the Structure tabunit-verified
twintwin.create_firmware_scaffoldFirmware scaffold from pinmap + joint list: reuses twin.create_bringup_checklist's own topological build order over a work product's real metadata.assembly.joints to assign each joint a deterministic, 1-indexed CAN node ID -- a placeholder scheme, not a real hardware-specific allocation, since no target MCU or bus topology exists anywhere in this codebase to derive one from. Records a pinmap work product (CSV table, mirrored into its own metadata for direct dashboard reads) and a firmware_source work product (a minimal #ifndef-guarded C header: one joint_config_t struct literal per joint carrying can_id/lower_limit/upper_limit) via the generic document_recorder facade api_gateway/runs/fw_handlers.py's own design-flow phase already uses -- both linked back to the source assembly. Raises the same AssemblyGraphError as the bring-up checklist on a cyclic joint graph. Out of scope: real CAN bus protocol/message-format implementation; control-loop/PID logic; real GPIO/MCU-specific pin assignment beyond the CAN-ID placeholder; RTOS configuration (domain_agents/firmware's existing generic configure_rtos skill already covers this); hardware-in-the-loop testing. POST /v1/firmware/scaffold exposes the same create action to the dashboard's "Firmware" panelunit-verified
twintwin.get_harness_estimatePower-tree view + harness list per joint. The power-tree half needed no new tool -- twin_core.consistency.hierarchy_rollup's compute_hierarchy_rollup has computed real per-branch draw_peak_w/draw_average_w/output_w/dissipation_w, but nothing surfaced them past the backend; GET /v1/twin/hierarchy's HierarchyNodeResponse now carries them alongside the existing massKg/cost fields, turning the Structure tab's existing tree into a power-tree view with zero new route. This tool is the "harness list per joint" half: a work product's real metadata.assembly.joints anchors are expressed relative to each joint's own parent frame (confirmed on the real AR4 robot_description -- a standard URDF/kinematic-tree convention), so a single straight-line distance from one fixed origin would be physically meaningless on raw relative coordinates. Instead this sums each joint's own anchor-offset segment length along the real base->follower kinematic chain (the same topological order twin.create_bringup_checklist derives) -- a "cable routed along the arm's links" ESTIMATE, not a real routed path. Out of scope: real connector/wire-gauge selection (no schema concept exists); a real routed cable path; real motor-driver component selection/sizing (the motor_driver/esc taxonomy categories already exist in digital_twin/catalog/taxonomy.py but no real BOM line uses them, a separate ticket). GET /v1/wiring/harness-estimate exposes the same computation to the dashboard's "Harness estimate" panel on the Structure tab (named /v1/wiring/..., not /v1/harness/... -- that path already exists for this codebase's unrelated chat/execution harness admin routes)unit-verified
twintwin.attempt_promotionThe first gate in this system that actually REFUSES rather than only reports (twin_core.consistency.gates's G3-G8 gates stay purely advisory — unchanged by this ticket). Checks each of required_claim_ids against §2.15's own live build_requirement_matrix status; pass → satisfied, uncertain/stale → blocks, fail/no_data → blocks unless an APPROVED waiver EngineeringEntity names that exact requirement id in its parent_refs (reuses G8's own _evaluate_waivers_check pattern, now scoped per-requirement rather than a blanket scan). Even with every required claim satisfied, promotion needs a human — and that human is the person who approved the call, not a decided_by string the caller supplies. The call is always held for approval (the local-stdio exemption does not cover it), a supplied decided_by is an error rather than a silent drop, and an approval that identifies nobody is refused rather than recorded as anonymous. Persists an immutable MaturityGate record either way (whether promoted or refused), so "why wasn't this promoted" always has a real, queryable answer. decided_by is now recorded on every attempt, not only a promoted one. Gained comment (a reviewer's own rationale, distinct from the system-derived blocked_reason) and reject (a human veto that refuses a promotion EVEN IF every required claim passes — the evidence gate is necessary, never sufficient, to override a reviewer's own judgement). Exposed to the dashboard's new "Gate review" section on /requirements via POST /v1/promotion/attempt / GET /v1/promotion (the latter wraps the previously-unsurfaced twin.list_maturity_gates)unit-verified
twintwin.optimize_parameterBisection search for the minimum-mass wall_thickness_mm meeting deflection_limit_mm and sf_limit (safety factor), against a CAD work product's own recorded geometry (target lifecycle spec App. A Optimiser, step 10). "Over Design IR parameters" (the ticket's own Jira wording) doesn't correspond to anything real — twin_core/design_ir/ is a CAD-authoring op sequence, never persisted onto a committed work product — so this searches wall_thickness_mm instead, the parameter twin.rank_sensitivity already found dominant. Mass is the stated objective, not a third constraint (the project's moving_mass_budget covers the whole assembly, not one part in isolation, and no per-part budget allocation exists to check a share of it against). Both constraints are monotonic in wall thickness, so bisection finds the exact minimum-mass feasible point, not a heuristic. New tier-0 safety-factor hand-calc (cantilever_max_bending_stress_mpa) needed a real yield-strength table — tool_registry.tools.cadquery.materials.MATERIAL_YIELD_MPA/resolve_yield_mpa, same discipline as the existing elastic-modulus table. Records the search as Evidence pinned to the work product; a feasible winner is also recorded as a Decision via the EXISTING twin.record_decision (no new "Decision with alternatives" node type — that mechanism already is exactly that), each rejected candidate as an alternative, and linked back to this same run's own Evidence via evidence_refs (a real SUPPORTED_BY edge, not just a rationale string). Does NOT propose/commit an actual geometry change (ControlledEntityKind doesn't support work_product yet — a separate, nontrivial ECT widening; no parametrized re-authoring script exists for the real arm part either) or attempt automatic FEA boundary-condition derivation (same real, unsolved gap twin.evaluate_metric already documented) — a numeric recommendation only. max_iterations (default 60) is the real, honest iteration budget, echoed back in the response — this tool makes zero LLM calls, so there is no token cost to report. No dashboard UIunit-verified
twintwin.register_device_instanceRegister a specific manufactured unit (serial-number-level) of a product as a DeviceInstance (target lifecycle spec App. B REALISE, step 11) — the model existed since before this epic but had no CRUD or MCP tool until now. Optionally links it via an INSTANCE_OF edge to the design revision (a WorkProduct) it was built from, when design_revision_ref resolves to one; product_id stays a free-text identifier, never assumed to be a resolvable graph ref, since a unit can be registered without a born-digital design record on handunit-verified
twintwin.start_design_loop / twin.get_design_loop / twin.approve_design_loopClosed loop: propose → build → simulate → evaluate against constraints → revise → repeat, until pass or proven infeasible, with an iteration budget (target lifecycle spec's "dual state machine"). Does not reimplement the search — composes twin.optimize_parameter unchanged, then persists EVERY candidate it evaluates as a real, queryable DesignLoopIteration node (linked via SUPERSEDES/CONSTRAINED_BY) instead of the one opaque Evidence blob. get_design_loop returns the full iteration timeline; approve_design_loop records a human's approval of the converged winner (raises if the loop never converged — the "with a human approving at gates" half of this ticket's own yardstick line). When the optimizer records a Decision for the winning candidate, start() also links it to that winning DesignLoopIteration via a real GENERATED_FROM edge — a reader can walk from the converged winner straight to the Decision it produced. The duplicate-commit guard: start() hashes {work_product_id, **optimize_kwargs} and, on a hit against an earlier identical call, returns that prior loop's already-persisted result (duplicate: true) instead of re-running the bisection and writing a second iteration subtree; max_iterations (the real iteration budget, not "tokens" — this loop makes zero LLM calls) is now threaded through and echoed back alongside iteration_count. Evidence-gated blocking, an eval harness, true multi-objective/Pareto-front search remain separate ticketsunit-verified
twintwin.start_tube_height_design_loopA second real parameter over the SAME closed-loop machinery above — sweeps height_mm, wall_thickness_mm held fixed, over the identical hollow-tube hand-calc twin.optimize_parameter already uses; proof start_design_loop's own candidate ingestion generalized beyond a single hardcoded parameter (parameter_name/metric/candidate_mapper, defaulting to the exact prior wall-thickness behavior — the full pre-existing design-loop test suite passes unchanged as the regression proof), not a second, separate loop implementation. twin.get_design_loop/twin.approve_design_loop work unchanged — they already read/update any DesignLoopIteration by loop_id. The dashboard's Design Loop section gained a small hand-rolled inline-SVG sparkline (objective vs iteration, no chart library in this codebase) and generic column headers reading parameter_name/metric off the fetched iterations, rendering correctly for either loop kindunit-verified
twintwin.record_measurementRecord a real-world measurement against an interface quantity (target lifecycle spec App. B REALISE/LEARN, step 11) — e.g. a measured tip deflection on a built unit. Appends the value to the named metric on an interface embedded in a system_architecture work product (explicit work_product_id, or the project's one such document, on the one-per-project assumption), and links the measuring DeviceInstance via a new MEASURED_BY edge. When predicted_value is supplied (e.g. from a prior twin.evaluate_metric call — the natural, honest composition, never fabricated here), records the residual as Evidence for calibration; the first real prediction a quantity gets backfills its previously-unset predicted field, never overwrites an existing one. digital_twin/calibration/store.py turns residuals into a real band (k * stddev(|residual|), k=2.0, needs >=3 samples — below that the caller's fixed prior is unchanged) that twin.evaluate_metric now reads INSTEAD of its fixed 0.2 prior once enough history exists, scanned across every project on purpose since calibration is meant to inform the NEXT project, not cache per-project (band_source/calibration_sample_count in the response say which was used). Deliberately NOT full conformal prediction — running stats is the smallest real thing the ticket's own acceptance wording needs. Gerbers/pick-and-place export (a separate bullet in this ticket's own Jira Scope) deliberately deferred: the yardstick project has zero PCB artifacts to honestly demonstrate against, and the ticket's own Acceptance never exercises itunit-verified
twintwin.record_hierarchy_nodePersist one position in the project's product hierarchy tree (product/system/subsystem/assembly), nested via a real CONTAINS{quantity, placement} edge from an optional parent; realized_by_node_id/instance_of_node_id link a position to the cad_model/robot_description geometry or BOMItem that actually fulfils itunit-verified
twintwin.compute_hierarchy_rollupSum mass/cost over one branch of the product hierarchy (a root id and everything it CONTAINS, recursively, weighted by each edge's own quantity), reading mass_kg from REALIZED_BY-linked cad_models and cost from INSTANCE_OF-linked BOMItems — computed live, never cached, so it can't go stale relative to its children. Every BOM line is listed in cost_lines with its branch quantity and extended cost; when any line has no price, cost_partial is true, priced_lines of total_lines says how many are priced, unpriced_lines names the rest, and cost is the priced lines only, a lower bound. A cost budget allocation checked against a partial cost is reported over_budget: null with reason cost_is_partial unless the priced lines alone already exceed itunit-verified
twintwin.realize_hierarchy_node"Replace placeholder with part": attach or REPLACE a hierarchy node's REALIZED_BY (a cad_model work product, e.g. from twin.import_work_product/the FreeCAD authoring tools) and/or INSTANCE_OF (a BOMItem, e.g. from twin.record_component_selection/twin.select_component) geometry after the node already exists — twin.record_hierarchy_node only ever sets these once, at creation time. Any existing edge of that type is removed first, so a node always has at most one of each. Classified DESTRUCTIVE (unlike the ADDITIVE twin.record_hierarchy_node) since it genuinely replaces prior state. POST /v1/twin/hierarchy/{node_id}/realize exposes the same action to the dashboard's Structure-tab "Replace placeholder with part" panel (upload a real STEP file via the existing POST /v1/twin/import, with a real GLB preview via the existing GET /v1/twin/nodes/{id}/model, or pick an already-recorded BOMItem)unit-verified
runrun.start_design_flowStart a gated design lifecycle (hardware_v1 / mech_v1 / design_v1 / concept_v1) for a goal, project-scoped; every phase gate still requires human approvalunit-verified
runrun.get_statusCheck a design-flow run's status / gate reason / resultunit-verified
design_flowflow.listEvery launchable flow with its phases, gates, required deliverables and whether it passes the server-enforced invariants (read), plus the domain fragments a proposal can compose in. Served by the sidecar from GET /v1/design-flows and GET /v1/design-flows/fragments when METAFORGE_GATEWAY_URL is setunit-verified
design_flowflow.proposeTailor a template to an intent and hold it for a person: returns the changes, a flow version id and an approval id, and starts nothing. Missing route, maturity or loads returns status: needs_input with questions instead; the sidecar passes manufacturing_context, target_maturity, loads_and_use and budget through unchanged. manufacturing_context.machine_ids names machine-library instances; their limits go into the frozen flow context (an unknown id is refused), and with none named every available instance is listed. add_fragment (value: a fragment id) composes a domain's tasks into the flow, with dependencies derived from the items they read and write; the response carries composition.external_inputs that must be recorded with a source (Composable Design Flows). Writes, but the call is not held: the version it creates is the one approval. The sidecar posts it to POST /v1/design-flows/propose, so the approval lands in the gateway's ledgerunit-verified
design_flowflow.start_runStart a run on a flow version a person has approved; refused with an explanatory message until then, on either flow engine. Not held at the call, since the version approval is the authorisation. Optional intelligence: client runs every phase on the connected client instead of a server model. Via POST /v1/runs from the sidecarunit-verified
design_flowflow.await_gateWait for a run's next gate and ask the person in the client's chat to decide it (MCP elicitation). Offers only the decisions the gate allows; a dismissed prompt leaves the gate open. Defaults (30 s wait, 80 s answer) fit a 120 s client call. Not held at the call. GET /v1/approvals/gate:{id}, POST /v1/approvals/gate:{id}/inline-decisionunit-verified
design_flowphase.list_tasksPhases of client-mode runs waiting for a client (read). GET /v1/client-tasksunit-verified
design_flowphase.claimTake a waiting phase and get its brief. Held for a remote caller like any write. With METAFORGE_CLIENT_TASK_WRITES on, the claiming session's later writes in the run's project are not held. POST /v1/client-tasks/{id}/claimunit-verified
design_flowphase.submitHand a claimed phase back with a summary and the ids recorded; the gate then checks the twin. outcome: incomplete says the objective was not met, and the gate then reads not ready. Held for a remote caller like any write. POST /v1/client-tasks/{id}/submitunit-verified
design_flowflow.statusPhase-by-phase state of one run, unknown when the engine cannot be queried (read), via GET /v1/runs/{id}/flow-state from the sidecarunit-verified
design_flowflow.compile_intentThe structured intent: goal versus immediate request, categorised constraints, measurable success criteria, unknowns marked blocking. Deterministic, stores nothing (read). POST /v1/design-flows/intentunit-verified
design_flowflow.capabilitiesPer-phase tool coverage and the gap register with severities and workarounds, against the live registry and adapter health, optionally for a profile (read). GET /v1/design-flows/{flow}/capabilitiesunit-verified
design_flowflow.lifecyclePer-phase execution, eligibility, validity (stale from twin item history) and objective status, gaps, requirements and the completion verdict (read). GET /v1/runs/{id}/lifecycleunit-verified
design_flowflow.verify_completionThe completion verdict alone: COMPLETED_VERIFIED only when every mandatory requirement passes with current evidence (read). Full tool set onlyunit-verified
design_flowflow.patchPropose a patch to a running flow (held for a person; re-runs only what it touches) or apply an approved one. POST /v1/runs/{id}/patchesunit-verified; Temporal path integration-tested
constraint (default)constraint.validatePre-flight validate proposed graph changestier1/constraint-hp.md
library (gateway store)library.list_machinesThe machine library: models (a machine type and what it can do) and instances (one machine, with status, location and route in_house or vendor), narrowed by layer and kind. A new install is seeded with common models (laser cutters, FDM printers, CNC routers) from twin_core/library/data/machine_models/, each value a manufacturer_spec citing the official page it was read from; the seed adds only models the library lacks, by make and model, never overwrites one, and records seed:machine_models as their author. METAFORGE_LIBRARY_SEED=off turns it off. GET /v1/library/machines (read)unit-verified
library (gateway store)library.get_machineOne machine with every capability, its unit and source, and its version history. GET /v1/library/machines/{id} (read)unit-verified
library (gateway store)library.machine_limitsAn instance's effective limits (its own capabilities over its model's) as a rank_manufacturing_processes candidate and check_manufacturability limits (envelope, wall thickness, feature size, overhang angle, bend radius, inside corner radius from half the smallest tool diameter), each citing its source; needs_review names the assumptions. A capability with no figure is absent, so DFM reads it as unknown. GET /v1/library/machines/{id}/limits (read)unit-verified
library (gateway)library.discover_machineReads a 3D printer's controller (OctoPrint /api/version, /api/printerprofiles, /api/printer; Moonraker /printer/info and the Klipper configfile; PrusaLink /api/version, /api/v1/info, /api/v1/status) and returns a proposed instance: build volume (OctoPrint) or axis travel (Klipper), nozzle and state, each as machine_report with the endpoint and time read, plus the figures no controller reports. Registers nothing; registering is library.register_machine. The API key is read on the gateway from credential_env (METAFORGE_MACHINE_* only) and sent as X-Api-Key; only parsed figures come back. Read-only, open-world. POST /v1/library/discoverunit-verified with mock controllers
library (gateway)library.dispatch_jobSends a G-code work product to an idle in-house printer with an OctoPrint (POST /api/files/local, select and print) or Moonraker (POST /server/files/upload, print) connection and starts it, pinning the part's current revision. Refuses a machine that is busy, not available in the library, or a vendor's, and anything that is not G-code. Destructive and held for the person on every call. POST /v1/library/jobsunit-verified with mock controllers; no live print
library (gateway)library.job_statusThe job as its machine reports it now (OctoPrint /api/job, Moonraker print_stats and virtual_sdcard), normalised to idle, printing, paused, complete, cancelled, failed or offline. job_state: unknown when another file is on the machine. Read-only. GET /v1/library/jobs/{id}/statusunit-verified
library (gateway)library.record_job_resultOnce a job has ended, records demonstration evidence pinned to the part revision it was sent for, with the outcome read from the machine rather than given by the caller; a stopped or failed print is recorded as not made. Recording twice returns the first record. Additive, held. POST /v1/library/jobs/{id}/resultunit-verified
library (gateway store)library.register_machineAdd a model or an instance. Every capability needs a known name, its unit and a source (manufacturer_spec, measurement and machine_report need a reference; assumption is flagged for review). A connection holds the protocol (octoprint, moonraker, prusalink or none), an http(s) URL and credential_env, the name of a gateway environment variable that must start METAFORGE_MACHINE_ (the gateway sends it to the machine's URL, so no other secret can be named); a field that looks like a secret is refused. Held for approval. POST /v1/library/machinesunit-verified
library (gateway store)library.update_machineChange processes, capabilities (merged by name) and, for an instance, status, location, name, route or connection; the previous version is kept. Held for approval. PATCH /v1/library/machines/{id}unit-verified
library (gateway store)library.list_processes, library.get_processManufacturing processes in the library: family, the machine kinds that run it, the material families it makes, and rules (wall thickness, hole diameter, inside corner and bend radius, feature size, draft, overhang, envelope, tolerance), each with a source and optionally limited to one material family. GET /v1/library/processes[/{id or name}] (read)unit-verified
library (gateway store)library.list_components, library.get_componentComponents: modules, batteries and electronic parts (maker, order code, datasheet link, interfaces) as well as mechanical parts. Mechanical components: standard parts (dimensions from a standard's table) and purchased parts (a supplier's CAD and part numbers), with typed, sourced specs (thread, length, head and socket sizes, bore, OD, width, dynamic and static load, speeds, mass, travel, force, torque), a geometry generator or STEP reference, a library material and supplier part numbers. GET /v1/library/components[/{id or name}] (read)unit-verified
library (gateway store)library.standard_partBuilds a standard part from its standard's table without storing it: ISO 4762 socket head cap screws (size and length), ISO 4032 hex nuts, ISO 7089 plain washers, ISO 2338 parallel pins (diameter and length, its designation), deep groove ball bearings by designation. A designation alone is read as people write it (ISO 4762 M4x25, M2.5x6 for a screw, ISO 7089 M4, ISO 2338 4x30), the same reading twin.build_assembly gives its fasteners. Every dimension cites its table row (bd_warehouse data, Apache-2.0, vendored in twin_core/library/data/bd_warehouse); a size or length the standard lacks is refused. GET /v1/library/components/standard (read)unit-verified
library (gateway store)library.list_appearances, library.get_appearanceAppearances: colour, material and finish entries. Finish, a colour named in its system (RAL, Pantone, NCS, supplier, custom) with a sourced on-screen srgb_hex, texture reference, sourced surface properties (gloss at 60 degrees, coating thickness, Ra) and render parameters (roughness, metallic), and the library materials and processes it applies to. family filters by finish. GET /v1/library/appearances[/{id or name}] (read)unit-verified
library (gateway store)library.register_appearance, library.update_appearanceAdd or change an appearance; an unsourced colour value, an unknown property or finish, or a render parameter outside 0..1 is refused, an assumed value is flagged for review, every change is versioned. Additive, held. POST/PATCH /v1/library/appearancesunit-verified
library (gateway store)library.list_ergonomic_limits, library.get_ergonomic_limitErgonomic design limits: min and/or max for a feature kind (grip diameter/width, handle length, finger clearance, button size, operating height, reach in mm; actuation force in N; product mass in kg), what it applies to, the population and the source. family filters by feature kind; check_ergonomics takes an entry as it is. Seed: 30 limits from MIL-STD-1472H (2020), each cited to its clause or figure (twin_core/library/data/ergonomic_limits/). GET /v1/library/ergonomic-limits[/{id or name}] (read)unit-verified
library (gateway store)library.register_ergonomic_limit, library.update_ergonomic_limitAdd or change a limit; an unknown kind, a wrong unit, no bound, min above max, no population or no source is refused; an assumed value is flagged for review; every change is versioned. Additive, held. POST/PATCH /v1/library/ergonomic-limitsunit-verified
library (gateway store)library.register_component, library.update_componentAdd or change a component; a standard part names its standard, specs have fixed units and sources, every change is versioned. An electronic part also takes datasheet ratings (absolute maximum, recommended operating, electrical; min/typ/max with conditions), lifecycle and ecad (KiCad symbol and footprint), each sourced, and every read reports part_data, what the part still lacks (real part data). Additive, held. Every library.register_* and library.update_* runs without the hold for an agent the owner delegates human authority to (METAFORGE_ALLOW_AGENT_HUMAN_AUTHORITY, both agent headers): the history records agent <agent> on behalf of <person> and each version's authority is delegated, never verified by the person. No policy approves these; library.dispatch_job is never delegated. See an agent's own uploads and library entries. POST/PATCH /v1/library/componentsunit-verified
library (gateway store)library.list_organisations, library.get_organisation, library.register_organisation, library.update_organisationOrganisations (manufacturers, distributors, fabricators, test labs): roles, aliases, approved/unreviewed/blocked status, country, regions served, certifications, contacts by role, lifecycle policy, vendor connector. family filters by role; get takes the id or any recorded spelling. Components (manufacturer_org, each offer's org) and service-bureau machine instances (operator_org) point at them. GET/POST/PATCH /v1/library/organisations[/{id or name}], GET /v1/library/organisations/resolve?name=, POST /v1/library/organisations/migrate[?apply=true]unit-verified
library (gateway store)library.searchOne ranked text search across every library kind (components with their makers' and sellers' spellings and SKUs, organisations, materials, processes, machines and their operators, appearances, ergonomic limits); every word must match; each result names the fields that matched. Filters: kinds, role, region (Global passes all), status; a component made or sold only by blocked organisations is flagged. GET /v1/library/search?q=&kind=&role=&region=&status=&limit=unit-verified
component_findercomponent.find, component.adoptFind a part for a need in one call: the library first (library.search), then every configured distributor, then (when those find little, or web: on) the configured web search; ranked lists with where each candidate came from, in_library, blocked and what is still unknown, and what was searched with each distributor's answer. adopt registers a chosen distributor part in the library with its live price breaks and stock as a dated offer, sizes, pins, ratings and KiCad ids only as given from the datasheet, and the distributor's lifecycle status sourced to its page; refuses a part already held; held for approval. Borrows the distributor adapters and the library bindingunit-verified
library (gateway store)library.process_limitsA process's rules as check_manufacturability limits and a rank_manufacturing_processes candidate (achievable tolerance, minimum feature), each citing its source; with a material, only the rules for its family apply, and a process not recorded as making that family is refused. GET /v1/library/processes/{id or name}/limits?material= (read)unit-verified
library (gateway store)library.register_process, library.update_processAdd or change a process. Rule kinds and units are fixed (mm, deg); standard, datasheet, manufacturer_spec, supplier and measurement sources need a reference, assumption is flagged for review; names are unique identifiers; every change keeps the previous version. Additive, held. POST/PATCH /v1/library/processesunit-verified
library (gateway store)library.list_materials, library.get_materialMaterials in the library: family, designation, forms, the processes they suit, and typed properties with sources (density, stiffness, Poisson's ratio, yield, ultimate and fatigue strength, bending strength along and across and tension across the grain (woods and panels, which have no yield point), elongation, thermal conductivity and expansion, service and melting temperature, cost per kg with its currency, and across-the-grain stiffness and yield). A material may also list the stock sizes it is sold in (stock: form, thickness, width and length, each sourced; a sheet, board or plate gives all three). A new install is seeded from twin_core/library/data/materials/ with birch plywood by thickness (Riga Ply 4, 6.5, 9, 12, 15 and 18 mm: characteristic strengths and mean stiffness from the manufacturer's handbook, with its sheet formats) and fluted beech dowels (Bosch 6, 8 and 10 mm; Ostermann 8 mm to DIN 68150) as components. The seed adds only entries the library lacks by name, never overwrites one, records seed:materials as their author, and follows METAFORGE_LIBRARY_SEED=off. No manufacturer publishes a dowel joint strength, so none is seeded. GET /v1/library/materials[/{id or name}] (read)unit-verified
library (gateway store)library.register_material, library.update_materialAdd or change a material; properties merge by name, units are fixed, the same source rules apply, every change is versioned. No material ships built in. Additive, held. POST/PATCH /v1/library/materialsunit-verified
vendor (gateway)vendor.list_connectorsThe vendor connectors configured on the gateway, each with its services, mode (sandbox or production, from METAFORGE_VENDOR_<ID>_MODE, sandbox unless set) and live auth (ok, missing, refused, unreachable, ...). health.check reports the same under vendors. Read-only. GET /v1/vendors/connectorsunit-verified with a fake vendor
vendor (gateway)vendor.quotePrice a job through one connector: service, items (work products or part numbers) and quantity. Recorded in the vendor store and in the twin as a procurement_record with the vendor, mode, reference and validity. Failures are typed (auth, config, rate_limited, unreachable, refused, protocol, not_supported), never an empty success. Additive, held. POST /v1/vendors/quotesunit-verified
vendor (gateway)vendor.place_orderOrder a stored quote; refused when it has expired, was already ordered, or the connector's mode changed since. Recorded in the twin linked to its quote. Can spend money: destructive and held on every call. POST /v1/vendors/ordersunit-verified
vendor (gateway)vendor.order_statusThe order as the vendor reports it, normalised to placed, in_review, in_production, shipped, delivered, cancelled or failed. Read-only. GET /v1/vendors/orders/{id}/statusunit-verified
vendor (gateway)vendor.handoffsFor vendors with no ordering API (AISLER, Craftcloud, Xometry, SendCutSend, and online laser and sheet services by region: RazorLAB, CutLaserCut, Fractory in the UK; Formulor, LaserBoost, Xometry Europe in the EU; OSH Cut, Ponoko in the US, each noting whether it cuts wood): which take a service, their upload page, accepted formats, which of the given work products fit, and each file's gateway download_path. Sends nothing and calls no vendor; the catalogue is MetaForge's own (compiled 2026-10-13, not checked against each vendor's live page), so the person confirms formats on upload. Read-only, closed-world. POST /v1/vendors/handoffsunit-verified
files (gateway, sidecar, local plugin)files.importStages small files sent as content in the call (text, or content_base64), up to 8 MB in all; a zip is a folder. Each file is checked like an import and reported with the type it becomes or why it was left out; nothing reaches the twin until a person approves the upload (kind upload in /v1/approvals). Not held at the call, since the upload is the approval. POST /v1/uploads/inlineunit-verified
filesfiles.request_uploadOpens an upload and returns a signed url that takes files of any size: curl -T, multipart, or a browser page where a person picks files or a folder (for chat-only clients). Lifetime grows with expected_bytes. POST /v1/uploads/link, /v1/links/{token}unit-verified
filesfiles.decide_uploadApprove or reject an upload the calling agent staged itself, for the person it acts for. Only for an agent the owner delegates human authority to (the flag and both agent headers); refused at once otherwise, and refused for an upload another agent or a person staged. Recorded on the ledger as a delegated approval and on the upload's decision as the agent for the person. Destructive: no policy approves it. See an agent's own uploads and library entriesunit-verified
filesfiles.upload_statusAn upload's state and each file's outcome, with its work product id once approved. Read-only. GET /v1/uploads/{id}unit-verified
filesfiles.listA work product's files: the primary one and its named ones (design_files, image_files, mesh_files). Read-only. GET /v1/files/{id}unit-verified
filesfiles.readA file's content: text for text formats, base64 otherwise, up to 2 MB; a larger binary is refused with its size, a longer text is cut at max_bytes and says so. Read-only. GET /v1/files/{id}/readunit-verified
filesfiles.linkA signed download url for a file, valid 15 minutes plus 20 s per MB (24 h at most). Through the gateway (or the sidecar the client reaches), or a presigned object-store URL when METAFORGE_LINK_OBJECT_STORE_ENDPOINT is set. Read-only. POST /v1/files/{id}/linkunit-verified
files (local plugin only)files.import_localStages files or folders from the project folder on the person's machine (METAFORGE_LOCAL_FILES_ROOT, else the folder the client started in); nothing outside it is read. Not held at the callunit-verified
files (local plugin only)files.save_localWrites a work product's file into the project folder; refuses an existing file unless overwrite. Additiveunit-verified
cost (in-process)cost.estimate_manufacturingA rough per-unit and batch cost for CNC milling (stock volume x density x price; removed volume / removal rate x shop rate) or sheet metal (blank area x thickness x density x price; cut length / cut speed plus bends, x shop rate), with setup spread over the quantity. Every input is a figure with its source; nothing is built in or defaulted, and a missing figure leaves what needs it unknown. Always kind: estimate with not_a_quote and what it leaves out (finishing, tolerance and feature count, tooling, shipping, margin); for_ranking feeds rank_manufacturing_processes. Read-only arithmeticunit-verified
render (container, Chromium and three.js r169)render.model_viewsFixed views of a GLB rendered in headless Chromium through Playwright: iso, front, side, back, left, top, bottom and section (a cut along a CAD axis at a fraction of the extent); orthographic flat views with a floor grid, a scale bar and an optional dimension overlay from measured extents (dimensions, labelled with their source), the iso view in perspective, a neutral environment; up_axis z (default, as the STEP converter writes) or y. Returns one PNG per view, a contact sheet, view metadata and the mesh bounding box in mm, inline. three.js ships in the image, so it needs no network. The CAD design loop's eyes. Read-onlyunit-verified (page and plan logic without a browser); one real render in headless Chromium, run where Playwright is installed
blender (container, Blender 5.2.2 LTS)blender.renderStudio renders of a mesh model (glTF/GLB, STL, OBJ, PLY; convert STEP to GLB first; requests up to BLENDER_MAX_REQUEST_MB, 256 MiB by default, since the model travels inline as base64) with Cycles on the CPU, headless: named views (iso, front, back, left, right, top, bottom) and a turntable of up to 36 frames, resolution, samples, perspective or orthographic, transparent background, part colour overrides in sRGB (as a hex code or colour picker gives them; converted to Blender's scene-linear values), optionally with the surface's roughness and metallic; a part name that matches nothing is reported in unmatched_colours; model_up_axis (y, the glTF convention, or z) reads a GLB written in CAD's Z-up axes, as MetaForge's STEP converter writes them; the Standard view transform shows specified colours as given. PNGs returned inline; nothing left behind. Read-onlyunit-verified with a fake binary; run against real Blender 5.2.2 LTS
twin (injected)twin.delete_work_productPermanently deletes a work product: the node, its stored files and its links to every project, the same as DELETE /v1/twin/nodes/{id}. Destructive: always held for a person, and no approval policy may approve it. Needs a reason. A delete that would orphan dependents is refused before anything is touched; cascade deletes them too.unit-verified
twintwin.render_work_productStudio renders of a work product in the twin: a STEP part or assembly is converted to GLB by the same OCCT converter the dashboard viewer uses (so colours and part names come from the model, and the render is told the GLB is Z-up as the viewer is), a mesh (GLB, glTF, STL, OBJ, PLY) is used as is, and blender.render renders it with the same view, resolution, sample and colour options. appearances shows parts in library appearances: each is looked up with library.get_appearance, its sourced screen colour, render roughness and metallic go to Blender, and the render node records which appearance at which version it used (with any assumed values under needs_review); an unknown appearance, or a part given both a colour and an appearance, is refused before rendering. By default nothing is recorded (store defaults to false), so looking at a part never changes the twin; with store=true the PNGs are stored as a render work product linked to the model by GENERATED_FROM, carrying the model's content hash, in the model's project (both the node and the Projects junction). Over the standard tools/call the images arrive as MCP image content (lifted out of the sidecar's {tool_id, status, data} result wrapper), so a harness shows them in chat, and the JSON text carries no base64. Refuses rather than falls back: an unreachable OCCT converter (its stub mesh is empty, and is dropped from the conversion cache), a format that is not a model, or storage that failsunit-verified
twintwin.interpret_sketchA vision model reads a person's hand sketch or reference image (PNG, JPEG, GIF or WebP, at most 5 MB, sent as image_base64 + mime_type or named by the work_product_id of an uploaded image) and proposes concept intent as strict JSON: summary, parts, connections (each naming two of the parts, with a joint type), proportions and open_questions. The reply is validated with Pydantic; a reply that is not JSON or does not fit the schema is refused and nothing is stored. Every proportion is stored with tag: "assumption" whatever the model said. The image is kept as an image work product with metadata.authority = "illustrative", so twin.record_claim refuses it as an artefact, and the reading is kept in metadata.sketch_reading with status: "proposed". The model is the gateway's configured provider chain less the families that cannot carry an image (Gemini, Bedrock, Codex); no such provider, or none answering within METAFORGE_SKETCH_READING_TIMEOUT_S (default 120 s), is a clear error rather than a hang. Not in any capped profile; served under allunit-verified
twintwin.confirm_sketch_readingA person's confirm or reject of a proposed sketch reading, with an optional reason. A human-authority tool: the call is always held, the decider recorded in metadata.sketch_reading.decided_by is whoever approved the call, and a decided_by, approver or approved_by argument is an error. A reading is decided once. Only a confirmed reading is given to the concept phase (concept_selection) as input, and confirming changes neither the assumption tags nor the image's illustrative authority. Not in any capped profile; served under allunit-verified
twintwin.render_concept_sketchDraws a labelled concept sketch from a block layout and commits it as a design_sketch work product, with no image model. Each part is a named box or cylinder with a size and position in mm (or bbox_mm, the two corners of its bounding box, as a CAD assembly reports it) and a provenance tag: verified, intended, assumption or open. Connections name two parts and a joint type. The SVG is self-contained (no external references, no script) and deterministic, the same layout giving the same bytes. It carries front, side and top orthographic views with overall and main-part dimension lines, an isometric view, and an exploded isometric view with parts moved along their assembly axis and leader lines to labels. Each label gives the part name and its tag, drawn solid for verified, dashed for an assumption and dotted red with a "?" for an open question; a part schedule, a connections table and a title block reading "Illustrative concept sketch, not a design record" complete the page. A bad layout (unknown provenance, a size not above zero, a connection to a missing part) is refused before anything is written. Commits through the same recorder as twin.commit_design_sketch, so the sketch carries metadata.authority = "illustrative" and starts unapproved Every one of these concept tools reads the project's manufacturing context (component scopes it to one component), puts its block in the prompt where there is one, and records manufacturing_context_ref (MFC-*@n or unresolved), manufacturing_note and dfm_status (not_assessed) on the output; speculative: true records the context without applying it and labels the output "Speculative concept".unit-verified
twintwin.render_concept_imageAn image model draws an appealing concept image from a block layout and a short visual_brief (the product, its materials, its style). The layout is the layout_node_id of a sketch drawn by twin.render_concept_sketch (which keeps its layout in metadata.concept_layout) or an inline layout in the same schema; exactly one is required, and a bad layout or a node that is not such a sketch is refused before any paid call. The layout is rasterised as a grey isometric block image and sent through the provider's edit endpoint so the picture keeps the concept's proportions. An optional view (isometric by default, or front, left, back, right) rasterises a straight-on orthographic view from that side instead (front looks along +y with x to the right, back along -y with x mirrored, left along +x, right along -x; one shared scale), and the prompt asks for a straight-on orthographic view of that side with no perspective; the view is recorded in conditioned_on.view, with the layout's overall size as conditioned_on.layout_overall_mm, and returned as view. These views feed twin.generate_concept_mesh view_images. Committed as a render work product with metadata.authority = "illustrative", linked generated_from to the sketch, recording conditioned_on (layout source, content hash, sketch node, and image_conditioning: layout_png or none), the brief, the prompt, the provider and the model. The label "AI concept image, illustrative only" is drawn into the image (or carried by an SVG text element where Pillow is absent), and the image cannot back a requirement claim. Sizes 1024x1024, 1536x1024, 1024x1536. Opt-in and paid: METAFORGE_IMAGE_PROVIDER=openrouter with OPENROUTER_API_KEY (chat completions with the image output modality; METAFORGE_IMAGE_MODEL default google/gemini-2.5-flash-image) or openai with OPENAI_API_KEY (default gpt-image-1), and METAFORGE_IMAGE_TIMEOUT_S (default 120); unconfigured or timed out is a clear error that writes nothing Every one of these concept tools reads the project's manufacturing context (component scopes it to one component), puts its block in the prompt where there is one, and records manufacturing_context_ref (MFC-*@n or unresolved), manufacturing_note and dfm_status (not_assessed) on the output; speculative: true records the context without applying it and labels the output "Speculative concept".unit-verified with a fake provider; no real generation run
twintwin.generate_sketchAn image model draws a freeform product concept sketch, stored as an illustrative generated_sketch proposal. Modes: text (intent, constraints and a style: industrial_sketch, marker_render, line_art or concept_drawing), reference (the project's active references, each used for its role; verification evidence is never sent and a reference of another project is refused) or sketch (a saved SKT-* sketch drawn to an image and refined; the strokes are never changed); left out, the mode follows from sketch_key, then reference_ids, then text. mask (a polygon in sketch units) with mask_instruction edits one region: sent as a mask to a provider that takes one (openai), otherwise composited back outside it (openrouter); the pixels outside the mask and inside locked_regions are compared with the input and a proposal under the threshold is flagged review_required. negative and protected_features go into the prompt. n_variants defaults to 1 (at most 4). A proposal never replaces the accepted concept: a person accepts it in the Create view, which makes it the next revision of a GSK-* item. Every output records its prompt and negative prompt, style, mode, references and hashes, mask, sketch revision, provider, model, cost when reported, job and operation ids and base and target revisions, and is labelled illustrative (never an editable sketch, CAD or evidence). Runs as a job on its target (job_id, poll twin.job_status); a newer call on the same target supersedes it, identical calls coalesce, and a result that arrives after another concept was accepted ends stale, kept as history. Paid and held for approval, with the image spend cap. No configured provider streams partial images Every one of these concept tools reads the project's manufacturing context (component scopes it to one component), puts its block in the prompt where there is one, and records manufacturing_context_ref (MFC-*@n or unresolved), manufacturing_note and dfm_status (not_assessed) on the output; speculative: true records the context without applying it and labels the output "Speculative concept".unit-verified with fake providers; no real generation run
twintwin.critique_concept_imageA vision model checks a concept image made by twin.render_concept_image against the concept's selected assembly: every made part visible, each connection and joint as decided, nothing major drawn that the concept does not have. The assembly is the project's latest concept decision carrying one, the decision named by decision_ref, or an inline assembly. The model answers in strict JSON (parts_seen, joints, extras, verdict consistent, inconsistent or unclear, summary), held to its own findings, and the result is stored on the image as metadata.critique in a new revision, with the model that judged. twin.render_concept_image runs the same check when it makes an image and takes the same decision_ref and assembly. Advisory and best-effort: no assembly, no vision model or a reply off the schema stores verdict: "unchecked" with the reason and never fails the image. The concept gate lists each image's verdict as a note that never blocks, and the image stays illustrative, so it can never back a claimunit-verified with a fake vision model; no real model run
twintwin.generate_concept_meshAn image-to-3D model turns a concept image into a 3D reference mesh for concept review. Give the image_node_id of a render made by twin.render_concept_image, or a text prompt (at most 1024 characters) to model from; exactly one is required, and a node that is not such a concept image, or an image that cannot be read, is refused before any paid call. The image is sent with its label banner cropped off, through Tripo's v3 API: POST /files for a file_token, POST /generation/image-to-model (or /generation/text-to-model) for a task_id, GET /tasks/{task_id} polled every 5 s until it succeeds, and the GLB at output.model_url downloaded at once. Committed as a render work product with format: glb and metadata.authority = "illustrative", linked generated_from the image, recording the provider, task_id, model_version, the source image node and the label "AI 3D reference model, illustrative only". Never a cad_model, and it cannot back a requirement claim; the twin viewer previews it as a 3D mesh. As the third alternative, view_images maps front, left, back and right to concept images rendered with that view (front required, at least 2 views): each is cropped and uploaded and one POST /generation/multiview-to-model task takes them in view-key form; a missing front, one view, an unknown view key, a repeated image, a node that is not a concept image, an image drawn for another view, or views from different layouts are refused before any paid call, and the mesh records view_image_node_ids with a generated_from edge to each. Every mode takes auto_size (Tripo's own scaling to metres; default false when the images came from a block layout, true otherwise), fit_to_envelope (default true when there is a layout envelope), face_limit (default 100000, at most 2000000; 500 to 20000 with smart_low_poly), texture (default true), generate_parts (default false; sends texture and pbr false and says so, refused with texture: true or smart_low_poly) and smart_low_poly (default false), sent to Tripo and stored as generation_options. The GLB's bounding box is then read from its glTF accessors and node transforms (no paid call) and stored as bbox_m in glTF axes, with bbox_approximate when a rotation or a missing scene graph makes it a superset; when the images came from a block layout, its envelope is stored as envelope_mm and the model is scaled uniformly to best fit it: one factor, minimising the summed squared log ratio over the three axes, applied as a new parent node's scale in the glTF JSON (no vertex buffer rewritten, every node keeping its own transform). The stored GLB is the scaled one and the provider's file is kept beside it (provider_glb_object_key); the record carries scale_factor, bbox_m_before, bbox_m (after, in metres) and proportion_error_pct, what no uniform scale removes. With fit_to_envelope: false, or with no envelope, the file is stored as made and a per-axis deviation_pct (absolute with auto_size, proportional without) shows how far it is off. Returns node_id, format, mode, provider, task_id, size_bytes, source_image_node_id, view_image_node_ids, generation_options, bbox_m, envelope_mm, deviation_pct and, when fitted, scale_factor, bbox_m_before and proportion_error_pct. Opt-in and paid: METAFORGE_MESH_PROVIDER=tripo with TRIPO_API_KEY (a key alone enables nothing), METAFORGE_MESH_TIMEOUT_S (default 600) bounding the whole generation, and METAFORGE_MESH_MODEL_VERSION (default v3.1-20260211). A failed, cancelled, banned or expired task names its status, a task still running at the deadline is a timeout, a rejected key is reported without the key, and none writes anything. A generation takes about 150 s, past a client's MCP call timeout, so a client's call returns at once with {"job_id", "status": "running", "poll": "twin.job_status", "expected_seconds": 150} and the generation runs in the background, its result stored on the job (read it with twin.job_status; the next reply to the same session also says it finished). Every refusal above still happens before it returns. An identical call (same arguments, session and project) while it runs, or within 10 minutes of its success, returns the same job (reused: true) instead of a second paid generation. The design-flow worker and in-process callers wait for the mesh as before, and wait (true or false) chooses explicitly Every one of these concept tools reads the project's manufacturing context (component scopes it to one component), puts its block in the prompt where there is one, and records manufacturing_context_ref (MFC-*@n or unresolved), manufacturing_note and dfm_status (not_assessed) on the output; speculative: true records the context without applying it and labels the output "Speculative concept".unit-verified against a mocked Tripo API; no real generation run
twintwin.build_exact_cadExact CAD on commit, never per edit: for a CAD item (item_key, project_id), lower design_ir with the CadQuery Lowering Pass (lines, circles, rectangles, arcs and splines; ellipses are refused) or run a CadQuery script in the CadQuery adapter, then check the B-Rep with cadquery.validate_shape. Only a pass commits the result as the item's next revision, born geometry_state: validated with its validity findings; a fail, or a check that could not run (not_evaluated, never a pass), records the attempt on the revision it started from (exact_attempts) and keeps the last valid revision as the head; warn is recorded and not validated. With neither design_ir nor script it validates the head in place. A board's 3D export (kicad.export_3d, with a board_ref) is validated as one compound body (validate_shape board: true), recording its solid count. item_key may name an approved parametric_sketch (PSK-*): its feature is built into CAD-* only once every required_input (depth, angle, material) is on the plan or supplied in inputs; a missing one is refused at once and nothing is assumed. A sketch on a model face is built on an explicit frame, and the build is refused while its plane is REATTACHMENT_REQUIRED or INVALID. Runs as a job (target_key the item, base_revision the head it starts from): a newer build supersedes it, and a result whose base moved ends stale with the newer head kept. Also POST /v1/twin/items/{key}/exact-buildunit-verified with a stubbed adapter; validity and lowering checked against a real OCCT kernel locally
twintwin.export_cad_stepSTEP from a validated (or released) CAD revision only, as a job: cadquery.export_step writes it with the adapter's configured schema and the file's own header says which (AP214 by default, AP242 when CADQUERY_STEP_SCHEMA=AP242); it is re-imported with cadquery.validate_shape and solid count, volume (relative 1e-3) and bounding box (0.01 mm or 1e-4 of the diagonal) are compared. The export is kept on its revision (step_export), keyed by the revision and its geometry hash, so a repeat request returns it with no adapter work. When the item's head moves the export reads stale and stays downloadable. critical: true (a gate or release export) fails unless the round trip passes. Also POST /v1/twin/nodes/{id}/exports/step, GET /v1/twin/nodes/{id}/exports and GET /v1/twin/nodes/{id}/exports/step/fileunit-verified with a stubbed adapter; export and re-import checked against a real OCCT kernel locally
twintwin.evaluate_dfmRun the selected process's DFM rule profile (fdm, resin, cnc, injection_moulding, sheet_metal, each rule with its kind and source; no supplier capability is seeded) against each component's best available geometry (concept block sizes, parametric sketch depths, CAD parameters and bounding box, recorded face tables through the FDM overhang check) under the manufacturing context, and record a dfm_finding_set per component pinned to the geometry and context revisions it read. Findings are anchored to the component, feature or face, with measured against limit, confidence, rule id and profile version and a suggested fix; an unknown input is listed as not assessed with the reason. Status is issues_found, preliminary_guidance, analysis_pending or not_assessed, never a pass. A geometry head move or a process, material or quantity change recomputes only the affected components. Also POST /v1/twin/projects/{id}/dfm/evaluate. Heuristic only; a component with a current exact set on the same geometry revision keeps it. Exact checks on a validated model run separately (POST /v1/twin/projects/{id}/dfm/exact, scheduled after validation for a process whose profile has exact checks, today FDM), with physical verification items, the revision-specific DFM report and the manufacturing release checklist G8 enforces; see exact DFM. See DFM findingsunit-verified
twintwin.get_dfm_findingsThe current DFM findings by component, with status, profile version, anchors, evidence, gaps and staleness (history adds stale and superseded sets). Read only. Also GET /v1/twin/projects/{id}/dfmunit-verified
twintwin.get_manufacturing_contextThe manufacturing context a component (component) or the product is made under: every field with its authority and provenance (including print_orientation), the gaps, the ref (MFC-*@n, or unresolved), the note a concept made now would carry and the block a generator is given. Read only. Also GET /v1/twin/projects/{id}/manufacturing-context. See the manufacturing contextunit-verified
twintwin.state_manufacturing_contextWrites fields as the context's next revision under the conflict rule, held for approval like any twin write. statement: proposal (default) records assumptions that never override a stated value or a decision; cost, lead time and the machine or supplier are never assumed and clearing a field is refused. statement: user_stated is recorded only when a person approved the held call: the dispatcher hands the tool the approver, never a name the model writes, and a policy's automatic approval is refused. A decision comes only from twin.record_decision. Refused writes are returned. A change to a field the DFM rules read (including print_orientation) recomputes the findings made under itunit-verified
twintwin.get_dfm_reportThe latest stored revision-specific DFM report with its staleness, including how each exact set was measured (build direction and where it came from, the slicer cross-check marked as an estimate); with none stored, an unstored preview (stored: false). Read only. Also GET /v1/twin/projects/{id}/dfm/report. See the DFM reportunit-verified
twintwin.get_release_checklistThe manufacturing release checklist for the current revision and the readiness Create may claim; applies: false when no process with exact DFM checks is selected. Beside the DFM items it holds eda_checks (a passing ERC and DRC recorded on the current schematic and board revisions), assembly_dfa ("Assembly checked (DFA)") and outputs_current (every fabrication output made from the current revision), each required by the release gate. Read only. Also GET /v1/twin/projects/{id}/dfm/checklist. See the release checklistunit-verified
twintwin.measure_dfmMeasure one committed CAD revision for manufacturing by reference (item_key KEY or KEY@n, or node_id): the gateway reads its STEP from the twin, calls cadquery.dfm_measure over MCP and stores the exact dfm_finding_set the checklist reads. The revision must be validated; measured: false with the reason when its process has no exact checks. twin.evaluate_dfm (measure, default true) does the same for every validated part with no exact analysis yet, up to 12 a call. Additive. See measuring by referenceunit-verified
twintwin.resolve_concept_componentSay what became of a concept component (CMP-...): realised_by the CAD items that make it (they become the required components in its place), retired with a reason, or restored. Recorded as a design decision, newest wins, reversible; the maturity and the release checklist honour it. Additive (the agent's own design decision, not a human-authority step). See resolving concept componentsunit-verified
twintwin.build_assemblyPuts the product's parts together: places each committed part revision (item_key, CAD-... or CAD-...@n) at a location (mm and degrees, as cadquery.create_assembly takes it), builds the assembly STEP with cadquery.create_assembly and commits it as the next revision of an assembly item (ASM-...). A board goes in as the STEP kicad.export_3d made of it, committed with twin.commit_geometry (source_tool: kicad.export_3d), which records its board_ref. Bought fasteners go in fasteners: each screw or pin by designation (ISO 4762 M2.5x8, M2.5x6, ISO 2338 4x30) at its location with the holes it goes through, its washers and nut; each is made from its standard's dimensions into the STEP. The revision keeps the layout (each body's revision, location and placement matrix), the joints (revolute with an axis, limits and an optional retention) and the fasteners. Producing. See design for assemblyunit-verified
twintwin.check_assemblyDesign-for-assembly check of an assembly revision, recorded as an assembly_check pinned to the assembly and every part revision: bodies at their current revisions, no overlap (cadquery.check_interference), stated clearances, hole patterns, outlines in pockets, edge connectors (their mating axis, from the footprint's rotation in the board file and the board's placement or given, against the slot's opening normal within 5 degrees, and a USB-C plug envelope, 12.35 x 6.5 mm and 20 mm deep by default, through the slot's aperture: a plug that cannot mate is high), washer and fastener stacks (standard washers and screws from the ISO tables), each fastener in its holes (shank against clearance, tapped or thread-forming hole, length against the stack, head against the counterbore or face), every hole pattern and hinge fastened (else a medium unfastened joint, unless a press fit or snap), each revolute joint swept through its limits, seated parts with a retention feature. With a board in the assembly the hole pattern and outline are required, from the call or from IFC-CAD-EDA and the parts' metadata, and a USB-C receptacle in the board file makes the connector check required, its slot from a part's connector_slots. Each finding has a severity (high, medium, low) and the part revisions involved; open high and medium findings block the release. Additive. See design for assemblyunit-verified with simple solids
twintwin.accept_release_findingAccepts, with a reason, a failing ERC or DRC (eda_checks, target PCB-...@n:drc or SCH-...@n:erc), open assembly findings (assembly_dfa, the finding ids) or leaving a stray board or schematic out of the package (design_files_released, its node id) for the release. A person's decision: held for their approval and the approver recorded; or, when the owner sets METAFORGE_ALLOW_AGENT_RELEASE=true and the request names the agent and the person, recorded as the agent's for that person. Stored as an approved waiver pinned to the revisions it is about, so a new revision needs a new acceptance. Only a current failure can be named; fabrication outputs are never accepted. Destructive and never policy-approved. See the release checklistunit-verified
twintwin.approve_releaseThe manufacturing release approval, decided by a delegated agent for a person: approves the project's newest unapproved release_approval (or the entity_id named) so the release checklist's "Manufacturing release approved" passes, with the detail "approved by agent X on behalf of Y". Delegated only: refused at once unless the owner sets METAFORGE_ALLOW_AGENT_RELEASE=true (the human-authority flag does not cover it) and the request names the agent and the person, who must be the verified principal when there is one. Refused, naming each blocker, while another checklist item the release gate reads is open. Destructive and never policy-approved; recorded on the ledger as a delegated approval (outcome delegated_release). See delegating a releaseunit-verified
twintwin.run_item_feaA load case on a committed CAD item in one call: reads its STEP, meshes it with freecad.generate_mesh, picks the fixed and loaded surfaces (by name or {axis, side}) and solves with calculix.run_fea, both over MCP. Returns the mesh, the surfaces used, the solver result and the twin.record_document arguments that pin it to the revision. Producing (writes only to the adapter workspace)unit-verified
twintwin.render_structured_meshShow a concept as simple 3D parts: draw its block layout (the concept_layout of a sketch made by twin.render_concept_sketch; layout_node_id, default the project's newest, or an inline layout) as a GLB with one node per part, named by its stable component id (CMP-...) with extras giving component_id, part_name, shape, size_mm, position_mm, provenance and dimensions: "estimated". Committed as a render with authority: structured and a representation descriptor (level: L1, the source layout revision, the component ids), generated_from the sketch. Never exact and never evidence. Deterministic and free (no provider): an unchanged layout returns the mesh already made (reused: true). Also POST /v1/twin/projects/{id}/structured-mesh, and drawn once when a concept assembly is recorded. See representation levelsunit-verified
twintwin.segment_concept_meshSplit an accepted 3D concept (L0) into parts with Tripo POST /mesh/segment: the concept's own Tripo task id when it has one, else its GLB uploaded through POST /files. model v1.0-20250506 (geometry, default) or v2.0-20260430 (semantic labels, beta, with granularity and split_by_connectivity). Stored as a new proposed revision of the concept, still L0 and illustrative, fitted to the source's envelope, recording provider, model, granularity, credits, task id and a proposed part to component mapping with confidences; unclear parts are questions, and a model returned whole is not_segmented. Paid and held like twin.generate_concept_mesh (mesh hourly cap); a client's call returns a job. Create: POST /v1/twin/projects/{id}/concept-parts/segment, with .../{node_id}/mapping for a person's confirmation and .../{node_id}/decision to accept or reject a revision. See concept partsunit-verified against a fake provider and a mocked Tripo API; no real segmentation run
twintwin.design_cad_loopRefine one component's CAD in the self-validating design loop, as a job: a model writes CadQuery from the component's parametric plan (sketch_key or component_id, seeded from the plan when its inputs are complete), cadquery.execute_script and cadquery.validate_shape build and check it, cadquery.dfm_measure and the profile's exact checks (FDM) or its heuristic rules measure it against the manufacturing context, the OCCT converter and render.model_views render it, and a vision critic reviews the views with the numbers, the intent and the DFM findings. Stops satisfied only when the critic is satisfied, validity passes, no blocking DFM finding remains and stated sizes (target_dimensions, the component's envelope) are within tolerance_mm; else iteration_cap (max_iterations, def 5), spend_cap (max_model_calls, max_spend_usd), needs_input (an unknown dimension: asked, or a labelled working value when allow_working_values) or failed. Every iteration is recorded on a cad_design_loop record; the result is a proposed revision bound to the base revision that only a person accepts, through the exact CAD path. Paid, additive, open world and held; past the hourly cap (METAFORGE_AUTO_APPROVE_CAD_LOOP_PER_HOUR) Create asks. Also POST /v1/twin/projects/{id}/cad-loops and .../cad-loops/{node_id}/decision. See the CAD design loopunit-verified with stubbed models, CadQuery adapter, converter and render adapter; no live model run
twintwin.regenerate_concept_partMake one confirmed part again from text or an image a person gives, through the text or image to model path, fitted to the part's own box and pose, and swap only that node: every other node's bytes stay identical (checked before storing). A new proposed revision with lineage regenerated_part. Paid and held; returns a job. Create: POST .../concept-parts/{node_id}/regenerateunit-verified with a fake provider
twintwin.complete_concept_partSeal (quick_cap, default) or complete (ai_completion) one confirmed part with Tripo POST /mesh/complete (part_names set to that part) and swap only that node; refused for a part redone after the split. A new proposed revision with lineage completed_part. Paid and held; returns a job. Create: POST .../concept-parts/{node_id}/completeunit-verified against a fake provider and a mocked Tripo API
twintwin.job_statusRead a job a slow tool started (twin.generate_concept_mesh, the concept parts tools, twin.build_exact_cad, twin.export_cad_step, twin.generate_sketch): job_id, tool_id, status (queued, running, succeeded, failed, interrupted, cancelled or superseded), arguments_hash, session_id, project_id, created_at, started_at, finished_at, elapsed_seconds, expected_seconds, and the tool's result once it succeeded or its error. Read-only and never held. Jobs live in a SQLite store per process (METAFORGE_TOOL_JOBS_PATH; the gateway's under ~/.metaforge/, the MCP sidecar's on its own volume), so a job is read through the server that started it; opening the store after a restart marks the jobs left running interrupted, and an unknown id is an error. Each job state change is a tool_job_state log event and a count of metaforge_tool_job_total{tool, status}, and, for a job in a project, an operation event job:<job_id> on the project's operation stream (Operations); a job running in the gateway can be cancelled through POST /v1/projects/{id}/operations/job:<job_id>/cancelunit-verified
twintwin.record_design_filesKeeps KiCad and firmware files the adapters wrote on the workspace as one versioned work product (with board, the board in the system architecture they belong to, so each board has its own schematic and layout): schematic (every sheet, the project file and library tables), pcb_layout, gerber (the gerber and drill folder, each file's layer named), pick_and_place, pinmap, or firmware_source (a PlatformIO project's sources, with firmware.elf/.bin/.hex when built), purchased_model (the folder simready.import wrote: a cad_model whose primary file is the GLB preview, with the USD layers, licence and attribution beside it, and the licence, package digest and mass_kg read from its simready.json, never from metadata), gcode (the folder slicer.slice wrote, the G-code first and its config.ini beside it, or one .gcode, .gco or .bgcode file; library.dispatch_job can then send it), or bom (a CSV, TSV or JSON bill of materials: the board's from kicad.export_bom pinned to its PCB-...@n, or the assembly's made and bought parts pinned to its ASM-...@n; its lines are kept as bom_lines for the release checklist's bom_complete, see BOM files). Recording the same name again is that item's next revision (SCH-, PCB-, GBR-, PNP-, PIN-, FW-, PMD-, GC-, BOM- keys). Each file is a named blob served at GET /v1/twin/nodes/{id}/files/{path}; source_node_ids are linked GENERATED_FROM (BOM to schematic to board to gerbers and placement, schematic to pin map to firmware). Left out, the record is linked to the project's one current record of the stage before it (generated_from_inferred), and every other stage of the project still loose is linked the same way, so a schematic recorded before its BOM is linked once the BOM exists (inferred_links); a stage with more than one candidate is left unlinked, named in warnings and counted by thread_unlinked_stages, and a stage whose upstream is not recorded at all is named but not counted; the node is linked to its project under its own type, which is what pcb_v1 and firmware_v1 count as recorded. A schematic or board gets SVG previews from kicad.export_svg, and a board also its populated 3D model as a GLB from kicad.export_3d (preview/<board>-3d.glb, for the PCB view's 3D switch), both best effort (preview_error says why the sheets are missing). Each record carries source_ref, the revision it was made from (CAD-...@n, PCB-...@n, FW-...@n): given by the caller, taken from its sources, or for G-code matched from the source.json slicer.slice writes; the release refuses an output made from an older revision or with no source. See output source pins. Reads only inside the adapter workspaceunit-verified
blender (container)blender.export_blendThe model staged as a Blender scene (lights, camera, colours) saved as a .blend, returned inline, for a designer to open in Blender. Read-onlyunit-verified; run against real Blender 5.2.2 LTS
power (in-process)power.check_budgetStatic worst-case power budget per supply rail. The caller gives every rail (voltage, source_kind supply/ldo/switching, rated output, input_rail, efficiency for a switching regulator, quiescent_ma for an LDO) and every load (current_ma or power_mw, with its source), plus the derating rule. Regulator input current is carried upstream (LDO: output plus quiescent; switching: Vout x Iout / (efficiency x Vin)). A figure not given is unknown and never assumed: a rail that depends on one is not_established, unless its known load already exceeds the allowance, which fails. Read-only arithmetic; on the electronics profile. With each regulator's theta_ja_c_per_w and tj_max_c and the request's ambient_c, it also returns each regulator's dissipation (LDO (Vin - Vout) * Iout + Vin * Iq, switching Pout * (1/eta - 1)), junction temperature Ta + P * theta_JA, margin to Tj max and a separate thermal_verdict: a hot LDO fails thermally while its rail still passes its load budget, and a regulator with no thermal figures is not_established. Backs the check_power_budget skill, which both electronics agents used to answer "not yet implemented"unit-verified
power (in-process)power.runtimeBattery runtime: usable energy (capacity_wh, or capacity_mah x nominal_voltage_v, times usable_fraction) over the average load at the battery terminals; the rated capacity a required_runtime_h needs; and the peak current against the battery's continuous rating. Every figure is {value, source}; a missing one is not_established. Read-only arithmetic on the electronics profileunit-verified
optimize (in-process)optimize.suggestAsk-and-tell search over one bounded design variable: golden_section for a unimodal objective, grid otherwise. The caller evaluates each suggested point with the real analysis tool and passes every evaluation back (x, objective, feasible, source); the tool returns the next point or converged with the best. It never computes an objective, an infeasible point is never the best, all-infeasible is reported, and the bounds must name their source. Read-only arithmetic; on the simulation profile (Composable Design Flows)unit-verified
robot (in-process)robot.size_driveWorst-case drive requirements for a wheeled mobile robot: traction force climbing the steepest slope while accelerating (m*g*(Crr*cos+sin) + m*a), torque and speed per driven wheel, and peak power through the drivetrain efficiency. With a candidate motor and gearbox it returns the motor's torque and speed margins against the required margin and a pass/fail verdict. Every figure is {value, source}; a figure not given is unknown and the verdict not_established. Read-only arithmetic; on the robotics profileunit-verified
robot (in-process)robot.diff_drive_kinematicsTop linear speed and top yaw rate of a differential drive from wheel radius, track width, usable motor speed and gear ratio, checked against the required speed and yaw rate. A figure not given is unknown: not_established. Read-only arithmetic; on the robotics profileunit-verified
packaging (in-process)packaging.box_compressionSimplified McKee estimate of a regular slotted carton's compression strength (BCT = 5.87 * ECT * sqrt(caliper * perimeter), SI), reduced by every derating factor given (humidity, storage time; each 0..1 with its source) and compared with the static stack load times the required safety factor. An estimate: a compression test outranks it. A figure not given is unknown: not_established. Read-only arithmetic; reached through the packaging_v1 tasks that name itunit-verified
packaging (in-process)packaging.rsc_dielineBlank size of a regular slotted container (FEFCO 0201) from its inside dimensions, the converter's score allowance and glue flap, checked against the converter's minimum glue flap, minimum panel and sheet size. Rules come from the converter or the process library, never assumed. Read-only arithmetic; reached through the packaging_v1 tasks that name itunit-verified
aircraft (in-process)aircraft.wing_sizingWing area that holds the stall speed at the maximum take-off mass (S = 2 m g / (rho Vs^2 CL_max)), or the stall speed of a chosen area, with span and mean chord from the aspect ratio. Every figure is {value, source}; a figure not given is unknown: not_established. Read-only arithmetic; reached through the aircraft_v1 tasks that name itunit-verified
aircraft (in-process)aircraft.cruise_performanceParabolic drag polar CD = CD0 + CL^2 / (pi e AR) at the cruise lift coefficient: lift-to-drag, drag, shaft power and electrical power through the propulsive efficiency, and the best lift-to-drag ratio and its speed; fails a cruise at or above CL_max. A first-order estimate that a vortex-lattice or panel code outranks. Read-only arithmetic; reached through the aircraft_v1 tasks that name itunit-verified
aircraft (in-process)aircraft.trim_stabilityStick-fixed neutral point and static margin of a conventional wing and tail (Helmbold lift slopes, elliptic downwash estimate, tail volume), and the tail lift coefficient that trims cruise against the tail's usable CL. Static only; fuselage contributions neglected; an AVL eigenmode analysis outranks it. Read-only arithmetic; reached through the aircraft_v1 tasks that name itunit-verified
aircraft (in-process)aircraft.electric_enduranceSteady-cruise endurance and range of a battery-electric aircraft from usable battery energy over propulsion plus avionics power; with a required endurance, the capacity that meets it. A mission simulation outranks it. Read-only arithmetic; reached through the aircraft_v1 tasks that name itunit-verified
cadquery (default)cadquery.create_parametricGenerate a parametric solid (box, cylinder, …) → STEPtier1/cad-hp.md
cadquerycadquery.boolean_operationUnion / cut / intersect two solids. Producing: writes only its result inside the adapter work folder and never over an existing file (unnamed: a new folder under output/cadquery/boolean/), so an auto policy may approve it; see CadQuery writes under a policytier1/cad-hp.md
cadquerycadquery.get_propertiesMass / volume / bounding-box for a STEP filetier1/cad-hp.md
cadquerycadquery.export_geometryConvert STEP → GLB (web viewer) or STLtier1/cad-hp.md
cadquerycadquery.export_urdfExport a single-link URDF (robot description) — companion mesh + a real <inertial> block (mass/center-of-mass/inertia tensor) from the part's geometry and a material density lookup. Tier-1 only: one link, no joints — a multi-body assembly with real kinematic joints needs the FreeCAD assembly-joint tools mapped to URDF's <joint> schema, separate follow-on work. xacro=true writes a .xacro-extension file with the xacro namespace declared on the root element (no macro directives generated — includable into a larger macro-based description)unit-verified
cadquerycadquery.export_urdf_assemblyExport a multi-link URDF with real kinematic joints from a set of STEP parts + a joint list (same shape FreeCAD's add_assembly_joint/list_joints produce). Maps fixed→fixed, slider→prismatic (requires explicit limits), revolute→continuous (no fabricated rotation limit); cylindrical/ball joints are rejected — no single-joint URDF equivalent. Same xacro=true support as cadquery.export_urdfunit-verified
cadquerycadquery.export_sdfExport a single-link SDFormat model (Gazebo) — same mass-property/mesh pattern as export_urdf, schema grounded directly against gazebosim/sdformat's spec files. world_name wraps the model in a <world> (.world file); otherwise a standalone .sdf model. Tier-1 only: one model, one link, no <joint>unit-verified
cadquerycadquery.export_sdf_assemblyExport a multi-link SDFormat model (Gazebo) with real joints from a set of STEP parts + a joint list (same shape FreeCAD's add_assembly_joint/list_joints produce). SDF's own <joint> schema is more permissive than URDF's: maps fixed→fixed, slider→prismatic (requires explicit limits), revolute→continuous (no fabricated rotation limit), and ball→ball (SDF supports it natively — URDF has no single-joint equivalent); cylindrical joints are rejected — no direct SDF <joint> equivalentunit-verified
cadquerycadquery.export_usdExport a plain-text .usda (USD) file — hand-authored (no usd-core/pxr dependency), mesh geometry as UsdGeomMesh point/face arrays (via an STL round-trip) plus real PhysicsRigidBodyAPI/PhysicsCollisionAPI/PhysicsMassAPI properties, schema grounded against PixarAnimationStudios/OpenUSD's spec. Tier-1 only: axis-aligned parts (negligible off-diagonal inertia) — a rotated/asymmetric part raises an explicit error rather than emitting wrong principal-axis physics dataunit-verified
cadquerycadquery.export_usd_assemblyExport a multi-body .usda (USD) file with real UsdPhysics joints from a set of STEP parts + a joint list (same shape FreeCAD's add_assembly_joint/list_joints produce). Maps fixed→PhysicsFixedJoint, slider→PhysicsPrismaticJoint (requires explicit limits), revolute→PhysicsRevoluteJoint (no fabricated rotation limit), ball→PhysicsSphericalJoint (USD supports it natively, like SDF); cylindrical joints are rejected — no matching UsdPhysics joint type. Since physics:axis is a canonical X/Y/Z token (not a free vector), an arbitrary joint axis is expressed via a computed alignment quaternion on the joint frame. Still axis-aligned-inertia-only per part, same tier-1 restriction as cadquery.export_usdunit-verified
cadquerycadquery.generate_ros2_launchGenerate a standalone ROS 2 launch file (robot_state_publisher + optional joint_state_publisher(_gui) + rviz2) for an exported URDF, grounded directly against ros/urdf_launch's real launch files. Pure text generation — no STEP file or CadQuery geometry involvedunit-verified
cadquerycadquery.validate_shapeB-Rep validity of a STEP (step_base64): OCCT BRepCheck, a solid where one is expected, closed solids, volume above zero, no free edges; pass, warn, fail or not_evaluated with one finding per check. board: true judges a board's 3D export as one compound body: a solid with a volume passes, the solid count is recorded, and BRepCheck, closed solids and free edges become info findings. Requests up to CADQUERY_MAX_REQUEST_MB (256 MiB by default). Needs the rebuilt CadQuery adapter imageunit-verified; checked against a real OCCT kernel locally
cadquerycadquery.export_stepWrite a STEP with the configured schema (CADQUERY_STEP_SCHEMA, AP214 or AP242) and report the schema the written file declares, with the source shape's measures for a round trip. Needs the rebuilt CadQuery adapter imageunit-verified; checked against a real OCCT kernel locally
cadquerycadquery.describe_facesThe planar faces of a STEP (step_base64), for sketches on model faces: per face an id stable within the revision (s<solid>f<face>), the outward unit normal and plane offset, area, centroid, bounding box, outer-loop edge count and longest straight edge, the adjacent faces (surface type, normal), and mesh_map: where its triangles sit in the GLB the OCCT converter makes from the same STEP (the converter's tessellation parameters, per part, faces in explorer order). Read-only. The gateway adds semantic tags from the revision's build source and keeps the result on the revision; see face attachment. Needs the rebuilt CadQuery adapter imageunit-verified with synthetic faces; checked against a real OCCT kernel locally
cadquerycadquery.dfm_measureExact FDM measures of a STEP's B-Rep (step_base64, optional build_direction, default +Z) with face anchors, for exact DFM; judges nothing (the limits are in the versioned rule profile). Wall thickness by ray casting along inward normals from points sampled on each face (bounded: samples_per_side, max_wall_samples; the method and its limits are returned), every face's outward or most downward normal, area and whether it rests on the build plate, the extents along and across the build direction, complete cylindrical holes and pins with their diameters, and the planar face records (s<solid>f<face> ids, GLB mesh ranges) for highlighting. Read-only. Run by the gateway's dfm.evaluate_exact job; see exact DFM. Needs the rebuilt CadQuery adapter imageunit-verified with stubbed measures; checked against a real OCCT kernel locally (walls, holes, pins, overhangs, build direction)
cadquerycadquery.execute_scriptRun an inline CadQuery Python script in a fresh child process the OS isolates: its own uid, resource limits (2 GB, 64 MB files, a wall-clock kill), Landlock (writes only its private tmpfs folder, cannot read /workspace, no execve, no TCP) and seccomp (no network socket, no new process). The result is returned as bytes and written by the adapter inside the work folder, never over an existing file (unnamed: output/cadquery/script/<id>/). Producing: an auto policy approves up to 60 per project per hour (METAFORGE_AUTO_APPROVE_SCRIPT_PER_HOUR); see CadQuery writes under a policytier1/cad-hp.md
cadquerycadquery.check_interferenceMeasures placed STEP parts for design for assembly: every pair overlapping by more than tolerance_mm3 (bounding boxes, then a boolean intersection), the smallest gap between the distance_pairs (OCCT BRepExtrema), and the overlaps in extra poses (some parts moved, for a joint's sweep). Parts are placed by a 3 x 4 matrix or a location. Reads the files, writes nothing. twin.check_assembly calls it. Needs a cadquery adapter image rebuild to deployunit-verified through twin.check_assembly with simple solids
cadquerycadquery.create_assemblyMulti-body assembly. Each part's location takes x, y, z (mm) and rx, ry, rz (degrees, applied X then Y then Z); rotations used to be dropped. interference_check_passed comes from a real pairwise check, bounding boxes then a boolean intersection, and interferences lists each overlapping pair with its volume in mm³. Without output_path the STEP goes to a new folder under the adapter's work folder, returned as assembly_file; a named path must be inside the work folder, and a file that was not written is an error. A part may be a bought standard part instead of a file (shape: a socket head cap screw, parallel pin, washer or hex nut from its standard's dimensions, threads not modelled), which is left out of the interference list. Needs a cadquery adapter image rebuild to deployunit-verified; checked in the CadQuery 2.8 adapter container
cadquerycadquery.generate_enclosurePhase 2. A shelled box sized from the board (pcb_length, pcb_width, pcb_thickness, component_max_height) with 1 mm clearance and a wall_thickness wall, rectangular connector_cutouts through the front, back, left or right wall, and a standoff post with a screw hole for each of mounting_holes. Writes a STEP and returns cad_file, internal_volume, external_dimensions, and mass_kg from material (default ABS). The board's own outline comes from kicad.export_3dunit-verified; listed in the MCP e2e CAD tool set
calculix (default)calculix.run_feaLinear-static FEA on a meshed solid (analysis_type="static_stress"), or modal/natural-frequency analysis (analysis_type="modal") — a real CalculiX *FREQUENCY eigenvalue solve (mass matrix from a real *DENSITY card, converted from the caller's kg/m^3 material to the mm+N+MPa consistent system's own tonne/mm^3 mass unit) returning real natural frequencies (frequencies_hz), lowest mode first. Deliberately narrow: fatigue, contact/bolted-joints, non-linear material, and buckling (the ticket's other four bundled analysis types) have zero existing scaffolding in this codebase and are each a separate, comparably-sized effort. Every result also carries a field object, the solved mesh's outer surface with per-vertex von Mises stress and displacement vectors (modal: the mode-1 shape) as a gzipped metaforge.sim_field payload, with fixture and load markers located by the deck's own node sets. Capped at 1.5 MB compressed (decimated by vertex clustering above that, with the true full-field peak kept); field.file is its workspace path for twin.record_document's field_file. A field that cannot be built returns field.error and never fails the solve. See Simulation results in 3Dtier1/fea-hp.md
calculixcalculix.run_thermalSteady-state conduction thermal analysis — a real CalculiX *HEAT TRANSFER, STEADY STATE solve: a *CONDUCTIVITY material card, a *CFLUX heat source (e.g. a BOM component's known power dissipation — this adapter has no Twin access, so the caller resolves specifications.powerDissipationW itself and passes the raw wattage) conducting to a fixed-temperature *BOUNDARY sink (e.g. a chassis/heatsink mount held near-ambient). Deliberately conduction-only: no convective (*FILM) boundary to open air, since that needs exposed element-face geometry this mesh-handling codebase doesn't derive anywhere yet — a fixed-temperature sink is a real, well-precedented simplification, not a stand-in. analysis_mode="transient" is accepted in the schema for forward compatibility but raises — there is no time-stepping deck builder yet. Live-validation follow-up: heat_source_node_set/sink_node_set get the same wrong-face span check run_fea's fixed_node_set already had — caught live on the real "Upper Arm Link" part, where a full-length side face picked as the sink collapsed the effective conduction path and silently reported a peak temperature far below the real one. Also returns the same field payload as run_fea, with a temperature field and heat-source / sink markerstier1/fea-hp.md
calculixcalculix.validate_meshMesh quality and connectivity checkstier1/fea-hp.md
calculixcalculix.extract_resultsPull max-stress / max-displacement from .frd. The stress block's own accuracy field auto-flags a suspicious result (max disproportionate to the rest of the nodal field — usually a point-load/BC concentration artifact)tier1/fea-hp.md
calculixcalculix.cross_check_cantilever_beamEuler-Bernoulli hand-calc cross-check (sigma = M*c/I) for a rectangular cantilever, tip-loaded — compares against an FEA max stress within a tolerance, for the textbook case a human caught a bad fixed_node_set with manuallyunit-verified
calculixcalculix.cross_check_cantilever_frequencyClosed-form first-bending-mode natural frequency for a uniform rectangular cantilever, tip-free (f1 = (beta1*L)^2/(2piL^2) * sqrt(EI/(rho*A)), a standard textbook constant) — the modal sibling of calculix.cross_check_cantilever_beam, same one-textbook-case scope, compares against a modal calculix.run_fea run's own first modeunit-verified
calculixcalculix.cross_check_thermal_steady_state1D steady-state conduction hand calc (T_peak = T_sink + Q*L/(k*A), the standard thermal-resistance formula) — the thermal sibling of calculix.cross_check_cantilever_beam, same one-textbook-case scope, for the exact fixed-temperature-sink model calculix.run_thermal solves. Compares against a thermal FEA run's own peak temperature within a toleranceunit-verified
calculixcalculix.check_mesh_convergenceWhether max stress has stopped changing meaningfully across element sizes already run (does not orchestrate the sweep itself — compares results the caller already produced). Each point may carry an optional element_count; record the output on the finest run's simulation_result as metadata.mesh_convergence and the Sim page charts peak stress against element count with the verdictunit-verified
calculixcalculix.compute_joint_loadsQuasi-static reaction force/moment at every joint of a posed serial robot-arm chain, from gravity alone — link masses/CoM and joint positions at a chosen pose, plus an optional payload; deliberately no velocity/acceleration/friction/actuator terms (a full dynamic worst-case-over-motion analysis needs a real multibody dynamics engine, not yet available from this repo's Gazebo/Isaac adapters). The worst joint's reaction feeds calculix.run_fea's load_force_n directly, or a moment via a force-couple approximationunit-verified
freecad (opt-in)freecad.create_parametricFreeCAD-driven parametric solidnone yet
freecadfreecad.boolean_operationFreeCAD boolean opsnone yet
freecadfreecad.get_propertiesFreeCAD shape propertiesnone yet
freecadsession tools (open_session, close_session, create_primitive, create_body, import_step, create_sketch, pad_sketch, pocket_sketch, revolve_sketch, loft_sketches, sweep_sketch, shell_solid, transform_object, fillet, chamfer, boolean, patterns, assembly and joint tools, create_variable_set, set_expression, the generate_* skills, export_model)Stateful authoring on a session's scratch document. Annotation classes: describe_session, describe_model, list_joints, measure are read-only; export_model is producing (returns STEP bytes, writes nothing); the rest are additive (session scratch only). Because none is destructive, the design-flow service caller may call them. freecad.execute_code is deliberately destructive (its source-level sandbox still exposes Import.export(objs, path)), so the service caller is refused it and the refusal is returned to the model as a tool errorunit-verified
freecadfreecad.describe_step_filePer-component breakdown of a multipart assembly file (Label/volume/area/bbox per named part, not just the flattened aggregate)unit-verified
freecadfreecad.export_geometryFreeCAD STEP / STL / IGES exportnone yet
freecadfreecad.generate_meshFreeCAD-driven mesh generation; element_order (1 or 2) selects linear (C3D4) or quadratic (C3D10) tetrahedra, second-order elements capture bending stress more accurately per element. The mesh is always in the twin's coordinate frame: a STEP whose Placement the mesher would drop (e.g. a sketch on the YZ plane) is baked first, so mesh node coordinates equal the committed twin bounding_box. The result adds surface_sets (name to bbox/centroid/area/normal), mesh_bbox_mm, coordinate_frame: "twin" and placement_baked, so fixed and load faces can be picked by position, and calculix.run_fea's load_force_n is in that same frame. For .inp output, quality_metrics carries element quality measured from the tetrahedra themselves (min_angle as the minimum dihedral angle, max_aspect_ratio as longest over shortest edge, avg_quality as the mean radius ratio, degenerate_elements; above 200,000 elements an even sample), where it returned none and the mesh skill passed every mesh. Other output formats carry no quality, and the skill reports that as "not measured" rather than a pass. freecad.export_model also bakes placements into the exported STEP and measures its returned bbox from those bytes. Needs an adapter image rebuild to deployunit-verified (FreeCAD+gmsh end-to-end test skips without them)
freecadfreecad.list_named_facesRe-fetch an already-generated mesh's per-face geometry table (name, bbox, centroid, area, normal) without re-running gmsh — backs the dashboard's geometric boundary-condition face pickerunit-verified
kicad (opt-in)kicad.run_ercElectrical rules check with kicad-cli: violations with severity, rule, sheet, component and pin, and each item's text. kicad-cli nests violations under each sheet, and they are read from there (until then only a top-level list was read, so every report parsed as clean). A path that does not exist is refused by name rather than reported as kicad-cli's bare exit codelive-verified in the kicad image (KiCad 9.0.2): the drone FC reference gives 0 errors and 1 warning, and a copy with U4's VIN label deleted fails with pin_not_connected and power_pin_not_driven (both reports are test fixtures)
kicadkicad.run_drcDesign rules check. unconnected_items counts unrouted connections from KiCad's unconnected_items report key (it read unresolved, which KiCad never writes, so an unrouted board counted zero). rule_set (a .kicad_dru path or its text) is applied: kicad-cli has no rules flag, so DRC runs on a copy of the board with the rules as its <stem>.kicad_dru, and rule_set_applied says so. passed is no error-severity violation and nothing unconnected, counted before severity_filter; warnings do not fail it, and the same rule holds for kicad.run_erc. Needs a kicad adapter image rebuild to deployunit-verified; report keys checked against kicad-cli 9.0.2
kicadkicad.export_bomBill of materials from the schematic: one line per group_by group (value = value and footprint, footprint, or reference = one line per symbol), with references, value, footprint, quantity and DNP, as CSV or the same rows as JSON. The parser used to read ;-separated rows while kicad-cli writes ,, so every total was just the row count, and group_by never reached kicad-cli. Each line also carries the symbols' MPN and Manufacturer fields (grouped on, so different part numbers never share a line), and the result counts the placed (not DNP) lines with no MPN as lines_without_mpn, with components_without_mpn and references_without_mpn: the lines a fab house cannot buy againstlive-verified in the kicad image (KiCad 9.0.2) on KiCad's own pic_programmer demo: 56 components on 36 lines
spice (container)spice.run_simulationngspice circuit simulation in the spice-adapter container (reached through METAFORGE_ADAPTER_SPICE_URL; the gateway image has no ngspice). netlist text or a netlist_path on the adapter workspace it shares with KiCad, so kicad.export_netlist's SPICE output is simulated by path. One analysis card from analysis_type op/dc/ac/transient and params, or the netlist's own single card. Returns per-vector final/min/max (AC: magnitude dB and phase), decimated waveforms keyed with the scale, convergence, and ngspice's errors in log on failure. Backs the run_spice skill, whose tool nothing served before. Needs the new image built and started to deployunit-verified against real ngspice-44.2 rawfiles; checked in the container (divider 2.5 V, RC transient 1 - e^-5 at 5 tau, RC low-pass -55.96 dB at 100 kHz)
firmware (container, opt-in)firmware.buildCompiles a PlatformIO project in the firmware-adapter container (reached through METAFORGE_ADAPTER_FIRMWARE_URL; runs under the firmware compose profile, the gateway image has no toolchain). project_path on the adapter workspace, or files with board and framework; the sources are copied, never changed. With files, libraries names libraries the code includes from those installed in the image (FIRMWARE_LIBRARY_DIR; Adafruit NeoPixel 1.15.5 and BH1750 1.3.0 for Arduino), found by the headers the code includes; a library the image lacks is refused with the list of installed ones, never fetched. Installed platforms: ST STM32 20.0.0 with STM32Cube for the F4, F7 and H7 families, and Espressif 32 7.1.3 with ESP-IDF for the ESP32 and, for the Seeed XIAO ESP32S3 (seeed_xiao_esp32s3, ESP32-S3), both ESP-IDF and Arduino; a board outside those platforms is refused, and one whose framework package is not in the image (another STM32 family) is not_established naming the package PlatformIO could not download. Board data is read from the installed platforms' manifests, so nothing waits on the network. A FreeRTOSConfig.h on an STM32 compiles in the FreeRTOS V11.3.1 kernel (STM32Cube does not) with the GCC port for the series, and for a CM4F/CM7 port the FPU flags it needs (-mfloat-abi=softfp). Returns the compiler's and linker's errors and warnings at file:line (including undefined references and region overflows), flash and RAM used against the part from PlatformIO's size check, the platform and package versions, the build log, and the elf_path. A build that timed out is not_established. The configure_rtos generator now writes the kernel options the real kernel requires (hooks, tick width, Cortex-M interrupt priorities and handler names, configCPU_CLOCK_HZ from cpu_clock_hz or CMSIS SystemCoreClock)unit-verified against recorded PlatformIO output; live-verified in the image with networking off: the generator's FreeRTOS app for STM32F4-Discovery builds, a broken main.c fails at its line, the Nucleo-F767ZI and Nucleo-H753ZI build, an ESP-IDF app builds
firmwarefirmware.static_checkStatic analysis with PlatformIO's pio check on the same project input as firmware.build: cppcheck by default, clang-tidy with tools (both baked into the image, so it runs offline). Each finding comes back with its tool, severity (high, medium, low), rule id, CWE and file:line, most severe first, with counts per severity. passed is no finding at or above fail_on (default high), so style findings alone do not fail it, as with ERC and DRC. suppressions take a cppcheck rule id, an optional file and a required reason, and are echoed in the result. A check with no report, a checker that did not complete, a timeout or a missing package is not_establishedunit-verified against recorded pio check output; live-verified in the image with networking off: a defective main.c fails on cppcheck's nullPointer and arrayIndexOutOfBounds (high) with the unused variable as low, clean code passes, a suppression removes its rule, and clang-tidy runs alongside
firmwarefirmware.run_emulatedRuns a built ELF on an emulated board and checks it: uart_expect (regexes in order), uart_forbid, and on Renode memory_expect (32-bit words, masked). Renode 1.17.0 (MIT) runs disco_f407vg (USART2), nucleo_f767zi and nucleo_h753zi (USART3); Espressif QEMU 9.2.2 (GPL-2.0, a separate process) runs the ESP32, from a 4 MB flash image merged from the build's bootloader, partition table and app. Any other board, a missing emulator or a memory check on QEMU is not_established, never a pass. Each Renode board's SVD is cached in the image, so a run needs no network. On Renode, SysTick runs from the firmware's own core clock: a watchpoint on its SystemCoreClock sets the NVIC frequency each time the firmware writes it (the reset value at startup, then any PLL change), or core_clock_hz fixes it for firmware without that variable; systick_clock in the result names the source. Before this, SysTick used the board model's fixed clock (72 MHz on the F4 Discovery), so a firmware on its 16 MHz reset clock ticked 4.5 times too fast. Functional, not cycle-accurate: instruction timing is not modelled, so only millisecond timing driven by SysTick follows the firmware's clockunit-verified with recorded Renode output; live-verified in the image: the generated FreeRTOS app boots on Renode's STM32F4-Discovery, both tasks print their start line and the generated LED pin reads back high in GPIOD ODR; both Nucleo boards print over USART3; an ESP-IDF app prints from app_main on Espressif QEMU; all with networking off; HAL's uwTick reads exactly 2000 after 2 emulated seconds on the F4 Discovery both on the 16 MHz reset clock and after switching to 168 MHz with the PLL
slicer (container)slicer.sliceFDM slicing with PrusaSlicer 2.9.2 in the slicer-adapter container (reached through METAFORGE_ADAPTER_SLICER_URL; the gateway image has no PrusaSlicer). A workspace STL, 3MF, OBJ or STEP is sliced to G-code under output/slicer/<run id>/, beside the config used. The print time, first-layer time, filament length (mm), volume (cm3) and weight (g), layer count and height are read from the comments PrusaSlicer writes into the G-code, so they are the slicer's figures, not a second estimate. Built-in printer presets are generic Marlin machines by bed size (their start G-code is generic) and material presets cover PLA, PETG, ABS, ASA and TPU; config_path takes a config exported from PrusaSlicer for the real printer instead. layer_height, infill_percent, perimeters, supports, brim_mm, nozzle_mm and copies override either. A config or 3MF that carries a post-processing script is refused, and the config loaded last always blanks post_process. Free and local. Exact FDM DFM also runs it as a cross-check on a validated revision when the context names a machine, recording the result as evidence that never changes the status (see the slicer cross-check). Writes source.json beside the G-code (the model's path and sha256, also returned as source_model), so twin.record_design_files pins the G-code to the CAD revision it was sliced fromunit-verified against real PrusaSlicer 2.9.2 G-code; live-verified in the container
slicerslicer.list_profilesThe built-in printer and material presets slicer.slice accepts, and its defaultsunit-verified
openfoam (container, opt-in)openfoam.run_internal_flowSteady incompressible internal flow with OpenFOAM 11 in the openfoam-adapter container (reached through METAFORGE_ADAPTER_OPENFOAM_URL; runs under the cfd compose profile, the gateway image has no OpenFOAM). Fluid domain as inlet, outlet and wall STL surfaces on the adapter workspace; blockMesh and snappyHexMesh, then foamRun with the incompressibleFluid module, laminar or k-omega SST. Returns the static pressure drop, flow rate, mesh quality, final residuals, whether the residual controls were met and how far the pressure drop moved over the end of the run. A failed run reports its stage and OpenFOAM's reason; a run that does not converge says so. Validated against a straight round pipe at Re = 50 (finest mesh within 0.1% of the Hagen-Poiseuille value with the developing-flow entrance term); not validated for k-omega SST against measurements, so treat turbulent results as a screening estimate. One run at a time; capped cells, processes and wall timeunit-verified with a fake OpenFOAM replaying a captured run; live-verified on the sandbox
kicadkicad.export_netlistNetlist export in kicad-cli 9's formats (kicadsexpr, kicadxml, spice, spicemodel, cadstar, orcadpcb2, pads, allegro; kicad stays an alias of kicadsexpr). It passed --format kicad, which kicad-cli 9 rejects ("Invalid format"). Net and component counts are read from KiCad's own format and are null for the others, not zerolive-verified in the kicad image (KiCad 9.0.2) on KiCad's own pic_programmer demo: 111 nets, 63 components
kicadkicad.export_gerberGerber set for fabrication. The layers go to kicad-cli as one comma-separated list (a repeated --layers kept only the last). With no layers given, the default set takes in the board's inner copper (In1.Cu, In2.Cu, ...), and the inner layers' .g1/.g2 files are listed (a 4-layer job used to come back without its planes). The default set also takes in the paste (stencil) layers, F.Paste and B.Paste, and their .gtp/.gbp files are listed (they were written but dropped from the list). layers_exported names only the layers a file was written for, read from the files on disk (layer_files maps each to its file); a requested layer with no file, such as a name kicad-cli does not know and silently skips, is in layers_missing, and paste_layers names the stencil layers written. pcb_v1 gates on missing_paste_gerbers. A missing board is refused by namelive-verified in the kicad image (KiCad 9.0.2) on KiCad's own pic_programmer demo: 7 layers; on the 4-layer drone flight controller: 9
kicadkicad.generate_schematicPhase 2 (KiCad write). A KiCad 9 schematic from a circuit description: components as KiCad symbol and footprint lib_ids with value and fields, nets as REF.PIN. Symbols are copied from the installed KiCad libraries (extends flattened, every unit of a multi-unit part placed), packed on a sheet sized to fit, and joined by global labels on each pin's connection point; a pin on no net gets a no-connect flag, a net whose power inputs nothing drives a PWR_FLAG, and the project gets its .kicad_pro and library tables. KiCad's ERC then runs on it and the netlist KiCad exports is compared net by net with the circuit; verdict pass is no ERC error and every net matched. An unknown symbol, library or pin is refused by name. A part drawn with a symbol whose name is not its part number (the MPN field, or a value that reads as one; generic libraries such as Device and Connector excepted), say a BMI270 as Sensor_Motion:BMI160, is listed in symbol_substitutions and carries a Symbol_Substitute field in the schematic; until the component's symbol_pinout_checked says how its pins were compared with the datasheet it is also in warnings and counted by unconfirmed_symbol_substitutions, which pcb_v1 gates on. The BOM keeps the real MPNunit-verified on symbols cut from KiCad's own libraries; live-verified in the kicad image (KiCad 9.0.2, Freerouting 2.5.0) with networking off on two circuits, an LDO with an LED and an op-amp buffer whose second unit is unused: ERC 0 violations, every net matched
kicadkicad.generate_pcbA KiCad 9 board from the circuit's board (size, layers, clearance, track and via sizes, hole clearance, a power net class, ground pour, corner mounting holes, and on a 4-layer board solid inner_planes on In1/In2 marked as power layers), built with pcbnew in a worker under the system Python. The board's minimum hole, via and track follow the requested sizes, so DRC does not reject a smaller via as out of range. A component may name its own 3D model where a library footprint's reference is wrong or missing. Custom fields (MPN) are data, not silkscreen. Footprints come from the installed libraries; pad nets come from the netlist KiCad exports from the schematic (as KiCad's own update-from-schematic does, including each no-connect pin's unconnected-(...) net); each footprint is linked to its symbol. Placement is deterministic: connectors on the left edge, the main IC (more than 16 pads) as near the centre as fits, then each part beside the part it is most connected to. Shared signal nets count first; a rail or ground counts by how many pads the neighbour has on it, so a decoupling capacitor lands by the IC with the most supply pins. ICs with more than 16 pads keep a 2 mm margin for fanout. Parts that do not fit are listed. A starting point for review, not an optimum. A component's placement is honoured first: position (x_mm, y_mm from the board's top-left corner, y down), rotation_deg, side (top or bottom, flipped), and for a connector edge_mount {edge: +x, -x, +y or -y, overhang_mm}, which turns the footprint until its mating side faces that edge (read from the footprint's "PCB Edge" marker on a user layer, else from where its pads sit in its body, checked on the turned footprint) and puts its fab outline overhang_mm beyond the edge (0 flush). board.mounting_holes ([{position, drill_mm}]) replaces the four corner holes. Fixed parts that overlap are placed and listed in placement_warnings; each placement reports board_x_mm, board_y_mm, rotation_deg, side and, for an edge mount, the measured overhang. A starting point for review, not an optimumlive-verified in the kicad image (KiCad 9.0.2, Freerouting 2.5.0) with networking off on two circuits, an LDO with an LED and an op-amp buffer whose second unit is unused, and on the drone flight controller: an STM32F405 LQFP-64 and 33 other parts placed on 40 x 40 mm
kicadkicad.edit_pcbChanges an existing board without a file upload: the board and its project (so schematic parity still runs) are copied to a new folder, then an ordered list of operations is applied: move (ref, position, optional rotation_deg), rotate, place (the same fields as a generate_pcb placement, edge_mount included), set_mounting_hole (moves H<n> or adds one, drill_mm), remove_mounting_hole, strip_routing. With reroute (default) the old tracks, vias and outer pours are stripped and the copy is routed and checked as kicad.autoroute_pcb does, re-pouring the net it had. Returns the operations applied, the placements of the parts it touched, courtyard overlaps, parts beyond_board_edge, and the routing verdict. Record the result with twin.record_design_files and the board's item_key to make it the next PCB-...@nunit-verified; placement and edits live-verified in the kicad image (KiCad 9.0.2) with a GCT USB4105 USB-C receptacle mounted on each of the four edges, flush and 1.5 mm proud
kicadkicad.autoroute_pcbRoutes a copy of the board with Freerouting 2.5.0 (GPL-3.0, a separate Java 25 program) through KiCad's Specctra DSN export and session import, pours and fills the ground net on both outer layers (solid pad connection: thermal spokes to small pads starved), then runs KiCad's DRC with schematic parity when the schematic sits beside it. On a board with inner planes, every SMD pad on a plane net is first fanned out to a via before routing. The via goes under an IC's body where there is room, so the signal pins beside it keep their way out, and never into a footprint's keepout. The fanout is locked, so the router keeps it. Freerouting reaches a plane only by dropping vias of its own, and on the drone board it left 5 to 21 supply connections unrouted without the fanout. Returns tracks, vias, track length, unrouted connections, DRC errors and warnings, and parity issues; pass only when all three are zero. Freerouting's native freerouting-cli build was rejected: it crashes mid-route on a GraalVM serialization error and then waits foreverlive-verified in the kicad image (KiCad 9.0.2, Freerouting 2.5.0) with networking off on two circuits, an LDO with an LED and an op-amp buffer whose second unit is unused: 0 unrouted, 0 DRC errors, schematic parity clean (one silkscreen-overlap warning on the LDO board); the 4-layer drone flight controller with GND and +3V3 planes: 0 unrouted and 0 DRC errors in one round, with parity clean and a complete STEP
kicadkicad.export_3dThe board as STEP (for the enclosure) or GLB (for viewing) with kicad-cli pcb export, the components' 3D models included. The image carries KiCad's STEP models for the families generated boards use (SMD passives, common IC packages, crystals, USB, JST, vertical headers and sockets, switches; 1.1 GB of the 4.9 GB set; KiCad 9 footprints reference STEP, so the VRML copies are dropped). kicad-cli leaves a missing model out without a word, so the adapter resolves every footprint's model path itself and lists the missing ones; complete is false thenlive-verified in the kicad image with networking off on a generated, routed board: STEP and GLB complete; a Molex part, whose family the image does not carry, named as missing
kicadkicad.render_pcbA ray-traced PNG of the board (kicad-cli pcb render): view top, bottom or iso (perspective, floor and shadows), optionally inline as base64 to show the person. (kicad-cli reads a -45 rotation as an option, and its -h is height, not help: the views are fixed here.)live-verified in the kicad image with networking off on a generated, routed board
kicadkicad.export_svgPlots a schematic (one SVG per sheet, kicad-cli sch export svg, no drawing sheet) or a board (one SVG of layers, default the top side: copper, paste, silkscreen, mask and outline, cropped to the board) for previews. twin.record_design_files calls it for every schematic and board it recordsunit-verified
kicadkicad.update_componentsValue, footprint and fields of named references (every unit of a multi-unit part) in a schematic, and value and fields of the board's footprints, written as a new revision in a new folder, then ERC on it. A footprint change marks the board stale -- regenerate it from the schematic -- rather than swapping footprints in place. An unknown reference is refused by namelive-verified in the kicad image with networking off on a generated, routed board: a value and MPN change reaches the BOM; the original schematic is untouched
kicadkicad.export_drillDrill files (Excellon, millimetres, plated and non-plated holes separately) with the hole count per filelive-verified in the kicad image (KiCad 9.0.2) on KiCad's own pic_programmer demo: 244 plated and 7 non-plated holes
kicadkicad.export_posPick-and-place file (CSV, millimetres, both sides): each component's reference, value, package, position, rotation and sidelive-verified in the kicad image (KiCad 9.0.2) on KiCad's own pic_programmer demo
kicadkicad.get_pin_mappingEach component's pins with name, electrical type and net, from the S-expression netlist read as a tree (it split the text on (comp , and asked kicad-cli for a format it no longer accepts)live-verified in the kicad image (KiCad 9.0.2) on KiCad's own pic_programmer demo
gazebo (opt-in)gazebo.run_simulationHeadless physics/dynamics simulation of an SDF/world filenone yet
gazebogazebo.validate_worldValidate an SDF/world file's basic structure before simulatingnone yet
gazebogazebo.extract_resultsParse an existing Gazebo stats JSON filenone yet
omniverse_usd (opt-in)omniverse_usd.convert_glb_to_usdConvert a GLB (from cadquery/freecad/occt-converter) into an OpenUSD stage, preserving part names and transformsnone yet
omniverse_usdomniverse_usd.validate_usd_minimumCheap structural viability gate on a USD stage (default prim, mesh count, metersPerUnit) before downstream simulation dispatchnone yet
omniverse_usdomniverse_usd.describe_stageBasic structural info about a USD stage (up axis, scale, prim paths, mesh count)none yet
simready (opt-in)simready.searchFind packages in NVIDIA SimReady Central by the words of their name, optionally from one publisher; each result is a commit-pinned package_url with its dataset licence. Packages under a licence MetaForge does not store unread are left out unless include_unacceptedunit-verified
simreadysimready.inspectReport one package without keeping it: the licence as the dataset, manifest, licence file and USD layer state it and whether it is accepted; then every USD layer checked against its sha256, and the stage's bounding box (m), mass per rigid body (kg), joints, contact friction and restitution, semantic labels, physics backends and SimReady conformanceunit-verified
simreadysimready.importFetch one package onto the adapter workspace under simready/, refused unless every licence statement agrees on an accepted licence and every file matches its sha256: the USD layers, a GLB preview (millimetres and Z up like the STEP converter's models, each face in its material's colour), LICENSE.txt, ATTRIBUTION.txt and simready.json, plus a library.register_component body. Textures only with include_texturesunit-verified
simreadysimready.attributionThe credit lines the imported parts' licences ask for, from the folders simready.import wroteunit-verified
isaac_sim (opt-in)isaac_sim.run_physicsDispatch a PhysX physics job to the nvcr.io/nvidia/isaac-sim container via ephemeral GPU compute; caller supplies the container command, requires accept_eula=truenone yet
isaac_simisaac_sim.render_sceneDispatch an RTX render job to the same containernone yet
project (injected)project.createCreate a project (rejects a case-insensitive duplicate name)tier1/project.md
projectproject.listList projects the caller can seetier1/project.md
projectproject.getFetch a project by id or nametier1/project.md
projectproject.updateRename, redescribe, or change status on an existing projectnone yet
projectproject.deletePermanently delete a project by idnone yet
memory (injected)memory.retrieve_similar_experienceSemantic recall of past agent experiencesnone yet
memorymemory.list_insightsList consolidated memory insightsnone yet
session (injected)session.startOpen an agent session to record narrativelive-verified
sessionsession.log_eventAppend a thought / action / decision / … to a sessionlive-verified
sessionsession.completeClose a session with terminal status + summarylive-verified
farnell (credential-gated)farnell.search, farnell.get_product, farnell.get_pricing, farnell.get_availabilityFarnell (element14) Product Search API, priced in the store's currency (FARNELL_STORE, default uk.farnell.com, GBP; an unmapped store needs FARNELL_CURRENCY or returns no prices). Registers only with FARNELL_API_KEY. Answers cached 6 h; one call serves details, pricing and availability for a part. Field mapping written from element14's published API, not yet run against a live keyunit-verified with recorded-shape mocks
arrow (credential-gated)arrow.search, arrow.get_product, arrow.get_pricing, arrow.get_availabilityArrow itemservice v4 token search. Maps part, manufacturer, description, datasheet, stock on hand, price breaks (cheapest per break across sources, with their currency) and minimum order quantity; lead time and lifecycle are left unknown, not guessed. Registers only with ARROW_LOGIN and ARROW_API_KEY. Not yet run against a live keyunit-verified with recorded-shape mocks
mouser (credential-gated)mouser.* call budgetAnswers cached (MOUSER_CACHE_TTL_SECONDS, default 6 h) and real calls counted against MOUSER_DAILY_LIMIT (default 1000) per UTC day; one call serves details, pricing and availability for a part. With the budget spent a stale answer is served if there is one, otherwise the lookup returns nothing and logs distributor_daily_limit_reachedunit-verified
offer_resolver (injected, no required backend)distributors.resolve_offersFan out to whichever of Digi-Key/Mouser/Nexar/Farnell/Arrow are configured, per MPN: quantity-aware price-tier selection, MOQ-forced overbuy, stock sufficiency (never just stock>0), deadline-vs-cost ranking. Registers even with zero distributor credentials; "no offers found" is a normal result, not an error. There is no FX-rate source in this layer, so offers spanning more than one currency are flagged via currency_mismatch rather than compared as if same-currency: a caller must check each offer's own currency before trusting cross-offer cost rankinglive-verified (fidel-dev)
web (web.search requires TAVILY_API_KEY or BRAVE_API_KEY)web.searchRanked public-web results (title/url/snippet) via the Tavily or Brave Search API (WEB_SEARCH_PROVIDER: auto takes Tavily when its key is set, else Brave; a named provider without its key is not swapped) — current datasheets, standards, vendor docs, errata. web.search is not registered when the key is unset, so an agent never sees a search that cannot work; web.fetch needs no key and is always offered. A rate-limit or API failure raises rather than returning an empty list, so the agent can't report "no results found" for a query that was never answered; 429s are retried with backoff firstlive-verified
webweb.fetchFetch one public http(s) URL as readable text — HTML and PDF (datasheets, app notes, reference manuals). SSRF-guarded: private/loopback/link-local hosts refused on the initial URL and every redirect hop; http/https + ports 80/443 only. HTML capped at 2 MB; a PDF is read up to max_pages (default 30) and says so in-band when later pages were skipped, is never byte-truncated (that corrupts the xref table), and an oversize/scanned/encrypted PDF is refused with the reason. Content is returned inside an explicit untrusted-data fence. Pair with knowledge.ingest (source_path=<url>) to keep a source. A site that turns automated readers away is reported as such, not as a bare transport error: the error names the host, how it refused (a Cloudflare or Akamai challenge, no answer within the timeout, a dropped connection) and the sources that work instead (digikey.get_product / mouser.get_product for part data and a datasheet link, knowledge.search, or a person's own download added with knowledge.ingest). Measured from the sandbox: DigiKey's product pages answer 403 with a Cloudflare challenge, and www.st.com and mouser.com datasheet links never answer. web.fetch identifies itself honestly and does not try to get past either An HTML page also returns its links ({text, url}, at most 80), datasheet, manual and PDF links first, with documents embedded in the page (an iframe or embed, unwrapping a pdf.js viewer) listed as Embedded document. A PDF is read page by page: the text layer, then OCR for a page with none (a scan; pypdfium2 + RapidOCR, the ocr extra, at most 20 pages a call), then a vision model for a page OCR reads below 0.80 confidence (at most 4 a call; METAFORGE_WEB_VISION=off turns it off). Each page's text is labelled with what read it, and OCR or model readings are to be confirmed before use. pages reads chosen pages (1-3,250-260, up to 100); reader forces text, ocr or vision; the result's pdf says which reader read which page.live-verified
web (TAVILY_API_KEY)web.extractReads a public page or PDF through Tavily Extract, a third-party reader that fetches it from its own side: the fallback when web.fetch times out or is refused (analog.com, st.com, Mouser, Farnell, TDK). Private addresses are refused before anything is sent. The text is labelled read via Tavily Extract; a long document comes in parts (start_char, next_start_char) from a 15-minute cache, so reading on is not billed again. depth advanced reads tables and dense PDFs better. Not offered without the keylive-verified
meshy (requires MESHY_API_KEY)meshy.text_to_3dStart a Meshy AI cloud job that turns a text prompt into an untextured mesh (GLB, STL, 3MF, OBJ, FBX, USDZ). Returns a task_id at once. Spends Meshy credits, so the dashboard chat holds each call for approval and MCP clients see a non-read-only, open-world tool. A mesh is triangles, not parametric CAD: the description steers dimensioned parts to cadquery.* / freecad.*. Not registered when the key is unsetunit-verified
meshymeshy.image_to_3dSame, from one reference image given as a public https:// URL or a data:image/... URI (Meshy fetches it itself, so a local path is refused before any call)unit-verified
meshymeshy.refine_textureTexture a succeeded text_to_3d preview; a new task with its own id. Spends credits, so held for approval like text_to_3dunit-verified
meshymeshy.get_taskA job's status (PENDING, IN_PROGRESS, SUCCEEDED, FAILED, CANCELED), progress and available formats, waiting up to wait_seconds (max 120) for it to finish. Read-only and open-world, so following a job never asks. A failed job carries Meshy's own reasonunit-verified
meshymeshy.downloadWrite a succeeded job's mesh files to output/meshy/<task_id>.<format> on the adapter workspace and return each file_path, which twin.commit_geometry(file_path=..., format=...) stores as a work product. Meshy's signed URLs expire within days, so this is the step that makes the mesh versioned. Streams to a .part file and renames, capped at 200 MBunit-verified
zoo (requires ZOO_API_TOKEN)zoo.convertUpload a workspace file to Zoo's cloud API and write the converted file(s) to output/zoo/<operation_id>/. Reads STEP, SolidWorks (.sldprt), CATIA, NX, Creo, Inventor, Parasolid, ACIS, STL, OBJ, PLY, FBX and glTF; writes STEP, STL, GLB, glTF, OBJ, PLY or FBX. The input format comes from the suffix or src_format (required for .prt). Returns a file_path for twin.commit_geometry. A file over 25 MB is queued and returns an operation_id. A mesh converted to STEP is flagged as a faceted solid. Not registered when the token is unsetunit-verified
zoozoo.get_conversionFollow a queued zoo.convert by operation_id, waiting up to wait_seconds (max 120); writes the files once it completes. A failed conversion carries Zoo's own reasonunit-verified
zoozoo.mass_propertiesVolume, surface area, centre of mass and bounding box of a workspace file, plus mass when material_density (kg/m^3) is given, all in one length_unit (default mm). Read-only and open-world: the file is uploaded, nothing is written. Zoo assumes the file is at true scale, which an STL cannot stateunit-verified
tripo (requires TRIPO_API_KEY)tripo.text_to_3dStart a Tripo AI cloud job (v3 API) that turns a text prompt into a GLB mesh. Returns a task_id at once. model defaults to v3.1-20260211 (the image tool too): Tripo answers 400 without one. Spends Tripo credits, which Tripo freezes at once and deducts only if the job succeeds, so the dashboard chat holds each call for approval and MCP clients see a non-read-only, open-world tool. auto_size scales the result to real-world metres; without it the size is arbitrary. The description steers dimensioned parts to cadquery.* / freecad.*. Not registered when the key is unsetunit-verified
tripotripo.image_to_3dSame, from one reference image: a PNG, JPEG or WebP on the adapter workspace (file_path, uploaded to Tripo first, max 20 MB) or a public https:// URL. Held for approvalunit-verified
tripotripo.convertConvert a succeeded Tripo generation (task_id) or a workspace GLB, glTF, FBX, OBJ or STL (file_path, uploaded first, max 150 MB) to STL, 3MF, OBJ, FBX, glTF or USDZ, optionally decimating (face_limit) or flattening the underside for a print bed. A new task. Spends credits, so held for approval. Native CAD goes to zoo.convertunit-verified
tripotripo.get_taskA job's status (queued, running, success, failed, cancelled, banned, expired) and progress, waiting up to wait_seconds (max 120). Read-only and open-world. A failed job carries Tripo's own reason; a banned one says the input broke Tripo's content policyunit-verified
tripotripo.downloadWrite a succeeded job's model to output/tripo/<task_id>.<format> on the adapter workspace (optionally its preview image too) and return the file_path and format for twin.commit_geometry. Tripo's signed URLs expire. Streams to a .part file and renames, capped at 300 MBunit-verified
tripotripo.get_balanceThe account's available credits and the credits frozen for running jobs. Read-onlyunit-verified
slant3d (requires SLANT3D_API_KEY)slant3d.analyze_partUpload a workspace STL to the Slant 3D print farm through its presigned upload and confirm flow. Slant slices it and reports size (mm), volume (cm3), surface area, weight (g), print time (minutes), whether it needs supports and its body count. Returns a file_id. Free; the file is kept on the Slant account under SLANT3D_PLATFORM_ID or the account's first platform. STL only. Not registered when the key is unsetunit-verified
slant3dslant3d.quotePrice an analysed part on the farm in USD for a filament (default PLA black) and quantity: per unit, multi-body and oversize surcharges, total. Print cost only; shipping and tax are not included. Places no orderunit-verified
slant3dslant3d.get_partRead an analysed part back: its metrics and any production notes from the Slant 3D teamunit-verified
slant3dslant3d.list_filamentsThe farm's filaments (PLA, PETG, OPM) with id, colour and stock, filtered by material and colourunit-verified

The KiCad exports (export_bom, export_netlist, export_gerber, export_drill, export_pos) never overwrite. With no output path each writes a new folder of its own under exports/ on the adapter workspace; a named output_dir must be new or empty and a named output_file must not exist, or the call is refused by name. That makes them producing writes, not destructive ones, so a design-flow phase task (server or client mode) may run them: as destructive tools they were refused to every phase task, and no flow could produce its gerbers, placement file or BOM.

Session capture also runs server-side (every tool call → an action event) — see session-capture.md for the full three-layer model and install.

MCP resources (read-only, addressable):

  • metaforge://knowledge/sources — list of ingested sources.
  • metaforge://knowledge/sources/{id} — one source with chunks.

See integrations/claude-code.md for how to drive these from Claude Code.

Cloud adapters​

A cloud adapter is an API service that does work a local tool container would otherwise do, so a hosted gateway with no CAD containers can still produce it. Each one runs in-process in the gateway (and the MCP sidecar), needs only an API key, and follows the web contract: with no key its tools are not registered at all, and a failed call raises rather than returning an empty result.

AdapterKeyStands in forStatus
meshyMESHY_API_KEY (MESHY_BASE_URL optional)Mesh authoring in Blender / FreeCADunit-verified
zooZOO_API_TOKEN (ZOO_BASE_URL optional)FreeCAD import and export of native CAD; CadQuery / FreeCAD mass propertiesunit-verified
tripoTRIPO_API_KEY (TRIPO_BASE_URL for a China-region key)Mesh authoring in Blender / FreeCAD; mesh format conversionunit-verified
slant3dSLANT3D_API_KEY (SLANT3D_PLATFORM_ID optional)A slicer's weight and time estimate; manual print quotingunit-verified

Generation is asynchronous. The usual sequence is meshy.text_to_3d (or image_to_3d), then meshy.get_task until SUCCEEDED, then meshy.download, then twin.commit_geometry with the returned file_path and format. The dashboard's Settings page lists each cloud adapter as connected or not configured, read from the gateway's own GET /v1/harness/tools list; the key itself is set in the gateway's environment, not in the browser.

zoo.convert brings a supplier's native part (SolidWorks, CATIA, NX, Creo, Inventor, Parasolid) into the twin as STEP, which the FreeCAD container cannot read. Zoo's text to CAD is not wrapped: it is served only over its Zookeeper copilot WebSocket and returns KCL source, not a STEP file.

tripo.* follows the same create, follow, download sequence as meshy.*, with two differences: tripo.image_to_3d takes an image already on the workspace (it uploads it), and tripo.convert turns a generated GLB into STL or 3MF for a printer. Tripo's keys are bound to a region; the default host is the global one.

slant3d.* quotes a print: slant3d.analyze_part on an STL (export one with cadquery.export_geometry, zoo.convert or tripo.convert), then slant3d.quote with a filament from slant3d.list_filaments. Placing an order is deliberately not wrapped: it charges the account and ships a part. The analysis is Slant's own slicing estimate; no hosted API returns G-code for an arbitrary printer. G-code for your own printer comes from slicer.slice, which runs PrusaSlicer in its own container.

Chat-harness-native tools (not via the standalone MCP server)​

Registered directly into a chat turn's ToolRegistry (orchestrator/harness/tools.py) rather than through an MCP adapter — only reachable from within a running chat turn (forge chat, the TUI workspace, the dashboard chat), never from an external MCP client like Claude Code.

ToolPurposeUAT scenario
chat.set_project_scopeRescope the CURRENT chat thread to a project (id/name/substring, or none to leave) — in place, preserving the conversationsee cli-reference.md
chat.render_uiAttach typed UI blocks (choice, comparison, measurement request, table, metrics, callout, proposal, part) to the reply being written; validated at the callsee generative-ui.md

CAD kernel capability contract​

The cadquery and freecad adapters both implement 5 shared capability tags. Mechanical skills (generate_cad, generate_cad_script) resolve a backend at runtime via mcp.list_tools(capability=...) (domain_agents/shared/cad_backend.py's resolve_cad_backend) rather than hardcoding a tool id per backend — a new adapter becomes a valid candidate for every skill that calls this helper the moment it registers a tool under one of these tags, no skill code changes required.

Capabilitycadquery toolfreecad toolGuaranteed fields (both backends)Backend-only extras
cad_generationcreate_parametriccreate_parametricshape_type ∈ {bracket, plate, enclosure, cylinder}, parameters, material, output_path → cad_file, volume_mm3, surface_area_mm2, bounding_box, parameters_usedBoth backends add mass_kg (volume × the material library's density) when material is given; omitted, never defaulted, when it isn't. A material the library does not hold is refused with the closest entries
cad_operationsboolean_operationboolean_operationinput_file_a, input_file_b, operation ∈ {union, subtract, intersect}, output_path → output_file, result_volume, result_area— (field-for-field identical)
cad_analysisget_propertiesget_propertiesinput_file → volume, area, center_of_mass, bounding_boxCadQuery adds inertia; FreeCAD's does not return it
cad_exportexport_geometryexport_geometryinput_file, output_format, output_path → output_file, file_size_bytes, formatCadQuery supports step/stl/obj/brep/amf/svg; FreeCAD supports only step/stl/obj/brep (no amf/svg), and errors on non-STEP today. Both include step_base64 when the export is STEP — pass it to twin.commit_geometry's step_base64 argument to persist the result to MinIO + a WorkProduct node; without that follow-up call the file only exists in the adapter container and is lost on redeploy.
cad_scriptingexecute_scriptexecute_codeScript assigns its result to a variable named resultDifferent call shape: CadQuery is stateless ({script, output_path} → one file); FreeCAD is session-based ({session_id, code} against a live document → obj_id, needs a separate open_session/measure/export_model/close_session sequence, see generate_cad_script's _run_freecad_code)

A verification step (or anything else consuming this contract) should rely on the guaranteed-fields column above, not assume full identity — e.g. a measurement check shouldn't require inertia unless it knows it's routed to CadQuery specifically.

Adding a new kernel: register its tools under these same 5 capability tags with input/output shapes matching the guaranteed-fields column, and resolve_cad_backend (plus every skill that calls it) picks it up automatically. Capabilities outside this table (FreeCAD's PartDesign/ Sketcher feature-tree tools, assembly joints, generate_gear/ fastener_hole/generate_ic_package/lattice_perforation; CadQuery's create_assembly/generate_enclosure) are intentionally kernel-specific and not part of this uniform contract — FreeCAD's session/feature-tree model is a categorically different, stateful capability CadQuery cannot replicate. create_assembly and generate_enclosure also return volume_mm3 and (when a material is given) mass_kg, computed the same way as create_parametric above — for create_assembly this is a first-order estimate (summed part volume × one material's density), not per-part-accurate, since AssemblyPart doesn't carry a per-part material.

Measured properties reach the Twin, not just the tool response: the three mechanical skills that commit CAD geometry (generate_cad, generate_enclosure, create_assembly) pass whichever of volume_mm3, surface_area_mm2, mass_kg, and bounding_box (as bbox_mm) the tool actually returned to commit_geometry's extra_metadata argument (domain_agents/shared/commit_geometry.py's measured_metadata_from_cad_result), which flattens them onto the committed work product's top-level metadata. This is what lets a constraint expression like wp.metadata.get('mass_kg', 0) <= 4.5 read a real measured value instead of always the vacuous-pass default.

Dashboard routes (14)​

Served by Vite under dashboard/ — boot with docker compose up gateway dashboard and open localhost:3000.

PathPurposeBacked by
/projectsProject list + create / update / deleteGET/POST/PATCH/DELETE /v1/projects
/projects/:idProject detail, work-product treeGET /v1/projects/{id}
/sessionsWorkflow run listGET /v1/sessions
/sessions/:idSession detail, agent messagesGET /v1/sessions/{id}
/approvalsPending change-proposal reviewgateway approvals API
/requirementsPer-requirement quality flags (clarity/atomicity/quantified/traceability/verification-readiness), pairwise numeric-bound conflict detection with the conflicting pair highlighted, and a per-product-type completeness checklist; "Fix with AI" proposes a rewrite via the Requirement Author agent (never applied automatically). Evidence matrix (spec step 16): requirements × claims × evidence, one row per requirement with a live-derived status (pass/uncertain/fail/no_data/stale) from the most current cited evidence's own margin, flagging stale evidence even when the claim is still SUPPORTED by other current evidence; expandable evidence detail (method/tier/value/limit/margin/staleness) and a Structure-tab link per row; client-side CSV/MD export. Constraint editor: a "+ New constraint" form picks metric/operator/limit/unit/target node directly — no hand-typed Python expression — reusing the exact same twin.record_constraint_set validation as every MCP caller; the new requirement appears immediately on the matrix (honestly no_data until a claim cites it). The editor and matrix rows also carry verification_method/expected_evidence — a row where both are blank renders a red "not declared" badge, distinct from the matrix's own no_data status (which means "no evidence recorded yet", not "never said what verification it expects"). Design loop: a "Start design loop" form runs the closed propose→build→simulate→evaluate→revise loop against a CAD work product, renders the resulting iteration timeline (parameter/objective values, feasibility, status per candidate), and an "Approve winner" action once converged. Gate review: pick required claims + a maturity level + optional comment, Approve (evidence-gated — blocks on no_data/fail unless waived) or Reject. There is no reviewer field to type into: it was removed, because a box anyone can type a name into is a box the agent can type a name into (a human veto that refuses even a fully-satisfied set of claims); a history list shows every past attempt. Feature library: pick a named parametric feature (bolt_pattern -- a mounting plate with a circular bolt-hole pattern, or rib -- a triangular gusset), fill its typed parameters, generate a standalone CAD_MODEL work product from it via generate_parametric_feature (domain_agents/mechanical/skills/, a thin macro layer over the same Design IR entities generate_cad_ir already lowers -- only 2 of the ticket's 7 named features ship in this first cut, the rest are the same pattern, deliberately deferred). Traceability coverage heatmap: 5 tiles (needs→requirements, requirements→architecture, requirements→verification, verification→evidence, critical-requirements→evidence), computed live by TraceabilityAgent.coverage() (previously real, tested code with no gateway route exposing it at all); null/"N/A" for a genuinely empty denominator, never 0% or 100%. Advisory only -- the real live gate is twin.attempt_promotion above, consuming the evidence matrix, not this coverage summary. Release packages: a "Create release package" action and a list of past releases (candidate component selections are left out of a release's BOM), each showing its real hierarchy/BOM/evidence/decision counts and the count delta against the immediately-prior release; creation is refused (a toast names the failing check(s)) unless the G8 release gate currently passes. Test plan: a "Generate test plan" action mechanically deriving one verification_case per real requirement with verification_method="test" from its own metric/operator/limit/unit/target-node fields, rendered as a step + acceptance-value table -- an empty result honestly means the project has no test-method requirements yet, not an errorGET /v1/requirements/quality, GET /v1/requirements/matrix, GET /v1/requirements/coverage, POST /v1/requirements/{id}/fix, POST /v1/requirements/constraints, POST /v1/design-loop/start, GET /v1/design-loop/{loop_id}, POST /v1/design-loop/{loop_id}/approve, POST /v1/promotion/attempt, GET /v1/promotion, POST /v1/features/generate, GET /v1/releases, POST /v1/releases, GET /v1/testplans, POST /v1/testplans
/bomBOM viewer, with a flat/hierarchical toggle: the hierarchical view derives an EBOM from the product hierarchy, quantities multiplied down the CONTAINS tree. GET /v1/bom also takes an optional category filter (case-insensitive exact match against BOMItem.specifications.category, e.g. category=fastener for a fastener list; no dashboard control for it yet, forge CLI/gateway-only). A "Supply-chain risk" button scores every real BOM line's real resolved distributor offers (single-source, lead time, lifecycle, price volatility, stock level, compliance) through the already-real, already-tested BOMRiskScorer -- this engine existed fully wired to a full hardware_v1 design-flow run but had no on-demand route for an arbitrary project's existing BOM until this ticket. Compliance (RoHS/REACH) always scores as "missing both" since no distributor adapter in this codebase sources those flags yet -- a known, documented limitation, not a bug. Flagged (high/critical) parts render as badges with each factor's real score/description on hover. A line with no price reads "no price" (unitPrice: null from GET /v1/bom, never 0), and when any line is unpriced the header shows a partial total with how many lines are priced; the Structure tab marks a branch's partial cost the same way (>= and a coverage tooltip)GET /v1/bom/..., GET /v1/bom/hierarchical, GET /v1/bom/risk
/simLoad-case editor + list, with a 3D geometric face picker for fixed/load faces; FEA results list with a numeric side-by-side version-compare panel, per project. The opened result renders in 3D (stress, displacement or temperature colour map with legend and peak, deformed shape with a scale slider, load and fixture markers, hover probe), two selected results compare side by side in 3D with a synced camera and one shared colour scale, and a recorded mesh-convergence sweep is charted; a result recorded without a field shows a "Field not stored" noteGET/POST /v1/simulation/load-cases, POST /v1/simulation/named-faces, GET /v1/simulation/results, GET /v1/simulation/results/{id}/field
/twin3D viewer (R3F / Three.js) for STEP/GLB; its Structure tab shows the product hierarchy tree-table with per-node mass/cost rollups, allocation owner/discipline, and a per-node interfaces badge (from twin.commit_system_architecture's own interfaces); its Assembly tab's mates/joints are editable in place (add/delete, base/follower picked from the assembly's own part list) and persist directly onto the node with no live FreeCAD session or re-export needed. Its History tab now also shows a parameter-level diff against a SUPERSEDES predecessor when one exists — "editing" a parametric feature is re-generating it with the same name and a changed parameter value, and generate_cad_ir now threads that value into the committed node's geometry_features.parameters so this diff has something real to read. A loaded robot_description node's joint-slider overlay gets a "Use as load case" button: computes each joint's quasi-static reaction force/moment at the current slider pose (link mass/CoM read straight from the posed URDF, gravity only — no velocity/acceleration/trajectory terms) and shows the worst-loaded joint inline. A Structure-tab node with real committed geometry gets a "DFM check" button: runs the 3D-print overhang check against a supplied mesh file path (no mesh-generation UI exists yet, so this is an explicit input, not an assumption) and lists each flagged face's name/tilt/area -- a face-by-face list, not a 3D-highlighted contour (that's a separate future ticket). The same node also gets a "Release for manufacture" button: chains twin.stage_work_product_file (real MinIO-first blob resolution) into the already-real cadquery.export_geometry to produce a real STL (3D print) or STEP (CNC) file from the node's committed geometry, returned base64-encoded (same shape cadquery.export_geometry's own step_base64 field uses) and downloaded client-side. 3MF export and sheet-metal flat patterns (no flat-pattern geometry model exists in this codebase) are explicitly out of scope for this first cut. The node History section now also lets you pick any two of a work product's own metadata revisions to diff: GET /v1/twin/nodes/{id}/diff was real and already tested but had zero dashboard consumers until this ticket. A separate "Geometry changes vs. previous version" panel shows a real volume/area/bounding-box delta against a SUPERSEDES predecessor (GET /v1/twin/nodes/{id}/geometry-diff, new): unlike the metadata-revision diff, this compares two DIFFERENT nodes' actual STEP files via freecad.describe_step_file, since /iterate never re-uploads a blob, so no two revisions of one node ever have different geometry -- a true volumetric/mesh boolean diff visualization (3D "added/removed volume" highlight) stays out of scope, matching this same page's other deferred 3D-result visualizations. GET /v1/controls/repeatability-estimate (no dashboard control yet — forge CLI/gateway-only): a worst-case end-effector repeatability estimate from real metadata.assembly.joints kinematics, new in this ticket since no multi-joint chain composition or Jacobian existed anywhere in this codebase before it — a serial-chain forward-kinematics solve plus a numerical (finite-difference) Jacobian, both reusing api_gateway/constraint/kinematics.py's Rodrigues-formula convention. Propagates each real actuator's real, manufacturer-cited encoder resolution (AK80-8 KV60: 15-bit output encoder, cubemars.com's own product page) through the Jacobian; for the arm's igus RL-SE actuators, no per-joint encoder resolution is published anywhere by igus (checked their product pages, the ReBeL technical wiki, and their public documentation), so their own published whole-arm repeatability spec (+/-1mm, igus.com/product/22534) is used as a real, cited, conservative stand-in for those joints' combined contribution rather than a fabricated per-joint decomposition. The ticket's other half — tracking error, stability margins, controller tuning, Bode/step-response plots — needs real closed-loop-controls analysis and the Planner's own candidate library (python-control) is unscheduled; not built here, same reasoning as the deferred Gazebo/Isaac dynamics work. A Structure-tab node with real committed geometry also gets a "Check interference" button: a real boolean-intersection clearance/interference check (GET /v1/twin/interference-check, new) against a second, explicitly-named part's committed STEP geometry -- cadquery.boolean_operation(operation="intersect") already existed and already returned a real overlap volume/area, just never named or wired for this purpose; result_volume > 0 means the two parts interfere. Pairwise only (not an all-pairs sweep across an entire assembly) and an ISO 286 tolerance-grade/hole-shaft fit classification (H7/g6-style) stays out of scope -- real, nontrivial standard-table work with no identified real use case on this project today, unlike the clearance check itself which needed no new geometric algorithm. A Structure-tab node with a linked technical_drawing work product gets a "Technical drawing" button: surfaces the real dimensions/GD&T callouts/surface-finish/inspection-requirement data generate_technical_drawing (domain_agents/mechanical, predates this ticket) already recorded -- that skill's own docstring is explicit that it produces structured data, not a rendered 2D vector drawing, and no TechDraw-equivalent generator exists anywhere in this codebase, so a rendered drawing view stays out of scope here too. The panel also exposes a human approval gate (POST /v1/twin/nodes/{id}/approve-technical-drawing, new) mirroring design_sketch's own approve-then-version pattern exactly: flips metadata.approved/approved_at/approved_by and records a real VersionService revision rather than a silent overwrite. GET /v1/technical-drawings?work_product_id= lists every technical_drawing linked to a part via a real PARENT_OF edge traversal (the skill already created these edges; this ticket is the first dashboard consumer of them)GET /v1/twin/files/..., GET /v1/twin/hierarchy, PATCH /v1/twin/nodes/{id}/assembly-joints, GET /v1/twin/nodes/{id}/diff, GET /v1/twin/nodes/{id}/geometry-diff, GET /v1/twin/interference-check, GET /v1/features/{id}/diff, POST /v1/robot/joint-loads, POST /v1/dfm/overhang-check, GET /v1/manufacture/release, GET /v1/controls/repeatability-estimate, GET /v1/technical-drawings, POST /v1/twin/nodes/{id}/approve-technical-drawing
/filesLegacy file browsergateway files API
/knowledgeIngested-sources table (sortable, filterable)GET /api/v1/knowledge/sources
/knowledge/sources/:idPer-source drill-in (placeholder in v1)stub
/assistantChat panel (gateway → orchestrator)POST /v1/chat
/evalsEval dashboard: pass rate per scenario over recorded nightly runs — "over releases" (the ticket's own wording) is aspirational, since evals/nightly.sh runs on a timestamp, not a CI release tag. Reads evals/reports/*/report*.json directly (a read-only bind mount in Docker, since evals/ itself is deliberately not copied into the gateway image); shows the new outcome-graded design_loop_rubric.py scenario alongside the pre-existing keyword-graded onesGET /v1/evals

CLI commands (8)​

Invoke via python -m cli.forge_cli <cmd>. Full per-command reference in cli-reference.md.

CommandPurpose
runInvoke a skill via the gateway
statusShow session / agent status
twin queryLook up a single Twin node
twin listList Twin work products with filters
proposalsList pending change proposals
approve / rejectAct on a change proposal
ingestIngest a file into the knowledge base
sourcesList / show ingested knowledge sources

What works without optional extras​

A bare pip install -e . (no extras) gets you:

  • The MCP server, with cadquery / freecad / kicad adapters silently dropped (their Python deps aren't installed).
  • The CLI, talking to a gateway.
  • The dashboard (TypeScript build, no Python extras needed).

You'll want at least pip install -e ".[dev,knowledge,cadquery]" to get a useful loadout.

Compute providers​

tool_registry.container_runtime.ContainerRuntime is the abstraction tool execution runs against — DockerRuntime (local Docker) is the default. tool_registry.compute_providers.resolve_runtime() selects a runtime by provider id (env METAFORGE_COMPUTE_PROVIDER, default docker), so simulation-heavy work (CalculiX FEA, meshing) can burst onto ephemeral cloud compute instead of only local Docker.

Provider idBackendCredentialNotes
docker (default)Local Docker daemon—No change from prior behavior
runpodRunPod ServerlessRUNPOD_API_KEYContainerConfig.image is the RunPod endpoint id, not a Docker tag — a Serverless endpoint is pre-built around one worker image
vast_ai (aliases vastai, vast.ai)Vast.ai instance rentalVAST_API_KEYBest-effort success signal — Vast.ai's REST API doesn't expose a process exit code, so success is inferred from instance lifecycle state

Neither remote runtime supports ContainerConfig.volumes (no host filesystem to bind-mount into a remote provider) — run() raises RemoteVolumesUnsupportedError if volumes are set. Real blob-store-backed input/output is tracked separately. This first slice is also not yet wired into bootstrap.py's on-demand adapter spin-up — deliberately deferred are AWS Batch / GCP / Azure / CoreWeave / Lambda Cloud / Paperspace adapters, a GPU field on ContainerConfig.

Phase-1 limits​

What's deliberately not in scope this phase — see roadmap.md for when each unlocks.

LimitationWhyWhen
KiCad write (Phase 2) generates new projects only: kicad.generate_schematic, generate_pcb, edit_pcb and autoroute_pcb write a new project folder and never edit the person's own files in place. Placement beyond the hints given is a deterministic starting point, and nothing checks signal integrity, impedance control or EMCEditing a person's design needs a reviewed round-trip; SI and EMC need a field solver and a personNot scheduled
No multi-user collaboration — single-user local onlyNo auth + presence layer; not a Phase-1 goalPhase 3
In-memory Twin fallback when Neo4j is unreachable — versioning + Cypher are limitedGraceful degradation for laptops without DockerAlways; full mode requires Neo4j
6–7 specialist agents, not all 25 disciplines1:1 agent-to-discipline; covers electronics-heavy products (IoT, drones, embedded)Phase 2 → 19 agents; Phase 3 → 25
No production PDF ingest path — text fixtures only for nowServer-side parser is in flightTracked as open work
No streaming progress for long-running tools in the CLI yetStreaming notifications work over MCP; CLI wrapper is a follow-upTracked separately
Flow solver covers steady incompressible internal flow only: run_cfd runs it (openfoam.run_internal_flow) and steady conduction (calculix.run_thermal), and refuses convection, external flow, rotating parts and compressible flow rather than returning zeros. No layer meshing; the fluid-domain surfaces must be supplied as closed STL (nothing yet derives them from a committed solid); the turbulent path is not validated against measurementsOpenFOAM 11 in its own adapter container, built on CI runners (about 4 GB image), opt-in under the cfd compose profile; the host has a GPU that mainline OpenFOAM does not useFollow-up work is open

Where each capability is proven​

Every capability above is exercised by at least one Cycle-3 UAT scenario in tests/uat/scenarios/. The full master plan and verdict tracker is at docs/uat/kb-test-plan.md in the repo (kept out of the published site as QA-internal).

Reusable component model retrieval​

See Reusing components and model assets for local structured search, versioned representations, library.resolve_component_model, verified caching, and installed KiCad library discovery. These extend the existing catalogs and storage.

MetaForge documentationGateway schema