Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

mandatia

Latest version: v0.1.4

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
MCP server Transport: stdio Publisher: JC7333
0 Stars
0 Forks
4 Versions
Python Repo language

Scan summary

mandatia was last scanned on 30 Nov 2026 at version 0.1.4. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 4 versions; the latest 2 were published within 2 days (29 and 30 Nov 2026).
  • Findings: 1 rule fired in version 0.1.4 (1 low). The score describes this version only.
  • MCP server: Runs over stdio.

Versions

4 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.4 LATEST 30 Nov 2026 1 rule fired
0.1.3 29 Nov 2026 1 rule fired
0.1.2 10 Nov 2026 No rules fired
0.1.1 6 Nov 2026 Not shown

Rules fired in 0.1.4: 1

Findings

1 Low

Findings for v0.1.4. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

Phrase match: insecure-practice wording (not reviewed)

An automated phrase check found wording such as "skip validation", "chmod 777" or disabling certificate checks. It does not tell advice apart from examples, warnings or lists of things to avoid. Not reviewed by a person.

LOW
Checking access…

🔒 Create a free account to see all 1 finding with descriptions and instance counts

The score describes 0.1.4; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

mandatia

Records who authorized an AI agent to do what, until when.

mandatia is the public name. Inside the project it is still called AMR (Agent Mandate Registry): the repository, the Python module amr and the AMR_ settings keep that name.

mandatia is an open-source MCP server that registers, verifies, and audits mandates authorizing AI agents to act on behalf of principals. Here a mandate is the written authorization a person or a body gives for its agent: it binds the one who gives it, not the agent, which is not a person. It provides a cryptographically chained audit trail of who authorized which agent to do what, until when: evidence that supports the human-oversight and record-keeping duties of deployers under EU AI Act Article 26, with eIDAS 2.0 electronic mandates in mind. mandatia is a technical tool: it does not by itself make a system compliant.


Quickstart for agents

This section is written so that an AI agent (Claude Code, Cursor, any MCP client) can install mandatia and reach a first verified mandate on its own: no account, no email, no person to ask. Everything runs on your machine; mandatia makes no network call (two opt-in exceptions, both off by default: report_issue once the operator sets AMR_ISSUE_TOKEN, and the did:web key check once the operator sets AMR_DID_WEB_RESOLVE=1).

1. Run the server (needs uv).

uvx mandatia

The PyPI package is named mandatia; the Python module and the amr command keep their names. uvx amr installs a different, unrelated project: do not use it. To run the latest code of the repository instead:

uvx --from git+https://github.com/JC7333/amr amr

mandatia runs with version 1 and version 2 of the MCP Python SDK (mcp>=1.2,<3); no extra version pin is needed.

Or clone the repository and run uv sync && uv run amr.

2. Declare it in your MCP client.

Claude Code:

claude mcp add mandatia -- uvx mandatia

Cursor (.cursor/mcp.json) and other clients that read an mcpServers object:

{
  "mcpServers": {
    "mandatia": {
      "command": "uvx",
      "args": ["mandatia"],
      "env": {
        "AMR_DB_PATH": "/absolute/path/amr_mandates.db",
        "AMR_SIGNING_KEY_PATH": "/absolute/path/amr_signing_key.pem",
        "AMR_PUBLIC_KEY_PATH": "/absolute/path/amr_signing_key.pub"
      }
    }
  }
}

To run the repository code instead, the arguments are ["--from", "git+https://github.com/JC7333/amr", "amr"]. Set the three paths: by default mandatia writes its database and its signing key in the current directory of the client. Keep the .pem private key out of version control.

Give each side only its own tools. An agent that can create, sign or revoke its own mandate authorizes itself, and the mandate then proves nothing. Set AMR_TOOL_PROFILE in the env block of each client, all pointing at the same AMR_DB_PATH:

AMR_TOOL_PROFILE Who runs it Tools
principal the person or body that grants mandates create, sign, suspend, revoke, contest, prove, have the registry dated (create_mandate, register_principal_key, suspend_mandate, resume_mandate, revoke_mandate, contest_action, get_proof, export_insurer_dossier, record_registry_timestamp, ...)
agent the agent that acts under a mandate verify_mandate, issue_action_token, log_action, issue_mandate_attestation, get_registry_public_key; create_mandate for sub-mandates under its own mandate only
receiver a third party the agent acts upon check_action_token, record_action_receipt, get_registry_public_key
full (default) tests and single-user setups every tool

