Agent Workflow
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Agent Workflow
一个本地优先、文件优先、跨 Agent 的工作流控制平面。
工作流不是提示词堆栈,而是一份长期保存的 runbook:每一步用哪个 Skill / 工具、做什么、处理哪些对象、产出什么、失败怎么办,都写在文件里。Agent 通过 MCP 读取并执行,进度实时显示在控制台。
核心设计
文件是事实源:工作流定义保存在
workflows/*.workflow.json。数据库是索引和运行账本:启动时自动从文件同步到 SQLite。
固定步骤 + 动态实例:步骤是操作手册;批处理对象、重试、限流恢复在运行时展开。
MCP 是 Agent 接口:Claude Code、Codex、Cursor、DSH 等都通过 MCP 接入。
不绑定某个 Agent:工具名只作为首选实现,替换 Agent 时由适配器映射。
本地优先:不需要 Docker 也能运行;Docker 是可选的一键运行方式。
Related MCP server: workflow-mcp
快速开始
npm install
npm run devMCP / API:http://127.0.0.1:7390/mcp
工作流文件:
workflows/*.workflow.json
启动时会自动读取 workflows/ 下的工作流文件并同步到数据库。修改文件后可以:
curl -X POST http://127.0.0.1:7390/api/workflows/reload或让 Agent 调用 awf_workflow_reload。
Docker
docker compose up --build控制台和 MCP:http://127.0.0.1:7390
工作流目录挂载:
./workflows运行数据挂载:
./.agent-workflow
如果 Docker Hub 不可达,可以换用镜像源构建:
NODE_IMAGE=docker.1ms.run/library/node:24-alpine docker compose up --build或者直接:
docker build --build-arg NODE_IMAGE=docker.1ms.run/library/node:24-alpine -t agent-workflow .Docker 不是开发前提。本地开发仍然使用 npm run dev。
目录
apps/
control-panel/ React 控制台
server/ HTTP / SSE / MCP 服务
packages/
core/ 工作流 schema、校验、摘要
storage/ SQLite 索引与运行账本
runtime/ 运行、步骤、尝试、批处理对象
mcp/ MCP 工具
workflows/
examples/ 可公开的示例工作流
*.workflow.json 你的本地工作流(默认不提交)
templates/ Claude Code / Codex / Cursor 接入模板并行运行
多个 Agent 可以同时启动多个工作流。每个 run 有独立的:
workspace
步骤租约
批处理对象
事件流
控制台泳道
锁只作用于同一个 run 的步骤或同一批对象,不会让整个系统排队。控制台会把所有活跃 run 并排显示。
工作流文件长什么样
每个步骤都保留精确执行说明,同时可以声明:
{
"id": "s3-enumerate",
"title": "枚举 X 关注列表",
"instructions": "打开 following 页面,读取 profile 基准数,滚动到没有新账号为止。",
"uses": [
{
"capability": "browser.automation",
"kind": "skill",
"preferred": "ego-browser",
"required": true
}
],
"execution": {
"mode": "batch",
"batch": {
"itemsFrom": "artifact:x-following-inventory.json",
"maxConcurrency": 2,
"completion": { "requiredRatio": 1, "allowDocumentedGaps": true }
}
},
"expectedOutputs": [
{ "name": "inventory", "kind": "json", "path": "x-following-inventory.json", "required": true }
],
"failure": {
"onError": "retry",
"rateLimit": {
"strategyRotation": ["slow_scroll", "single_window", "split_batch"],
"neverReduceCoverage": true
}
}
}完整示例见 workflows/examples/example-topic-brief.workflow.json。
MCP 工具
awf_workflow_list
awf_workflow_get
awf_workflow_validate
awf_workflow_reload
awf_run_start (title: 任务名称,用于区分并行运行)
awf_run_get
awf_run_events
awf_step_next
awf_step_claim
awf_step_complete
awf_step_fail
awf_step_skip
awf_work_item_update
awf_work_item_list
awf_step_attempts
awf_run_finish
awf_workspace_path接入 Agent
Claude Code
claude mcp add --transport http --scope local agent-workflow http://127.0.0.1:7390/mcp把 templates/claude-code/SKILL.md 放到目标项目的 .claude/skills/agent-workflow/SKILL.md。
Codex
把 templates/codex/AGENTS.md.snippet 合并到项目的 AGENTS.md,并添加:
[mcp_servers.agent-workflow]
url = "http://127.0.0.1:7390/mcp"Cursor
把 templates/cursor/mcp.json 合并到项目的 .cursor/mcp.json。
数据
工作流定义:
workflows/*.workflow.jsonSQLite:
.agent-workflow/awf.sqlite运行产物:
.agent-workflow/runs/<runId>/workspace/
.agent-workflow/、node_modules/ 和本地工作流文件不进入 Git。
开发
npm run typecheck
npm test
npm run buildLicense
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Workflow planning, recovery checkpoints, coordination, fixtures, and compatibility tools for agents.
Build, run, inspect, and continue AgentScript workflows on connected Super Chrome and Mac clients.
Hosted runtime for persistent agent teams, durable workflows, memory, schedules, and goals.
Sandboxes, storage, secrets, queues, timers, locks, inboxes and run ledger for AI bots. One MCP.
Related MCP Servers
AlicenseNot gradedqualityBmaintenanceEnables AI agents to run model-checked workflows durably, receiving one work order at a time with guarantees on admission.11 npmApache 2.0- AlicenseBqualityBmaintenanceEnables deterministic, resumable workflow automation through DAG step graphs, boolean gate branching, automatic parallel execution, and in-step agent loops with sandboxed file and command tools.151MIT
- AlicenseNot gradedqualityBmaintenanceEnables agents to run gated, API-only YAML stepfiles in order on the client's own model, making each step's output satisfy schemas, predicates, or HTTP verifiers before proceeding. It also handles API calls, credentials, retries, and hash-chained run records.15Apache 2.0
- AlicenseNot gradedqualityAmaintenanceEnables AI coding providers to run structured multi-agent workflows with shared documents, tracked tasks, handoffs, and health-gated completion.29 npmMIT