Conductor

io.github.jarmstrong158由 GitHub 帳號 jarmstrong158 發布v4.0.0更新於 Oct 24, 2026

Local task scheduler and worker manager with MCP integration for Claude Desktop.

概覽

AI 產生的概覽

Conductor 讓助手透過 21 個 MCP 工具,在 Windows 本機建立與管理排程腳本、任務鏈、群組與郵件報告。

可以做什麼
  • 建立、修改、暫停、立即執行與刪除排程 worker,執行 Python、批次或 shell 腳本
  • 建立含平行階段與失敗即停的多步驟任務鏈,並管理 worker 群組與已儲存的設定檔
  • 以固定時間、間隔或 cron 運算式設定排程,並用內建範本產生 worker
  • 查看執行歷史、狀態與日誌,並依錯誤輸出分析失敗原因
  • 設定 Gmail 郵件設定,寄送依 worker 或任務鏈的通知與報告附件
  • 以 JSON 匯出與匯入全部 worker、任務鏈與群組,並查看開機自動啟動與更新狀態
適用情境
適合希望由助手在 Windows 桌面上建立並看管週期性本機自動化的情境,例如夜間腳本、備份與清理流程、資料夾監看、可用性檢查或郵件報告,以及排查某次排程執行失敗的原因。
執行需求
以本機程序執行(Windows 安裝程式,或從原始碼執行,需 Python 3.10+);.py worker 需要系統中有 Python 3,可用 CONDUCTOR_PYTHON 指定解譯器。寄送郵件需要 GMAIL_USER 與 GMAIL_APP_PASSWORD(需先開啟兩步驟驗證的 Gmail 應用程式密碼)。選用的 AI 錯誤分析需要 Anthropic API 金鑰。本機儀表板執行於 127.0.0.1:5000。
安裝前請注意
助手可以建立、修改、暫停與刪除 worker 與任務鏈,並執行任意本機腳本,包括刪除檔案或開啟網址的腳本。Gmail 憑證保存在本機 .env 檔案中並用於寄信。每個 worker 的環境變數會被注入子程序。選用的開機自動啟動不需管理員權限即可寫入。選用的錯誤分析會把錯誤日誌傳送給 Anthropic,並使用 API 金鑰。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Conductor,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[Tests] [License: MIT]

Conductor

Claude's hands for local automation — with a web dashboard for the humans who watch it.

Conductor gives Claude direct, persistent control of a local task runner. Tell Claude what you want automated; it creates the scheduled workers, builds multi-step pipelines, wires up email reports, fires test runs, and reads back the logs when something fails — all through conversation. A web dashboard at 127.0.0.1:5000 runs alongside it for humans who want to peek at status, click pause, or hand-edit a worker.

Originally built to automate warehouse reporting workflows (the daily ShipExec metrics pull) and now general-purpose: any Python / batch / shell script, any schedule, any chain.

The MCP server lives in this repo (server.py) — the thin layer that exposes Conductor's REST API as Claude tools. It's bundled and auto-registered on install, so most users won't need to touch it directly. The separate conductor-mcp repo is deprecated — it holds an older copy without the auto-launch race protection.

[Conductor Dashboard]

Claude Integration

Conductor registers itself as an MCP server in Claude Desktop on first launch. After restarting Claude Desktop once, Claude has 21 tools for full control:

Example conversation:

You: Run my metrics script every night at 8:30 PM and email me the report

Claude: I'll set that up using the Run + Email template. (creates the worker, configures the schedule, wires up Gmail, fires it to test) Done — worker "Daily Metrics Report" is live. Check your email for the test run.

You: That uptime check keeps failing. What's going on?

Claude: (pulls the last 10 runs, reads the error logs) The site returned a 503 three times in the last hour. The SSL certificate expired yesterday. Here's the full error from the last run...

You: Chain my backup script and cleanup script together. Run backup first, then cleanup after it finishes. Every day at 2 AM.

Claude: *(creates a chain with stage 0 = backup, stage 1 = cleanup, cron schedule "0 2 * * ") Chain "Nightly Maintenance" created with 2 steps. Backup runs first, cleanup runs after it succeeds.

How it works:

  1. Install Conductor (Windows installer or from source)
  2. Conductor writes its MCP entry to Claude Desktop's config on first launch
  3. Restart Claude Desktop once
  4. Claude now controls Conductor through natural language — create workers, build chains, fire tasks, check logs, send emails

