Intent-bound action authorization for AI agents: policy, human approval, and a signed audit trail.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Website: delegohq.com Β· Docs: delegohq.com/docs Β· Spec: Delego-Dev/specification
Intent-bound action authorization for AI agents. It sits between an agent and whatever credential broker holds the user's secrets, and it answers the one question brokers don't: is this specific action the thing the human actually asked for?
π Protocol: delego implements protocol 0.3 of the open delego wire specification β canonicalization, the policy schema, intent/fingerprint binding including the Β§4.2 query-fold, and the signed audit chain. The authorization token (spec Β§9) is an optional profile, not yet implemented.
The "agent gets its own scoped credential, and never holds the user's secret directly" pattern is now a crowded, converging space β Infisical's Agent Vault, OneCLI, Browser Use, Nango, and others all do credential brokering.
The harder problem sits one level up β the confused deputy: the agent holds a valid credential, a prompt injection redirects it, the scope covers the action, so the broker happily injects the secret and the action goes through. The credential is the wrong place to catch this β it's valid. OAuth tokens carry no commitment to the original instruction.
Authorising the action (not just the credential) is an active area β see deterministic policy engines (OPA/Cedar, Permit), human-in-the-loop approval (HumanLayer), MCP gateways/firewalls, and the "pre-action authorization" line of research. delego is a small, deterministic, local, Apache-2.0 reference for it: no LLM in the decision path, no credential custody, approvals bound to the exact action fingerprint, and a signed, hash-chained audit trail β riding the existing broker layer rather than competing with it.
BrokerAdapter interface β you ride the existing layer instead
of rebuilding it.verify(expected_head=β¦);
for key safety, use an HSM/KMS. See SECURITY.md.To run the full loop end-to-end from a clone β an allowed read, a forbidden deny, an over-cap deny, an approval flow, the confused-deputy guard refusing a substituted action, and audit-chain tamper detection (no agent or live service needed):
delego ships an MCP server (delego_mcp) over stdio β install it with the mcp
extra: pip install "delego[mcp]". Register it in your MCP
config (for Claude Code, .mcp.json at the project root) so the agent can
propose actions. Set DELEGO_HOME to keep the policy, signing keys, and ledger
project-scoped under .claude/.delego:
Initialise that home and approve from the same one (the CLI and MCP server must share a home):
If DELEGO_HOME is unset, the CLI also auto-uses ./.claude/.delego when run
from the project root, falling back to ~/.delego. (Use an absolute path in the
MCP env, since the server's launch directory isn't guaranteed.)
Tools exposed:
| tool | what it does |
|---|---|
delego_propose_action | submit an action; returns allow / deny / needs_approval |
delego_resolve_action | complete an approved action (fingerprint must match) |
delego_pending | list actions awaiting human approval (read-only) |
delego_audit_tail | read recent receipts |
delego_show_policy | show the active policy |
Approving and denying are deliberately not exposed over MCP β the agent that proposed an action must never be able to approve it; a human decides out-of-band.
Typical flow: the agent calls delego_propose_action. If it comes back
needs_approval with an approval_id, a human runs delego approve <id>, then
the agent calls delego_resolve_action with the identical action to complete it.
A rule matches on method / host / path (glob) / path_contains, decides
allow or needs_approval, and can attach constraints. Order is forbidden
(hard deny) β rules (first match wins) β default. A matched rule whose
constraints fail becomes a deny (fail-closed). See policy.example.yaml.
Supported constraints: amount (cap + currency), allow_list
(field-in-set), rate_limit (max per minute/hour/day, counted from the ledger).
Three ways to use it, lowest friction first:
delego init, add the delego-mcp server to your MCP
config, and your agent proposes actions instead of executing them. No code.pip install delego, write a policy + a BrokerAdapter, and
call fw.propose(...) in your tool-call path.Firewall in an HTTP API so many agents share
one decision point and one audit chain.The one extension point is the broker β where your credential lives and the authorised action actually runs. delego never holds the secret:
NullBroker (default) β simulates execution; for demos and tests.HTTPProxyBroker(gateway_url) β forwards the authorised action to an external
credential gateway (OneCLI / vault / proxy) that injects the secret upstream.execute(action) -> dict against the BrokerAdapter
protocol in delego/brokers.py.βΆ Delego-Dev/sample-app β a FastAPI service built on the published package, with the full propose β approve β resolve loop and a copy-paste curl walkthrough. The best starting point for building your own.
See ROADMAP.md for where delego is going and where to help.
/orders?to=me and /orders?to=attacker are different actions), the
confused-deputy guard, intent-bound + single-use human approvals, the
signed, hash-chained audit ledger with verification and an external
head-anchor check (delego verify --expected-head), and the Β§9 authorization
token (optional profile) β a short-lived, EdDSA-signed JWS a separated broker
verifies before injecting a credential (build_firewall(..., mint_tokens=True);
verify_token / require_fingerprint).delego daemon): one long-running process owns the
ledger, so every client routes through it and rate_limit is exact across all
of them β not just one host's file lock. The CLI's approve/deny/pending
auto-route to a running daemon. Optional: with no daemon, everything works
file-backed as before.NullBroker holds no credentials and makes no real
request β it records what would be sent (for demos and tests). HTTPProxyBroker
forwards an authorised action β and its authorization token β to an external
credential gateway; or write your own against the BrokerAdapter protocol in
delego/brokers.py.rate_limit is exact only among processes sharing one home on one host.
Run delego daemon for exact rate limits across all clients (one writer).
The daemon serializes one action in flight at a time (a reserve-then-execute
throughput optimization, and a TCP transport for other hosts, are future work).
Path globbing is coarse (** and * collapse).Licensed under the Apache License 2.0.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/delego)<a href="https://allmcps.com/mcp/delego"><img src="https://allmcps.com/api/badge/delego?style=directory" alt="Delego on AllMCPs" /></a>