Skip to content

Factory · tools

The tools your agent gets.

Factory offers these tools over MCP at https://mcp.mfm.dev/mcp. They need a signed-in workspace and act only on your own projects. This list is generated from the server's registrations, so it matches what is deployed.

Project, policy and variants

Read where a project stands and which rules apply, and start named alternatives.

  • mfm_spec_projectreadsRead Project Policy. Read the authoritative project meta before authoring: head_rev, spec_format, active rule-set version, tool profile, agent guidance, typed constraints, and policy_rev.
  • mfm_factory_projectreadsRead Factory Project. Read a bounded project overview at one checkpoint: variants, design revisions and runs with their state and counts.
  • mfm_factory_create_spec_variantwritesCreate Spec Variant. Create a native variant in an existing Factory project.
  • mfm_spec_rule_setsreadsList Spec Rule Sets. List official and tenant-private custom rule-set packages.
  • mfm_spec_validate_rule_setreadsValidate Candidate Rule Set. Dry-run the current HEAD against a candidate rule-set package without changing the project's active policy.

Specification

Read the spec, check a change, then commit it against the revision you read.

  • mfm_spec_readreadsRead the Spec. Pull a projection of your tenant project's spec.
  • mfm_spec_validatereadsValidate Spec Mutation. Dry-run a fine-grained mutation batch.
  • mfm_spec_mutatewritesMutate the Spec. Commit a fine-grained mutation batch against `base_rev`.
  • mfm_spec_writewritesWrite the Spec. Commit a batch of full node files (upserts) and id deletions against `base_rev`.

Specification identity

Rename, merge, split or retire parts of the spec while keeping their history.

  • mfm_spec_renamewritesRename a Spec Node. Rename a node — THE way to change a node's id.
  • mfm_spec_mergewritesMerge Spec Nodes. Merge nodes into one successor — THE way to fold responsibilities together.
  • mfm_spec_splitwritesSplit a Spec Node. Split one node into two or more successors — THE way to divide a responsibility.
  • mfm_spec_retirewritesRetire a Spec Node. Retire a node whose responsibility is GONE, not relocated (if it moved, use merge/rename instead).

Data model, architecture and construction

One typed command tool for every design and construction change, with readable schemas.

  • mfm_factory_schemareadsRead Command Schemas. Without arguments, a compact index: the envelope fields and every command type with its summary and required fields.
  • mfm_factory_mutatewritesSubmit Factory Command. Submit one typed Factory command.
  • mfm_factory_readreadsRead Factory Record. Read an exact Factory record, its version and recorded provenance.
  • mfm_factory_graphreadsRead Design Graph. Read a bounded graph page at an exact design/run.

History and portability

Follow every recorded change, and move a spec in or out in an open format.

  • mfm_spec_historyreadsRead Spec History. List recent immutable revisions with source, change note, and touched node ids.
  • mfm_factory_historyreadsRead Ledger and Audit. Page immutable ledger or audit.
  • mfm_factory_changesreadsObserve Changes. Observe committed domain changes without claiming work or acknowledging for other observers.
  • mfm_spec_importwritesImport Spec. Import a lossless open-format dump.
  • mfm_spec_exportreadsExport Spec. Export the hosted spec as the lossless open-format envelope.

Design and construction changes all go through mfm_factory_mutate as typed commands. Their schemas are public at api.mfm.dev/v1/factory/schema. How and when to use each tool is in the mfm-factory skill. Atlas offers its own public tools, described on the Atlas page.