Features

  • Claude-Controlled — 21 MCP tools let Claude create workers, chains, groups, templates, and more. Non-technical users can automate anything through conversation.
  • Flexible Scheduling — Fixed times (09:00, 14:30), intervals (2h 30m), or cron expressions (0 9 * * 1-5 with plain-English preview).
  • Task Support — Python (.py), batch (.bat, .cmd), and shell (.sh) scripts. Selenium and GUI scripts run in a visible terminal window via new_console.
  • Built-in Email — configure Gmail once, then any template or worker can send emails. Run + Email template for automated reports. Folder Watcher emails files on arrival. Uptime Check sends DOWN alerts. Worker notifications on success/failure.
  • Task Chains — multi-step pipelines with parallel execution. Same stage number = run in parallel. Stop-on-failure toggle.
  • Worker Groups — collapsible named groups for organization. Bulk pause/delete per group.
  • Run History — per-worker/chain history with status, duration, and error details. Colored dots show last run status at a glance.
  • Built-in Templates — Folder Backup, File Cleanup, Folder Watcher, Uptime Check, Open URL, Run + Email. Generated scripts are stdlib-only and self-contained.
  • Per-worker Environment Variables — inject KEY=VALUE pairs into subprocess environments.
  • Worker Timeout — kill and log workers that run over a set number of minutes.
  • Email Notifications — per-worker/chain email alerts: Always, On Failure, or On Success.
  • Import / Export — portable JSON snapshot of all workers, chains, and groups.
  • Saved Profiles — save and load named worker configurations.
  • Auto-start on Login — one-click Registry Run key install. No admin required.
  • Auto-update Check — modal dialog when a newer release is available.
  • System Tray Icon — right-click for Open Dashboard or Stop.
  • AI Error Analysis — send error logs to Claude for diagnosis directly in the dashboard.
  • Persistent State — SQLite database. Workers and chains restore on restart.

Add Workers Form

[Add Workers form]

Built-in Templates

[Template picker modal]

Task Chains

[New Task Chain modal]

Debug Log

[Debug log panel]

Installation (Windows)

Download and run Conductor_Setup.exe from the latest release.

  • Requires Python 3 on the machine (see note below) — Conductor runs your .py workers with it
  • Installs to %AppData%\Conductor — no admin/UAC required
  • Adds Start Menu shortcut and optional desktop shortcut
  • Optional auto-start at login
  • Uninstaller included

Python is required for Python workers. Conductor itself ships as a self-contained executable, but it runs your .py scripts with a real interpreter found on your system (the py launcher, PATH, or the Windows registry). If none is found, workers fail loudly with instructions — they are never reported as successful. Set CONDUCTOR_PYTHON to a full path to pin a specific interpreter. .bat / .cmd / .sh workers do not need Python.

Setup from Source

Requirements

  • Python 3.10+
bash
git clone https://github.com/jarmstrong158/conductor.gitcd conductorpip install -r requirements.txtpython launch.py

The dashboard opens at http://127.0.0.1:5000. Press Ctrl+C to stop.

Building the Installer

.\build.bat

Forces a full rebuild:

.\build.bat --rebuild

Output: Output\Conductor_Setup.exe. Requires Inno Setup.

Task File Format

Python (.py)

Scripts run as subprocesses:

python
if __name__ == "__main__":    print("Task executed!")

Batch / Shell (.bat, .sh, .cmd)

Executed as subprocesses. The worker's output directory (if set) is used as the working directory.

Schedule Formats

TypeFormatExample
FixedHH:MM or HH:MM,HH:MM09:00, 14:30, 17:00
IntervalXh Ym2h 30m, 1h, 45m
Cron5-field crontab0 9 * * 1-5 (weekdays at 9am)

Task Chains

Chains run multiple scripts in sequence. Each step has a stage number — steps with the same stage run in parallel, stages execute in order. Stop on failure halts the chain when any step fails.

Stage 0: backup.py  ──┐Stage 0: cleanup.py ──┤  (both run at once)                      ↓Stage 1: report.py    (runs after both finish)

Templates

TemplateWhat it doesEmail capability
Folder BackupCopy folder, keep N backupsSummary email
File CleanupDelete old files by patternSummary email
Folder WatcherMove/email files by extensionPer-rule: move, email, or both
Uptime CheckMonitor URL, log statusAlert email on DOWN
Open URLOpen URL in browser—
Run + EmailRun script, email output fileSends output as attachment

