Skip to content

For AI agents

DagForge exposes a REST API and a Model Context Protocol (MCP) server so AI agents can build, run and inspect workflows. Everything is workspace-scoped and uses one bearer token.

Entry points

Surface URL Use it for
REST API /api/v2 on the DagForge API DAGs, runs, tasks, connections, variables, pools, assets, API Platform
Management MCP /mcp The same operations as MCP tools for an external AI client
API Platform MCP /mcp/{workspace}/{collection} Your published collection as tools
API Docs /docs/api OpenAPI reference and try-it
MCP Docs /docs/mcp/ Live tools, prompts and client setup

Authentication

Send a workspace-scoped bearer token:

Authorization: Bearer <token>

The same token works for REST and MCP. Get one with POST /api/v2/auth/token. Tokens are scoped to one workspace; do not reuse them across workspaces.

What an agent can do

  • DAGs — list, details, tags, versions, reparse and patch.
  • DAG runs — trigger, list, get, clear and wait until finished.
  • Tasks and task instances — list, get, logs, XComs, HITL, clear and patch.
  • Assets — list, events and materialize.
  • Backfills — create, list, pause, resume and cancel.
  • Connections, pools and variables — read and manage.
  • API Platform — collections, endpoints, clients and policies.
  • Forge — tree, files, git history and package apply.

Destructive deletes and configuration are deliberately excluded from the MCP tool surface.

Example

{
  "mcpServers": {
    "dagforge": {
      "url": "https://workflows-preview.dagforge.com/mcp",
      "headers": {
        "Authorization": "Bearer <your-token>"
      }
    }
  }
}

Machine-readable docs