Server data from the Official MCP Registry
Intent-bound action authorization for AI agents: policy, human approval, and a signed audit trail.
Intent-bound action authorization for AI agents: policy, human approval, and a signed audit trail.
Delego is a well-architected authorization and audit system for AI agents with strong security properties. The codebase demonstrates excellent policy validation (fail-closed design), proper cryptographic signing of audit trails, and thoughtful protection against confused-deputy attacks. Minor code quality observations exist around broad exception handling and edge case documentation, but these do not materially affect security posture. Permissions align well with the stated purpose of authorization decision-making and audit logging. Supply chain analysis found 5 known vulnerabilities in dependencies (0 critical, 2 high severity). Package verification found 1 issue.
5 files analyzed · 10 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Set these up before or after installing:
Environment variable: DELEGO_HOME
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-delego-dev-delego": {
"env": {
"DELEGO_HOME": "your-delego-home-here"
},
"args": [
"delego"
],
"command": "uvx"
}
}
}From the project's GitHub README.
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?
agent ──propose──▶ delego ──if allowed──▶ credential broker ──▶ service
(LLM) (policy + (Agent Vault / (bank,
approval + OneCLI / SaaS,
audit) Browser Use…) API)
│
└── needs_approval ──▶ human (CLI)
📜 Protocol: delego implements protocol 0.2 of the open delego wire specification — canonicalization, the policy schema, intent/fingerprint binding, and the signed audit chain. The authorization token (spec 0.3) is specified but 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.pip install delego # the `delego` library + CLI
# pip install "delego[mcp]" # add the `delego-mcp` server (MCP is an optional extra)
delego init # creates ~/.delego with signing keys and an example policy
delego policy # inspect the active policy
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):
git clone https://github.com/Delego-Dev/delego && cd delego
pip install -e ".[dev]"
python examples/demo.py
pytest
delego policy # show the active policy
delego pending # list actions awaiting approval
delego approve apr_xxxx # release a parked action (or: delego deny apr_xxxx)
delego log -n 20 # read recent receipts
delego verify # check the audit chain (hashes, linkage, signatures)
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:
{
"mcpServers": {
"delego": {
"command": "delego-mcp",
"env": { "DELEGO_HOME": "/abs/path/to/project/.claude/.delego" }
}
}
}
Initialise that home and approve from the same one (the CLI and MCP server must share a home):
delego --home .claude/.delego init # keys, example policy, and a .gitignore
delego --home .claude/.delego pending # ...then: delego --home .claude/.delego approve apr_xxxx
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_audit_tail | read recent receipts |
delego_show_policy | show the active policy |
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.
rules:
- name: place-order
decision: needs_approval
match: { method: POST, host: api.example.com, path: /orders }
constraints:
amount: { field: amount, max: 5000, currency: USD }
allow_list: { field: destination, in: [internal] }
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.
NullBroker holds no credentials and makes no real
request — it records what would be sent (for demos and tests). HTTPProxyBroker
forwards an authorised action to an external credential gateway; or write your
own against the BrokerAdapter protocol in delego/brokers.py.** and * collapse); the URL query string is not
part of the action fingerprint (spec 0.3).Licensed under the Apache License 2.0.
Be the first to review this server!
by Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
by Modelcontextprotocol · Developer Tools
Web content fetching and conversion for efficient LLM usage
by Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.