Skip to main content
Glama
dagster-mono-mcp
by pjatx

dagster-mono-mcp

MCP-сервер с одним инструментом для Dagster. Один инструмент, пять действий, минимальные затраты токенов.

У Dagster есть официальный MCP-сервер, но мне не удалось легко заставить его работать. Это минималистичная альтернатива, которая охватывает действия, действительно необходимые при отладке конвейеров с помощью LLM: список запусков, просмотр деталей запуска, чтение логов и необработанный GraphQL для всего остального.

Поддерживает Cloudflare Access для экземпляров Dagster, находящихся за Zero Trust — простой и бесплатный способ защитить ваш экземпляр Dagster.

Установка

Claude Code

Для конкретного проекта (.mcp.json в корне вашего проекта):

{
  "mcpServers": {
    "dagster": {
      "command": "npx",
      "args": ["-y", "github:pjatx/dagster-mono-mcp"],
      "env": {
        "DAGSTER_GRAPHQL_URL": "https://dagster.example.com/graphql",
        "CF_ACCESS_CLIENT_ID": "your-client-id",
        "CF_ACCESS_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

Глобально (~/.claude.json — доступно во всех проектах):

{
  "mcpServers": {
    "dagster": {
      "command": "npx",
      "args": ["-y", "github:pjatx/dagster-mono-mcp"],
      "env": {
        "DAGSTER_GRAPHQL_URL": "https://dagster.example.com/graphql"
      }
    }
  }
}

Cursor

Добавьте в .cursor/mcp.json в корне вашего проекта:

{
  "mcpServers": {
    "dagster": {
      "command": "npx",
      "args": ["-y", "github:pjatx/dagster-mono-mcp"],
      "env": {
        "DAGSTER_GRAPHQL_URL": "https://dagster.example.com/graphql",
        "CF_ACCESS_CLIENT_ID": "your-client-id",
        "CF_ACCESS_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

Windsurf

Добавьте в ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "dagster": {
      "command": "npx",
      "args": ["-y", "github:pjatx/dagster-mono-mcp"],
      "env": {
        "DAGSTER_GRAPHQL_URL": "https://dagster.example.com/graphql",
        "CF_ACCESS_CLIENT_ID": "your-client-id",
        "CF_ACCESS_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

Related MCP server: MCP Access OAuth Server

Переменные окружения

Переменная

По умолчанию

Обязательно

DAGSTER_GRAPHQL_URL

http://localhost:3000/graphql

Нет

CF_ACCESS_CLIENT_ID

—

Нет (обязательно, если за CF Access)

CF_ACCESS_CLIENT_SECRET

—

Нет (обязательно, если за CF Access)

Использование

Единый инструмент dagster с диспетчеризацией действий:

Список запусков

{"action": "runs"}
{"action": "runs", "status": "FAILURE"}
{"action": "runs", "job": "my_job", "limit": 5}

Детали запуска

{"action": "run", "id": "<run-id>"}

Логи событий

{"action": "logs", "id": "<run-id>"}
{"action": "logs", "id": "<run-id>", "limit": 100}

Необработанный GraphQL

{"action": "graphql", "query": "{ version }"}
{"action": "graphql", "query": "query($id: ID!) { runOrError(runId: $id) { __typename } }", "variables": {"id": "abc123"}}

Помощь

{"action": "help"}

Возвращает полную документацию, включая доступные статусы, все параметры и примеры запросов.

Проектирование

Этот проект следует паттерну «моно-инструмента»: один MCP-инструмент с диспетчеризацией действий вместо множества мелких инструментов. Меньшее количество инструментов означает меньшие затраты токенов для LLM и более простой выбор инструмента — модели не нужно выбирать между дюжиной инструментов с похожими названиями. Вдохновлено публикацией Cloudflare Code Mode о переосмыслении того, как LLM взаимодействуют с MCP-серверами.

Разработка

npm install
npm run build    # esbuild bundle -> dist/index.js
npm start        # run the MCP server (stdio transport)

Лицензия

MIT

Available Tools

1 tool
dagsterC

Dagster runs & debugging. Actions: runs, run, logs, graphql, help

{"action": "runs"} -> recent runs {"action": "runs", "status": "FAILURE"} -> failed runs {"action": "run", "id": "abc123"} -> run details {"action": "logs", "id": "abc123"} -> run logs {"action": "graphql", "query": "{ version }"} -> raw GraphQL {"action": "help"} -> full documentation

Inputs: action (required), id, job, status, +3 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 1 tool

    Disambiguation5/5

    The single tool 'dagster' has clearly distinct actions (runs, run, logs, graphql, help) with no overlap in purpose. Each action targets a specific operation within the Dagster domain, making misselection impossible.

    Naming Consistency5/5

    The tool naming is perfectly consistent as there is only one tool, 'dagster', and its actions follow a clear, uniform pattern (e.g., 'runs', 'run', 'logs') without any mixing of conventions or styles.

    Tool Count2/5

    With only one tool, the server feels thin for a Dagster monitoring/debugging domain, as it bundles multiple distinct operations (e.g., querying runs, fetching logs, GraphQL) into a single tool. This may limit clarity and usability compared to a more granular tool set.

    Completeness3/5

    The tool covers core operations like retrieving runs, logs, and GraphQL queries, but lacks obvious lifecycle actions such as triggering new runs, pausing/resuming, or managing assets. This creates notable gaps for a full Dagster debugging workflow.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      C
      maintenance
      A Cloudflare Workers-based MCP server that enables secure remote connections using built-in OAuth authentication via Cloudflare Access. It provides identity-based access control for MCP tools and supports persistent state management through Durable Objects and SSE.
      -
    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      This is an MCP server deployed on Cloudflare Workers with OAuth authentication, enabling remote MCP clients to connect and use tools.
      -