MCP tools
Short answer: call tools/list on https://mcp.manifold.soundingworks.uk/mcp for the live JSON Schema. Each tool below is when to call it, what to pass, and what not to invent. The tools describe mfd. They do not run it.
Add it to your agentOverview →
Tools
mfd_install
When to call: mfd is not on PATH yet, or the agent is about to write a pipeline.
Arguments: method (homebrew | install.sh | pip), platform (macos-arm64 | linux-x86_64).
The pip package does not add the mfd command. Installing Mfd accepts the EULA. Connectors download later, on first use, into ~/.mfd/runtime_plugins (or SKIPPR_RUNTIME_PLUGIN_DIR).
Docs: Install.
mfd_config
When to call: the agent is about to edit mfd.yml by hand, or needs merge rules for mfd connect.
connect writes YAML. Nested flags replace the whole block. You cannot change an entry's connector kind. Secret values are ${NAME}.
mfd_deploy
When to call: cron, a container, or a long-running sync.
mfd sync --once for cron. Without --once, sync loops every sync_frequency_seconds (default 900). You need a durable DATA_DIR. WAL_STORAGE=s3 still needs that directory for Manifold Store. One sync process per pipeline.
Docs: WAL and buffering, Manifold Store.
mfd_connectors
When to call: look up a source or destination before mfd_connect. Do not invent a kind.
Arguments: role (data-source | data-sink), optional kind (hyphenated connect name: postgres, mfd-lake, file, mssql, linked-in-ads). Omit kind to list the catalog.
File is in the catalog: local JSON/CSV/Parquet source, parquet/jsonl sink.
Docs: Connector catalog, File source, File sink.
mfd_connect
When to call: add one pipeline entry. It returns mfd connect argv. Run that argv on the machine that owns mfd.yml. Do not paste YAML or a Python snippet.
Required: role, kind, pipeline, name. Optional: workspace, storage_mode (local | s3), fields (connector flags, which become --flag on the CLI).
kind is the hyphenated connect name (postgres, mfd-lake, file). name must not contain .. Secret fields must be ${NAME}. Plaintext is refused.
File source fields: path, format (json|csv|xml|parquet|avro|arrow_ipc). File sink fields: output_dir, format (parquet|jsonl). Dest schema is the data plugin. Athena Hive takes glue_database_name on that destination.
Docs: connect.
mfd_run
When to call: the next mfd command after connect.
Arguments: command (discover | schema | metadata | sync | query | df | serve | doctor | sql-help | benchmark).
discover never writes the destination. Exit 0 / 1 / 2. --output json is one event per line for discover and sync.
Docs: CLI overview.
mfd_operate
When to call: doctor, logs, ALTER, or a second process that must not take the writer.
Logs: logs/mfd.<date>.log. One sync process per pipeline. A second process may mfd query. Do not run two syncs against the same DATA_DIR. Glue/Hive and ClickHouse fail closed for in-stream migrations.
mfd_transforms
When to call: partitions, flatten, ops (filter / project / derive / rename / cast before WAL commit), or keyed aggregates.
Re-run discover after changing namespace_fields.
Docs: Transforms, materialised views.
mfd_query
When to call: SQL over what Mfd has ingested.
Tables are <pipeline>.<namespace>. Iceberg destinations (ManifoldLake, Athena Iceberg, DuckDB): committed Iceberg union live WAL. Other destinations: WAL only; warehouse history is in the warehouse. STREAM follows the tail. mfd serve is Iceberg REST and Flight SQL.
Docs: query, Stream SQL.
mfd_migrate
When to call: author or apply migrations/*.sql next to mfd.yml.
Same id and checksum is a no-op. A changed file with the same id fails closed. Python authors the SQL; the engine never loads .py. --down only for Rename and Promote.
Docs: migrate.
mfd_wal
When to call: crash recovery, DATA_DIR, or why a retry did not rewind the source.
Mfd commits the batch, then lands it. Source position advances after that commit. WAL_STORAGE is disk or s3 (environment, not a mfd.yml field). Do not set mfd.store.type to dynamodb. ManifoldLake may still use a DynamoDB Iceberg catalog table.
Docs: How Mfd works, WAL.
mfd_correctness
When to call: pick a destination, a CDC mode, or a landing policy.
Exactly-once class: ManifoldLake, Athena Iceberg, DuckDB, Snowflake, BigQuery, Postgres, Redshift, Databricks, Synapse, MotherDuck. Overwrite-on-retry: Athena, object stores, files. At-least-once: ClickHouse, AMQP. Stdout is not retried.
CDC is the current table, including deletes. snapshot never emits deletes. Landing policies: append, merge_by_key, replace_partition, replace_table. Mfd refuses to start if the destination cannot honour the source.
Docs: Exactly-once, CDC guarantees, How sources land, Schema.
mfd_debug
When to call: non-zero sync, missing table, credentials, deadletters, or a connector that did not download.
Do not rewind the source. There is no recover command. Re-run with the same DATA_DIR. Postgres: Mfd does not use TLS.
Docs: Troubleshooting, Deadletters.
mfd_agent_setup
When to call: the host is not wired yet, or the agent pasted an npx command.
Arguments: host (cursor, claude-desktop, claude-code, vscode, copilot, windsurf, continue, cline, goose, zed, chatgpt, gemini-cli, amp, opencode, jetbrains, amazon-q, copilot-studio). Omit it to list them.
Docs: MCP for code agents.
mfd_docs
When to call: you need the manifold.soundingworks.uk page for a topic instead of inventing behaviour.
Arguments: topic (a short string such as install, connect, wal).
Resources
Call resources/read with one of these URIs when you want a JSON briefing without picking a tool:
mfd://install, mfd://cli, mfd://connectors, mfd://wal, mfd://exactly-once, mfd://cdc, mfd://landing, mfd://schema, mfd://query, mfd://migrate, mfd://transforms, mfd://operate, mfd://debug, mfd://agents, mfd://docs-map.
Prompts
| Prompt | Use |
|---|---|
mfd_first_pipeline | Public bike-hire sample, discover, sync --once, count rows |
mfd_postgres_to_iceberg | Postgres into ManifoldLake, no TLS |
mfd_debug_failed_sync | Non-zero sync, same DATA_DIR, do not rewind the source |
mfd_author_migration | migrations/*.sql, in-stream ALTER |
mfd_choose_destination_semantics | Write policy vs destination guarantee |