With agent, create_mandate refuses a mandate without parent_mandate_id (root_mandate_needs_principal).

3. Reach a first verified mandate. The tools, in the order an agent uses them:

  1. create_mandate: register who authorizes what (principal_id, agent_id, scope, legal_basis_regulation, legal_basis_article, duration_hours; add allowed_actions / forbidden_actions for a perimeter; only issue_action_token enforces it).
  2. verify_mandate(agent_id, action): authorized: true while the agent has an active mandate. It does not check action against the perimeter; issue_action_token does. Add mandate_id to check the one mandate the agent shows you: that mandate only.
  3. issue_action_token(mandate_id, agent_id, action, audience, action_type, action_metadata_json): before acting, the agent asks for a signed token. Under a perimeter, action_type is required (e.g. "invoice.pay"), and an amount goes in action_metadata_json as a decimal string: '{"amount": "120", "currency": "EUR"}'. Outside the perimeter or above a ceiling the answer is denied: true with reason: "action_out_of_scope" and a detail (forbidden:agent.create, amount_above_limit:500 EUR, ...). No token, no action. The receiver checks the token with check_action_token (profile receiver), and once it has dealt with the action leaves its receipt with record_action_receipt (executed, or refused and why).
  4. log_action(mandate_id, action, action_token=...): append an entry to the hash-chained journal. With the token of step 3, the action is logged only if that token is valid, was issued under this mandate and has not covered another action; its jti is sealed into the entry. With or without a token, the entry is the agent's declaration of what it did, not a proof that it took place; without a token, nothing is checked against an authorization; set AMR_REQUIRE_ACTION_TOKEN_FOR_LOG=true to refuse every action logged without one.
  5. issue_mandate_attestation + get_registry_public_key: a signed document a third party checks offline with python -m amr.verify_attestation.
  6. revoke_mandate(mandate_id, reason): the stop button. That mandate then issues no token, and verify_mandate answers authorized: false unless the agent holds another active mandate (with mandate_id set to the revoked mandate, it answers authorized: false in every case). Tokens and attestations already issued stay valid until they expire, except for a receiver that re-checks the token with check_action_token. To pause rather than end, suspend_mandate: a key the principal designated in the mandate (suspension_keys) stops it at once, and only the principal lifts the pause (resume_mandate).
  7. get_proof(mandate_id): the full audit bundle (mandate, actions, integrity). If the agent already did something it should not have, contest_action(mandate_id, action_id, reason, response_days) records that the act is disputed, and list_action_contests reminds the deadline the operator chose.
  8. report_issue(title, description, version, context): report a problem with mandatia itself. Without AMR_ISSUE_TOKEN it makes no network call and returns a pre-filled link to open; with it, it files the issue on GitHub. See docs/report-issue-spec.md.

The same flow, runnable and checked by the test suite, is in examples/quickstart_agent.py:

git clone https://github.com/JC7333/amr.git && cd amr && uv sync
uv run python examples/quickstart_agent.py   # prints every step, ends with "OK"

A worked case with three roles (principal, agent, receiver), a committee decision, a validated note and a signed withdrawal: docs/scribe-example.md (in French: docs/scribe-example.fr.md).

Machine-readable summaries for agents: AGENTS.md and llms.txt. To report a problem, call report_issue or open an issue at https://github.com/JC7333/amr/issues (never paste real mandate contents or personal data into it).


Why mandatia?

Modern AI agent infrastructure covers many concerns — but the record of who authorized an agent, for what and until when, is missing:

Concern Existing tools mandatia
Infrastructure & orchestration ✅ LangChain, AutoGen, CrewAI —
Security & sandboxing ✅ Docker, RBAC, network policies —
Permission & access control ✅ OAuth, IAM, API keys —
Observability & tracing ✅ OpenTelemetry, Langfuse —
Authorization record & accountability ❌ Not covered ✅ mandatia

