agent-graph-mcp
Run 9 agents at once. MCP server for graph-orchestrated LLM workflows — dispatch up to 16 LLM nodes in parallel fan-out with typed joins, checkpoint/resume, human-in-the-loop approvals, and HMAC-authenticated execution receipts. 25 typed tools.
Expose the
ri-agent-graphruntime engine over MCP. Compile declarative JSON workflow specs, execute synchronously or asynchronously, checkpoint/resume, request human approval, capture source witnesses, and get cryptographic receipts — all through 25 typed MCP tools. Normal execution is synchronous. Durable approval is supported only as a SQLite-backed decision.
Quick start
npx (recommended)
Cargo install
Daemon mode (production)
&
Client configs
Hermes Agent:
mcp_servers:
agent_graph:
command: agent-graph-mcp
args:
Claude Desktop:
9 agents at once
Fan out to 9 LLM nodes in parallel, then join results into one synthesis:
All 9 LLM calls execute concurrently via Tokio JoinSet. The join node collects results, then the report node synthesizes. Scale up to 16 branches per parallel node.
Architecture
MCP Client ──→ agent-graph-mcp (proxy) ──Unix socket──→ agent-graph-mcpd (daemon) ──→ SQLite
stdin/stdout framed Tokio async I/O
Tools (25)
Graph lifecycle (4): graph_create, graph_list, graph_inspect, graph_render
Execution (5): graph_execute, graph_run_start, graph_run_wait, graph_run_cancel, graph_run_get
State & checkpoint (4): graph_run_state, graph_run_events, graph_run_checkpoint, graph_run_resume
HITL approval (3): graph_approval_list, graph_approval_get, graph_approval_request
Evidence (2): graph_source_witness_capture, graph_source_witness_get
Templates (4): graph_template_list, graph_template_instantiate, graph_template_candidates, graph_template_outcomes
Receipts & status (3): graph_policy_check, graph_run_receipt, graph_status
Built-in templates
| Template | Description |
|---|---|
council_deliberation |
3-analyst parallel council |
parallel_council |
2-person debate |
plan_critique_refine |
plan → critique → refine |
analysis_pipeline |
planner → researcher → extractor → synthesizer → validator |
classifier_router |
LLM classifier → bug/feature/question handlers |
Ecosystem
| Crate | Role |
|---|---|
| agent-graph-mcp | MCP server (this repo) |
| ri-agent-graph | Core graph engine |
| llm-pipeline | LLM node payloads |
| stack-ids | Trace primitives |
Verification
# Smoke test — 25 tools
| \
| \
# Build + test
License
MIT © RecursiveIntell