workflow-mcp
workflow-mcp
Verwandle die KI-Workflow-Vorlagen aus dem workflow-templates-Repository in MCP-aufrufbare Werkzeuge – jeder MCP-Client (WorkBuddy, Claude Desktop, Cursor usw.) kann Vorlagen direkt auflisten, Verträge einsehen, Vorlagen ausführen und strukturierte Ergebnisse erhalten.
Architekt digitaler Pipelines · Vierter Baustein: Alle Pipelines „Plug-and-Play" machen
Was es kann
Werkzeug | Beschreibung |
| Listet alle verfügbaren Vorlagen im Repository auf (Version / Beschreibung / ausführbar) |
| Zeigt die Eingabe-/Ausgabe-JSON-Schemas und die Verarbeitungspipeline (DAG) einer Vorlage an |
| Führt die Vorlage synchron aus: JSON rein, strukturierte Daten + Bericht raus |
| Asynchrone Ausführung (empfohlen): gibt sofort task_id zurück, Ausführung im Hintergrund |
| Fragt den Status asynchroner Aufgaben ab (running / done / error) |
Beispielsitzung:
1. list_templates → 发现 financial-report-analysis
2. get_template_info(模板id) → 拿到输入契约(需要 company_name / report_path / report_type)
3. run_template_async(模板id, json) → {task_id, status: running}
4. get_task_status(task_id) → 轮询至 done,返回指标 + 风险信号 + 报告Warum die asynchrone Version: Clients wie WorkBuddy / Claude Desktop haben Zeitüberschreitungslimits für einzelne Tool-Aufrufe, während die tatsächliche Ausführung einer Vorlage (mehrere LLM-Aufrufe) normalerweise 1–2 Minuten dauert – ein synchroner Aufruf würde das Limit überschreiten. Die asynchrone Version umgeht dieses Limit.
Related MCP server: MCP Boilerplate
Architektur
MCP 客户端(WorkBuddy / Claude Desktop / ...)
│ stdio / streamable-http
┌───────▼───────────────┐
│ server.py (FastMCP) │ list / get / run 三个工具
└───────┬───────────────┘
┌───────▼───────────────┐
│ templates_registry.py │ 扫描 workflow-templates,读取契约元数据
│ runner.py │ 子进程执行模板 run.py(--auto-review 自动化复核)
└───────┬───────────────┘
│
┌───────▼───────────────┐
│ workflow-templates │ 模板仓库:契约 + 提示词 + 脚本(数据权威)
└───────────────────────┘Wichtige Designentscheidungen:
Vorlagen-Repository bleibt die einzige Quelle der Wahrheit: Neue/geänderte Vorlagen erfordern nur Änderungen in workflow-templates, dieser Dienst bleibt unverändert
Automatisierte Überprüfung:
run.pyerhält einen neuen Parameter--auto-review; bei automatischer MCP-Ausführung wird die manuelle Interaktion übersprungen, die Ausgabe enthält einereview_note-Markierung, und der Aufrufer verifiziert die SchlüsselzahlenAusführungsisolierung: Jeder Lauf schreibt eine temporäre Eingabedatei (wird nach Gebrauch gelöscht), die Ausgabe wird im
output/-Verzeichnis der Vorlage gespeichert
Schnellstart
pip install -e .
python -m workflow_mcp.server # stdio(默认)
python -m workflow_mcp.server --transport streamable-httpVoraussetzungen: Das workflow-templates-Repository befindet sich lokal unter E:\NEMB\workflow-templates (überschreibbar über die Umgebungsvariable WORKFLOW_TEMPLATES_HOME); die in der Vorlage enthaltene .env (z. B. OpenRouter-Schlüssel) wird von run.py selbst geladen.
End-to-End-Test (führt tatsächlich eine Finanzanalyse-Vorlage aus):
python examples/client_test.py # stdio 协议方式
python examples/inproc_test.py # 进程内客户端方式(CI / 沙箱环境更稳)Einbindung in WorkBuddy
Füge examples/workbuddy_mcp.json in die mcpServers-Sektion von C:\Users\33033\.workbuddy\mcp.json ein und klicke in der Connector-Verwaltungsseite bei workflow-mcp auf „Vertrauen", um es zu aktivieren. Danach kannst du im Chat direkt sagen: „Führe mir die Finanzanalyse-Vorlage aus."
Beziehung zu den drei Komponenten
Repository | Rolle | Position im MCP-Ökosystem |
workflow-templates | Vorlagen-Repository (Inhaltsautorität) | Wird von workflow-mcp als Werkzeug verpackt |
workflow-mcp | Vorlagen-Ausführer (dieser Dienst) | Gehirn-Arbeits-Pipeline-MCP |
digital-twin-mcp | Gerätedaten-MCP | Gerätedaten-Pipeline-MCP |
factory-twin-viz | Visualisierungs-Frontend | Konsumiert beliebige MCP-Daten |
Roadmap
v0.1: list / get / run drei Werkzeuge + --auto-review (aktuell)
v0.2: Vorlagenausgaben in Datenbank speichern (Ergebnisse nachvollziehbar), parallele Ausführungswarteschlange, n8n-Vorlagenimport
v0.3: Kombination mit digital-twin-mcp zu einer „Gerätegesundheitsbericht"-Vorlage (Datenpipeline × Gehirnpipeline)
Lizenz
MIT License
Available Tools
5 toolsget_task_statusGet Task StatusA
查询异步任务状态:running / done / error;done 时返回完整结果(同 run_template 返回结构)。
Inputs: task_id (required). Returns: object
get_template_infoGet Template InfoC
查看模板的契约:输入/输出 JSON Schema、处理流水线(DAG)概要。
Inputs: template_id (required). Returns: object
list_templatesList TemplatesA
列出 workflow-templates 仓库中所有可用的工作流模板(含版本、描述、是否可执行)。
Inputs: no named parameters. Returns: result
run_templateRun TemplateA
执行指定工作流模板。input_json 为符合该模板输入契约的 JSON 字符串(如财报分析模板需 company_name / report_path / report_type)。
返回:success、data(结构化输出,含 human_review_required 标记)、report(报告文本)、artifacts(落盘路径)。 注意:自动化执行会标记 review_note,请调用方核验关键数字。 长耗时模板(如含多次 LLM 调用)在带请求超时限制的客户端下请改用 run_template_async。
Inputs: input_json (required), template_id (required). Returns: object
run_template_asyncRun Template AsyncA
异步执行指定模板:立即返回 task_id,执行在后台进行,用 get_task_status 轮询结果。
适用场景:WorkBuddy / Claude Desktop 等客户端对单次工具调用有请求超时限制, 而模板真实执行(多次 LLM 调用)可能超过该限制。
Inputs: input_json (required), template_id (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool targets a distinct operation: list_templates (enumerate), get_template_info (inspect contract), run_template (sync execute), run_template_async (async execute), get_task_status (poll). The sync/async pair is clearly differentiated by explicit timeout guidance in the descriptions, so no realistic misselection.
All names follow a clean verb_noun snake_case pattern (list/get/run/get). Minor inconsistency: list_templates uses a plural noun while get_template_info uses singular, and 'info'/'status' suffixes differ slightly, but this is readable and predictable.
Five tools is well-scoped for a template-consumer/executor server, with each tool earning its place (discovery, inspection, sync exec, async exec, polling). No redundant or filler tools.
Covers the full discover-inspect-execute-monitor lifecycle, including an async path for long-running templates. Minor gap: no cancel/abort operation for a running async task, which could strand agents waiting on a hung task.
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
The Mercado Pago MCP Server implements the Model Context Protocol to provide AI agents and LLMs with access to Mercado Pago's APIs and tools within compatible development environments. It acts as an intermediary that translates Mercado Pago resources into executable functions (tools) that AI applications can invoke to perform actions and automate flows. The server simplifies integration, enables using documentation to implement or improve code, and optimizes operations through natural language interactions without manual implementations.
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceAn MCP server implementation that standardizes how AI applications access tools and context, providing a central hub that manages tool discovery, execution, and context management with a simplified configuration system.13-
- AlicenseNot gradedqualityDmaintenanceA server that implements the Model Context Protocol, providing a standardized way to connect AI models to different data sources and tools.12MIT
- AlicenseNot gradedqualityDmaintenanceModel Context Protocol server that standardizes tool discovery, execution, and context management for AI applications.MIT
- FlicenseNot gradedqualityCmaintenanceA Model Context Protocol server that advertises tools with JSON schemas and executes tool calls safely, enabling AI agents to perform actions on real systems.-