flow-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@flow-mcppause the current workflow"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
flow-mcp
极简、稳定的业务控制原语 MCP Server。
flow-mcp 只做一件事:把 Agent/Skill 调用的 flow.* 业务控制工具,写成 .runs/state.json.businessControl 中可验证、可审计、可调度消费的结构化事实。
1. Install
npm install -g flow-mcp本地开发:
npm install
npm run buildNode.js 要求 >=20。
Related MCP server: task-orchestrator
2. Generate Claude Code Config
flow-mcp config claude --json输出可作为跨用户共享模板:
{
"mcpServers": {
"flow-mcp": {
"command": "flow-mcp",
"args": [],
"env": {
"FLOW_MCP_REQ_PATH": "${FLOW_MCP_REQ_PATH}"
}
}
}
}FLOW_MCP_REQ_PATH 应由 Agent Runtime 按会话注入;不同会话可以注入不同 request path。
前提:目标环境已通过 npm install -g flow-mcp 安装,并且 flow-mcp 在 Runtime PATH 中可用。Server 启动时仍会校验 Node.js >=20。
3. Verify
flow-mcp doctor --req-path /absolute/request/path --jsondoctor 会检查实际 Node 路径、Node 版本、.runs、control-context.json、state.json、写权限和锁。
开发门禁:
npm run typecheck
npm run build
npm test
npm run test:integration
npm pack --dry-runContract
Server 名称:
flow-mcpTools:
flow.finish、flow.pause、flow.resume、flow.rewind、flow.abortContext:
FLOW_MCP_REQ_PATH/.runs/control-context.jsonState:
FLOW_MCP_REQ_PATH/.runs/state.json.businessControlLogs:运行日志只写 stderr;stdout 只用于 MCP 协议或 CLI 输出
最小 control-context.json:
{
"runId": "run-123",
"stage": "design",
"actionIndex": 1
}更多 Claude Code、Linux、Windows 和故障定位说明见 docs/claude-code.md。
Skill 中如何调用 5 个业务控制原语见 docs/skill-usage.md。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/liyongshun/flow-control-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server