Skippr is now Manifold.

Skip to content

mfd.yml reference ​

mfd.yml describes what Mfd moves: your sources, your destinations, and the pipelines that connect them. mfd discover, mfd sync, mfd query, and Python Session all read the same file. mfd connect and Python Config.save() write it for you, so you rarely edit it by hand, but this page explains every part of it.

Full example ​

This file syncs two Postgres tables into Snowflake. The three tabs produce the same mfd.yml.

python
from mfd import (
    Config,
    DataSinkSnowflake,
    DataSourcePostgres,
    EnvRef,
    LocalStorage,
    Pipeline,
)

cfg = Config().workspace("analytics").storage(LocalStorage())

app_db = cfg.data_source(
    "app_db",
    DataSourcePostgres(
        host="db.internal",
        user="mfd_reader",
        password=EnvRef("APP_DB_PASSWORD"),
        database="app",
        tables=["orders", "customers"],
    ),
)

warehouse = cfg.data_sink(
    "warehouse",
    DataSinkSnowflake(
        account="${SNOWFLAKE_ACCOUNT}",
        user="SKIPPR_LOADER",
        password=EnvRef("SNOWFLAKE_PASSWORD"),
        warehouse="COMPUTE_WH",
        database="ANALYTICS",
        schema="RAW",
        role="LOADER",
    ),
)

cfg.pipeline("orders", Pipeline(data_source=app_db, data_sink=warehouse))
cfg.save("mfd.yml")
bash
mfd --workspace analytics --storage-mode local connect data-source postgres \
  --pipeline orders \
  --name app_db \
  --host db.internal \
  --user mfd_reader \
  --password '${APP_DB_PASSWORD}' \
  --database app \
  --tables orders \
  --tables customers

mfd connect data-sink snowflake \
  --pipeline orders \
  --name warehouse \
  --account '${SNOWFLAKE_ACCOUNT}' \
  --user SKIPPR_LOADER \
  --password '${SNOWFLAKE_PASSWORD}' \
  --warehouse COMPUTE_WH \
  --database ANALYTICS \
  --schema RAW \
  --role LOADER
yaml
# Engine settings shared by every pipeline in this file.
mfd:
  workspace: analytics             # groups pipelines; part of each pipeline's identity
  mfd_el_storage_mode: local   # keep pipeline metadata on local disk, not S3

# Each pipeline reads one source and writes to optional destinations.
pipelines:
  orders:                          # pipeline name: mfd sync --pipeline orders
    data_source: data_sources.app_db
    data_sink: data_sinks.warehouse

data_sources:
  app_db:                          # logical name you choose
    Postgres:                      # connector type
      host: db.internal
      user: mfd_reader
      password: ${APP_DB_PASSWORD} # read from the environment at run time
      database: app
      tables: [orders, customers]

data_sinks:
  warehouse:
    Snowflake:
      account: ${SNOWFLAKE_ACCOUNT}
      user: SKIPPR_LOADER
      password: ${SNOWFLAKE_PASSWORD}
      warehouse: COMPUTE_WH
      database: ANALYTICS
      schema: RAW
      role: LOADER

Set the referenced variables before you run, then sync:

bash
export APP_DB_PASSWORD='your-postgres-password'
export SNOWFLAKE_ACCOUNT='xy12345.eu-west-1'
export SNOWFLAKE_PASSWORD='your-snowflake-password'

mfd discover --pipeline orders
mfd sync --pipeline orders --once

Where Mfd finds the file ​

Mfd uses the first of these that exists:

  1. The path you pass with --config (any command).
  2. The path in the SKIPPR_CONFIG_FILE environment variable.
  3. In the current directory: mfd.yml, mfd.yaml, mfd.yml, mfd.yaml, mfd.toml, mfd.json.

YAML, TOML, and JSON files share the same structure. If none is found, Mfd starts with an empty configuration, and commands that need a pipeline report that it is not defined.

Root sections ​

SectionRequiredWhat it holds
mfdNoEngine settings: workspace, where state lives, and Manifold Store. Keys are listed below.
pipelinesYes, to run anythingOne entry per pipeline. Each names its source and optional destinations. See Pipelines.
data_sourcesYesSource connectors, keyed by a name you choose. See Sources.
data_sinksNoDestination connectors that receive synced records. See Destinations.
deadletter_sinksNoDestinations for records that fail to transform or load. See Deadletters.
dbt, vector_sourcesNoRead by Manifold Data Engineer. Mfd accepts and ignores them.

Mfd rejects any other root key, and any unknown key inside these sections, with Invalid Manifold configuration in '<file>': unknown field .... That catches typos before a run starts.

mfd keys ​

