Flowlite MCP Bridge
A Model Context Protocol (MCP) bridge that exposes FlowLite workflow automation as structured AI tools β with compliance logging and audit trails.
Ask AI about Flowlite MCP Bridge
Powered by Claude Β· Grounded in docs
I know everything about Flowlite MCP Bridge. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
FlowLite MCP Bridge π
A Model Context Protocol (MCP) server that exposes FlowLite workflow automation as structured, auditable AI tools with built-in compliance gates and non-repudiable audit trails.
π€ Why does this exist?
Modern AI agents (Claude, GPT5, Llama, etc) are powerful, but they need a safe, structured way to trigger real-world automations. Without governance, an AI could:
- Execute a payment without a human approving it.
- Take an irreversible action with no trace left behind.
- Access sensitive data it shouldn't.
FlowLite-MCP Bridge solves this. It wraps your FlowLite workflows in a battle-hardened protocol that forces the AI to go through compliance gates before any action runs.
π― Use Cases
While our examples often use invoices, the bridge is designed for any multi-step automation that needs governance:
- ποΈ Infrastructure: "Spin up a staging environment for PR #42." (Requires approval for cost control).
- π Security: "Revoke access for user
john_doeacross all 12 SaaS platforms." (Audit trail mandatory). - π Onboarding: "Set up a new engineer's email, Jira, and GitHub access." (Multi-step sequential logic).
- π Data Pipelines: "Extract customer feedback from this Slack thread and write it to the DB." (AI-driven extraction).
π Quickstart
Option A β Use directly from npm (no cloning required):
npx flowlite-mcp-bridge --workflows-dir ./workflows --data-dir ./audit-trails --verbose
Option B β Clone & run locally:
# 1. Clone and install
git clone https://github.com/kobomarun/flowlite-mcp-bridge.git && cd flowlite-mcp-bridge && npm install
# 2. Build and set up your demo playground (copies example workflows)
npm run build && npm run setup-demo
# 3. Start the bridge
node dist/cli/serve.js --workflows-dir ./playground/workflows --data-dir ./playground/data --verbose
When running, you will see:
info: Starting MCP Server: FlowLite MCP Bridge v0.1.0
info: Server connected and listening on stdin/stdout
π€ Connecting to an AI Client
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"flowlite": {
"command": "npx",
"args": [
"-y", "flowlite-mcp-bridge",
"--workflows-dir", "/absolute/path/to/your/workflows",
"--data-dir", "/absolute/path/to/store/audit-logs"
]
}
}
}
Restart Claude Desktop. A π FlowLite tool indicator will appear and you can say:
"Run the invoice workflow for Acme Corp with amount 1250."
Cursor IDE
Go to Settings β MCP and add:
{
"flowlite": {
"command": "node",
"args": [
"/path/to/flowlite-mcp-bridge/dist/cli/serve.js",
"--workflows-dir", "./workflows",
"--data-dir", "./audit-trails"
]
}
}
This also works with π’ Windsurf and π§‘ Ollama + Open WebUI using the same config format.
βοΈ Write Your First Workflow
Create ./workflows/hello.yml:
id: hello-world
name: Hello World Workflow
version: 1.0.0
compliance:
requiresHumanApproval: false
steps:
- id: greet
action: flowlite.log
input:
message: "Hello from FlowLite!"
Then call it from any AI client:
{
"method": "tools/call",
"params": {
"name": "flowlite.runWorkflow",
"arguments": { "workflowId": "hello-world", "inputs": {} }
}
}
ποΈ Architecture
graph TD
Client(["AI Client (Claude / GPT / Llama)"]) -->|1. List Tools| Protocol[MCP Protocol Layer]
Protocol -->|2. Serve Manifest| Manifest[Tool Manifest]
Client -->|3. Call flowlite.runWorkflow| Router[Tool Handler Router]
Router -->|4. Validate Schema| Zod((Zod Engine))
Router -->|5. Check Compliance| Adapter[FlowLite Adapter]
Adapter -->|6. Load YAML| FS[(Workflows Folder)]
Adapter -->|7. Execute Workflow| Engine[FlowLite Engine]
Adapter -->|8. Persist Trace| Audit[(Audit Trail Store)]
Adapter -->|9. Result + Metadata| Router
Router -->|10. MCP Response| Client
Full details in
docs/ARCHITECTURE.md
π¦ Governance & Safety
| Feature | Status |
|---|---|
| Core Orchestration | β Real FlowLite Engine Integration |
| Human-in-the-Loop (HITL) approval gates | β Enforced |
| Non-repudiable audit trail per run | β Enforced |
| Data Classification levels | β Enforced |
| Strict Zod schema validation at boundary | β Enforced |
| Path traversal protection | β Enforced |
Full details in
docs/GOVERNANCE.md
π Learn More
- Architecture: How the adapter pattern and engine orchestration works.
- Tutorials: Real-world guides for DevOps, SecOps, and HR automation.
- Usage Guide: Detailed CLI flags and client connection settings.
- Governance: Deep dive into safety levels and audit trails.
πΊοΈ Roadmap
See ROADMAP.md for the full vision from Phase 1 (Foundation) to Phase 4 (Community & Ecosystem).
π€ Contributing
We welcome contributions! Start here:
- Read
CONTRIBUTING.mdfor technical standards (strict TypeScript, noany, schema-first design). - Check open Issues for tasks.
- Use the PR template when submitting.
π License
MIT β Free to use, modify, and distribute.