EU AI Act Article 26 (Regulation (EU) 2024/1689) requires deployers of high-risk AI systems to assign human oversight and to keep the logs the system generates, to the extent they are under their control, for at least six months (Art. 26(6)). It applies from 2 December 2027 for Annex III systems and 2 August 2028 for Annex I systems (Regulation (EU) 2026/1744). Non-compliance with Article 26 can be fined up to €15 million or 3% of worldwide annual turnover, whichever is higher (Art. 99(4); for SMEs and start-ups, whichever is lower, Art. 99(6)). mandatia records who authorized an agent, for what and until when, and what it did, in a tamper-evident form that this oversight can rely on; it complements the system's own logs, it does not replace them.


Structural hard-stop enforcement

mandatia does not only record mandates — it enforces them. Agent runtimes must obtain a signed action token from mandatia before performing any action. The token is issued if and only if a valid, non-expired, non-revoked mandate authorizes that specific action for that specific agent. No mandate → no token → no action.

Tokens are JWS (RFC 7515) signed with Ed25519 (EdDSA), include replay prevention via the jti claim and the issued_tokens audit table, and carry the exact action hash and scope digest they authorize. Consumers verify offline with the mandatia public key and MUST check aud, exp, and amr_action_hash.

Perimeter enforcement and delegation control

A mandate can carry a structured perimeter: the action types the agent may request (allowed_actions), the ones it may never request (forbidden_actions, which always win and also reach sub-types: forbidding agent.create forbids agent.create.batch), whether it may delegate (delegation_allowed), and an optional amount ceiling (max_amount with currency, applied to amount_actions). The token issuer then checks the requested action against the perimeter, not only the existence of the mandate:

  • an action type outside allowed_actions, or matching forbidden_actions, gets no token (reason: "action_out_of_scope", with a detail and the mandate that refused it in refused_by);
  • a sub-mandate (parent_mandate_id) is created only if the parent is active, allows delegation, and was granted to the agent now delegating; the sub-mandate must stay inside the parent's allowed actions and limit, inherits the parent's prohibitions, and cannot outlive the parent;
  • every token issued under a sub-mandate re-checks the whole chain: revoke (revoke_mandate) or let expire the parent, and every sub-mandate below it stops getting tokens;
  • an optional cumulative ceiling (period_max_amount over a rolling window of period_days days, same currency and amount_actions) caps the total of the amounts of the tokens issued under the mandate and every sub-mandate below it in the window: for the actions that carry an amount (those reached by amount_actions, every action when it is empty, and any action that declares an amount), an agent cannot split a large purchase into small ones, nor spend the same budget again through a sub-agent (detail: "period_amount_above_limit:<max> <CUR>/<days>d", with the mandate whose budget is spent in refused_by). A token counts as soon as it is issued, used or not; a refused token counts for nothing. A sub-mandate's own ceiling may not exceed the parent's. The parent's ceiling is not copied into the sub-mandate's perimeter (it binds the sub-mandate all the same, at issuance): read the whole chain, as get_proof and the attestation do, to see every ceiling that applies. A sub-mandate that sets a ceiling under a parent with a per-action limit binds the union of both amount_actions (an empty list on either side means every action);
  • optional risk classes (risk_classes) bound how long a token stays usable, by what is at stake: each class names action types (reached with their sub-types, like forbidden_actions) and a max_token_seconds from 1 to 86400, for example {"name": "irreversible", "actions": ["invoice.pay"], "max_token_seconds": 30}. A token for an action reached by a class lives at most that long; the shortest class wins, in the mandate and in every mandate above it in the delegation chain, so a sub-mandate can shorten the window, never lengthen it: it inherits the parent's classes (shown in its own perimeter) and may reuse a class name only with a shorter or equal max_token_seconds (else limit_exceeds_parent). The matched class names are sealed in the token as amr_risk_classes. A class never lengthens a token beyond AMR_TOKEN_LIFETIME_SECONDS. Mandates without classes keep their exact hash and tokens. A class may also set "registry_check": true: its tokens then carry amr_registry_check: true, and the receiver re-checks them with check_action_token at the moment of acting, so a revocation in the meantime is seen. A sub-mandate inherits the flag and cannot drop it. Classes without it keep their exact form and hash.

Example: an assistant agent told never to create sub-agents.

create_mandate(..., allowed_actions=["report.*"], forbidden_actions=["agent.create"])
issue_action_token(..., action_type="agent.create")
→ {"denied": true, "reason": "action_out_of_scope", "detail": "forbidden:agent.create"}

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • MCP Registry io.github.JC7333/mandatia

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Frame 2085668439 (1)
Group 1261154229