KeyTypeDefaultDescription
workspacestringdefaultGroups related pipelines. The workspace and pipeline name together identify a pipeline's saved progress, so changing either one starts that pipeline from the beginning. Falls back to WORKSPACE_NAME.
tenantstringdefaultTop-level owner of the workspace. Leave unset for self-hosted runs. Falls back to TENANT.
mfd_el_storage_modes3 or locals3Where leftover whole-document schema is imported from on first start. Live schema lives in Manifold Store. Falls back to MFD_EL_STORAGE_MODE.
mfd_s3_bucketstringnoneOptional Manifold Store snapshots, leftover schema import when mfd_el_storage_mode is s3, and the default bucket for the WAL when WAL_STORAGE=s3. Falls back to SKIPPR_S3_BUCKET.
wal_s3_bucketstringmfd_s3_bucketDedicated bucket for the write-ahead log when WAL_STORAGE=s3. See WAL and buffering.
store.typefjall, leftover sledfjallLocal Manifold Store on DATA_DIR. Leftover sled maps to fjall. dynamodb is an error. See Manifold Store.
store.namestringnoneLeftover YAML. Ignored. Not a remote table.
perf_profileboolfalseTime COPY ingest and compact hot paths and emit copy_profile / copy_ingest PERF_EVENT lines. Falls back to SKIPPR_PERF_PROFILE. Also on with --log perf. Leave unset in production.
telemetrybooltrueAnonymous usage rollup to manifold.soundingworks.uk. Falls back to SKIPPR_TELEMETRY. CI still posts as origin=ci. See Telemetry.

The WAL backend is not a YAML key. Set it with the WAL_STORAGE environment variable or the --wal-storage flag, because it describes the machine Mfd runs on rather than the data you move.

In Python, Config().storage(LocalStorage()) writes mfd_el_storage_mode: local, and Config().storage(S3Storage("bucket")) writes mfd_el_storage_mode: s3 plus mfd_s3_bucket. Config().store(FjallStore()) writes store.type: fjall.

Connector entries ​

Every entry under data_sources, data_sinks, and deadletter_sinks has the same shape: a logical name, then exactly one connector type, then that connector's fields.

yaml
data_sinks:
  lake:                          # logical name
    Athena:                      # connector type
      s3_bucket: my-lake
      s3_prefix: bronze/events
      glue_database_name: my_database
      athena_workgroup_name: primary
      athena_results_s3_bucket: my-athena-results
  • Write the connector type with the casing shown on its page (Postgres, S3, Snowflake, AthenaIceberg).
  • Each connector page lists its fields, types, and defaults. Start at the connector catalog.
  • A leftover schema_sinks section or schema_sink on a data sink is a load error. Dest schema is the data plugin.

Logical names and references ​

Entry names such as app_db and warehouse are yours to choose. They are not reserved words. Use names that describe the system: mssql_prod, raw_snowflake, clickstream.

Pipelines and data sinks refer to entries as <section>.<name>:

FieldMust reference
pipelines.<name>.data_sourcedata_sources.<name>
pipelines.<name>.data_sinkdata_sinks.<name>
pipelines.<name>.deadletter_sinkdeadletter_sinks.<name>

An entry name cannot contain a dot. A reference to an entry that does not exist stops the run with ... references '<ref>', but '<name>' is not defined.

Pipeline names deadletters, wal, _mfd, mfd, and metadata are reserved and rejected.

Environment references ​

Write ${NAME} as a value and Mfd replaces it with the environment variable NAME when the pipeline runs. Use this for every secret, so mfd.yml is safe to commit.

yaml
data_sources:
  app_db:
    Postgres:
      password: ${APP_DB_PASSWORD}
bash
export APP_DB_PASSWORD='your-postgres-password'

The rules:

  • Whole values only. ${NAME} must be the entire value. s3://${BUCKET}/raw is not expanded and stays as literal text.
  • Text fields only. References fill fields whose type is text. Write numbers and booleans directly.
  • Names match [A-Za-z_][A-Za-z0-9_]*.
  • Unset or empty fails. A missing variable stops the run with mfd.yml references ${NAME} at <path>, but that environment variable is not set. An empty one fails the same way with is empty.
  • Secrets must be references. Secret fields (passwords, tokens, keys) reject plaintext. In Python they take EnvRef("NAME"); on the CLI, pass '${NAME}' in single quotes so your shell does not expand it.
  • When they resolve. The CLI resolves every reference in the file when it starts, so each referenced variable must be set even if the pipeline you run does not use it. A Python Session resolves only the references its own pipeline uses.

.env files ​

Before resolving references, Mfd loads two optional files from the directory that contains mfd.yml:

  1. .env sets variables that are unset or empty in your environment. Values you exported in the shell win.
  2. .env.local then overrides any variable it names, including ones from your shell.
bash
# .env.local — keep this out of version control
APP_DB_PASSWORD=your-postgres-password
SNOWFLAKE_PASSWORD=your-snowflake-password

Add .env.local to .gitignore and keep shared, non-secret defaults in .env.

Check the file ​

Run mfd doctor to validate references, connector entries, and secrets without moving data:

bash
mfd doctor

Each check prints [ok] or [FAIL]. Add --output json for machine-readable results.

Next steps ​