Data FlowData Flow
DataFlow
  • User Manual
  • Developer Manual
  • Examples
  • API Reference

MCP Servers

The MCP layer is the typed, deterministic interface to DataFlow: 21 tools across authoring, pipelines, execution, and observability. It makes the calls; agent reasoning, sessions, and mutation approvals live in the runtime, and permissions stay enforced by DataFlow.

At a glance

  • 21 typed tools - authoring, pipelines, execution, and observability.
  • Five are mutating - Apply, Run, Cancel, and the two schedule tools; all require an approval.
  • Secret-safe - specs are redacted on the way out, and YAML containing <redacted> placeholders is refused on apply.
  • No credential passthrough - list_connections never calls the credentials endpoint; DataFlow resolves managed-connection auth.

The 21 tools

Authoring

ToolPurpose
dataflow.get_authoring_schemaSafe authoring schema/guidance
dataflow.validate_pipelineStructural YAML validation
dataflow.analyze_metadataFrames + semantic warnings
dataflow.check_saved_pipelineValidate a saved spec privately
dataflow.explore_connectionConnection hierarchy exploration
dataflow.list_connectionsSafe connection metadata

Pipelines

ToolPurpose
dataflow.list_pipelinesFind saved pipelines
dataflow.get_pipeline_specSecret-safe spec projection
dataflow.list_pipeline_versionsKnown gap (always errors)
dataflow.apply_pipelineCreate/update a pipeline

Execution

ToolPurpose
dataflow.get_pipeline_scheduleSchedule config + state
dataflow.enable_pipeline_scheduleEnable a schedule
dataflow.disable_pipeline_schedulePause a schedule
dataflow.run_pipelineExecute a saved pipeline
dataflow.cancel_runKill a run

Observability

ToolPurpose
dataflow.list_pipeline_runsRun history with filters
dataflow.get_runOne run (from history)
dataflow.get_run_specHistorical run YAML
dataflow.get_run_logsBounded driver logs
dataflow.get_run_stagesStage status + failures
dataflow.get_stage_sample_dataPersisted sample rows

Five tools are mutating: apply_pipeline, run_pipeline, cancel_run, and the two schedule toggles. They are flagged requires_confirmation in the generated contract, and the runtime enforces the approvals - the MCP server itself never infers approval from conversation text. Apply and Run remain separate approvals.

Connecting to DataFlow

Set in mcp/.env:

VariableDefaultPurpose
DATAFLOW_BASE_URLhttp://localhost:8080Backend URL
DATAFLOW_TOKENemptyBearer token
DATAFLOW_COOKIEemptyRaw cookie header
DATAFLOW_TIMEOUT_MS30000Per-request timeout
DATAFLOW_INSECURE_TLSfalseSkip TLS verification
MCP_HOST / MCP_PORT / MCP_PATHloopback / 3100 / /mcpHTTP transport bind

Token or cookie - either works; both are sent if both are set. Production should use delegated user identity so DataFlow stays the authorization authority; local development can use a personal token.

Running the adapter

TerminalCode
cd mcp npm ci [[ -f .env ]] || cp .env.example .env npm run check # offline: validate + contract + unit tests npm run doctor # live: backend version + auth check npm run start # stdio (default) npm run start:http # HTTP at 127.0.0.1:3100/mcp
  • stdio is for clients that launch the process (how the runtime uses it). Set the working directory to mcp/ so its .env loads; the protocol uses stdout, the banner goes to stderr
  • HTTP serves an MCP handler at MCP_PATH with a GET /health check - handy for pointing other MCP clients at it

Secret safety

  • Specs are sanitized before they leave: credentials redacted, redacted_paths reported, and YAML containing <redacted> placeholders is refused on apply
  • list_connections never calls the credentials endpoint; DataFlow resolves managed-connection auth itself
  • All tool outputs and error details are scrubbed (bearer/basic values, signed URLs, private keys)

Versioning

MCP_VERSION (0.4.23) is pinned to the package version, and DATAFLOW_TESTED_VERSION records the DataFlow version the layer was reviewed against (1.0.0). npm run doctor warns on a backend version mismatch - advisory only: the live backend remains authoritative.

Live tests

TerminalCode
./scripts/test-all-live.sh # read-only suites ./scripts/test-all-live.sh --full # mutating lifecycle, disposable pipelines only

Four suites (authoring, pipelines, execution, observability) spawn the real server, connect a real MCP client, and verify tool registration against the contract. --full creates disposable pipelines (__mcp_e2e_<timestamp>) and runs enable/disable/run/cancel cycles - use it only against a test backend.

Known gaps

GapBehavior
Saved version historylist_pipeline_versions always returns DATAFLOW_CAPABILITY_NOT_AVAILABLE
Run detail endpointget_run derives results from run history (the direct endpoint is a stub)
Stage lineage routeget_stage_sample_data returns sample rows, not a lineage graph

Related pages

  • Agent Runtime - who calls these tools and how approvals work
  • Skills - the guidance that drives tool use
  • API Reference - the underlying DataFlow REST surface
Suggest edit
Last modified on November 26, 2026
On this page
  • At a glance
  • The 21 tools
    • Authoring
    • Pipelines
    • Execution
    • Observability
  • Connecting to DataFlow
  • Running the adapter
  • Secret safety
  • Versioning
  • Live tests
  • Known gaps
  • Related pages