All generated scripts use Python stdlib only.

Architecture

conductor/├── launch.py          # Entry point — Flask, browser, tray, MCP registration├── app.py             # Flask backend + APScheduler + SQLite├── server.py          # MCP server for Claude Desktop├── CLAUDE.md          # Context file for Claude Code / Desktop├── static/│   └── index.html     # Frontend — HTML + CSS + JS (no frameworks)├── tasks/│   └── example_task.py├── templates/│   └── generated/     # Auto-generated template scripts├── build.bat          # One-click installer build├── build_icon.py      # Generates conductor.ico├── conductor.spec     # PyInstaller spec├── installer.iss      # Inno Setup script└── conductor.db       # SQLite database (auto-created)
LayerTechnology
BackendPython 3, Flask
SchedulingAPScheduler (BackgroundScheduler + MemoryJobStore)
PersistenceSQLite (WAL mode)
FrontendVanilla JS, single HTML file
AI IntegrationClaude via MCP (21 tools) + Anthropic API (error analysis)

AI Error Analysis

The debug log includes an Analyze Errors button. When ERROR entries are present, click it to send them to Claude for diagnosis. Requires an Anthropic API key in .env:

ANTHROPIC_API_KEY=sk-ant-...

Example — before / after:

Raw error in the debug log:

[ERROR] worker "Daily Metrics Report" exit code 1Traceback (most recent call last):  File "C:\scripts\metrics.py", line 142, in <module>    driver.find_element(By.ID, "report-table").click()  File ".../selenium/.../webdriver.py", line 830, in find_element    raise NoSuchElementException(message)selenium.common.exceptions.NoSuchElementException: Message: no such element:Unable to locate element: {"method":"css selector","selector":"[id="report-table"]"}

Claude's diagnosis (one click later):

The script is failing on a find_element call before the page has finished loading — Selenium is racing the DOM. The element #report-table is rendered after an XHR completes. Two fixes, in order of preference:

  1. Wrap the lookup in a WebDriverWait(driver, 10).until(EC.presence_of_element_located((By.ID, "report-table"))) so it polls until the element exists.
  2. If you don't want to import the wait helpers, a time.sleep(2) before the click will work but is brittle. The traceback shows this happened on the first run after a ShipExec UI change yesterday — they may have also renamed the element. Verify the ID is still report-table in DevTools before adding the wait.

Email Setup

Click 📧 Email in the header to configure Gmail credentials. Requires a Gmail App Password (2-Step Verification must be enabled first). Credentials are stored locally in .env and never transmitted except to Gmail's SMTP server.

Once configured, all templates and worker notifications can send email.

API

MethodPathPurpose
GET/api/workersList all workers
POST/api/workersRegister worker(s)
PUT/api/workers/<id>Update worker
POST/api/workers/<id>/pauseToggle pause/resume
POST/api/workers/<id>/run-nowFire immediately
GET/api/workers/<id>/historyRun history
POST/api/workers/<id>/assign-groupAssign to group
DELETE/api/workers/<id>Delete worker
POST/api/workers/pause-allPause all workers
DELETE/api/workers/allDelete all workers
GET/api/chainsList all chains
POST/api/chainsCreate chain
PUT/api/chains/<id>Update chain
POST/api/chains/<id>/pauseToggle pause/resume
POST/api/chains/<id>/run-nowFire immediately
GET/api/chains/<id>/historyRun history
DELETE/api/chains/<id>Delete chain
GET/api/groupsList groups
POST/api/groupsCreate group
DELETE/api/groups/<id>Delete group
GET/api/profilesList profiles
POST/api/profilesSave profile
GET/api/profiles/<id>Load profile
DELETE/api/profiles/<id>Delete profile
POST/api/templatesCreate from template
GET/api/exportExport all as JSON
POST/api/importImport from JSON
GET/POST/api/email-settingsEmail configuration
GET/api/service/statusAuto-start status
POST/api/service/installInstall auto-start
POST/api/service/uninstallRemove auto-start
GET/api/update-checkCheck for updates
GET/api/logs?since=NLog entries
GET/api/statusScheduler + database status
GET/api/browse?mode=file|dirNative file picker

License

MIT

來源:README.md,提交 7d07800

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v4.0.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分