Last updated: 2026-08-10
AI agents can take consequential actions: sending emails, modifying databases, publishing content, executing trades, calling external APIs. For high-stakes actions, you want a human to verify the agent's reasoning before the action is irreversible.
The right pattern: let the agent plan freely but execute only after human sign-off on the actions that matter.
{
"mcpServers": {
"agentfabric": {
"type": "streamable-http",
"url": "https://mcp.agentfabric.dev",
"headers": {"Authorization": "Bearer YOUR_TOKEN"}
}
}
}
Or via REST: https://rest.agentfabric.dev/v1/reviews# Agent code (Python example)
import requests
def submit_for_review(title, content, context):
resp = requests.post(
"https://rest.agentfabric.dev/v1/reviews",
headers={"Authorization": f"Bearer {TENANT_TOKEN}"},
json={"title": title, "content": content, "context": context}
)
return resp.json()["review_id"]
review_id = submit_for_review(
title="Send follow-up email to 500 users",
content=draft_email,
context=f"Triggered by task: {task_description}"
)import time
def wait_for_approval(review_id, timeout=3600):
deadline = time.time() + timeout
while time.time() < deadline:
resp = requests.get(
f"https://rest.agentfabric.dev/v1/reviews/{review_id}",
headers={"Authorization": f"Bearer {TENANT_TOKEN}"}
)
status = resp.json()["status"]
if status == "approved":
return True
if status == "rejected":
return False
time.sleep(10)
return False # Timed out — treat as rejected
if wait_for_approval(review_id):
execute_action()
else:
log_rejection_and_stop()If your agent already uses MCP (Cursor, Claude Code, Codex), the flow is even simpler — the agent calls the create_review_request MCP tool and waits for the get_review_result response:
// Agent → agentfabric MCP tool
create_review_request({
title: "Proposed database schema change",
content: "ALTER TABLE orders ADD COLUMN priority INT DEFAULT 0;",
urgency: "normal"
})
// Agent waits...
// Human approves in reviewer UI
// get_review_result() returns {status: "approved", approved_by: "alice@example.com"}
mcp.agentfabric.dev) + REST API (rest.agentfabric.dev)