Atlas
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Atlas authorize agent:claude to delete rows in staging, then log the result"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
atlas-mcp
Pre-action authorization for AI agents, as an MCP server.
Before an agent deletes data, deploys, or spends money, it asks Atlas. Atlas checks the request against a signed delegation chain and answers permit, deny or escalate, with a receipt. After acting, the agent reports what really happened with atlas_commit_effect. Every step lands in a hash-chained, ML-DSA-65-signed audit log.
$ npx -y @corpussanctum/atlas-mcp demo
You (alice) delegate to claude: database work in STAGING only.
Claude: delete rows in staging
-> PERMIT rcpt_ec14… authorized by 1-link delegation chain from user:alice
Claude: delete rows in PRODUCTION
-> DENY rcpt_876f… effect targets environment 'production';
delegated authority (grant grt_c9c8…) only permits staging
Claude: write to staging (grant says writes need a human)
-> ESCALATE rcpt_a8d7… action 'db.write' requires human approvalQuickstart (5 minutes)
1. Register the server.
Claude Code:
claude mcp add atlas -- npx -y @corpussanctum/atlas-mcpClaude Desktop (claude_desktop_config.json), or any MCP client:
{ "mcpServers": { "atlas": { "command": "npx", "args": ["-y", "@corpussanctum/atlas-mcp"] } } }Codex (~/.codex/config.toml):
[mcp_servers.atlas]
command = "npx"
args = ["-y", "@corpussanctum/atlas-mcp"]2. Delegate authority. You, the principal, issue a grant to the agent:
npx -y @corpussanctum/atlas-mcp grant --principal user:alice --subject agent:claude \
--allow 'db.*' --env staging --escalate db.write --ttl-hours 8
# prints the grant JSON; note its "id" (grt_…)3. Tell the agent the rules. Add to CLAUDE.md / AGENTS.md (see examples/CLAUDE.md.snippet):
Before any destructive, production, deploy or spending action, call
atlas_authorizewith agentagent:claude, principaluser:alice, delegation_chain["grt_…"], the action and every effect. Proceed only onpermit. Afterwards callatlas_commit_effect.
4. Approve escalations as the human. Approval is deliberately not an MCP tool, so an agent cannot approve itself:
npx -y @corpussanctum/atlas-mcp resolve rcpt_a8d7… approve
npx -y @corpussanctum/atlas-mcp verify # check the audit chain and signaturesRelated MCP server: Vizier
Tools
Tool | Purpose |
|
|
| Report what actually happened under a receipt. One commit per receipt. Effects the receipt never covered are flagged as |
|
|
| Verify the SHA3-256 chain, every ML-DSA-65 signature, and that the log still reaches its signed head |
How decisions work
A grant says: grantor → subject may do
allowactions (minusdeny), only inenvironments, only onresources, withescalateactions needing a human. Grants are signed by the local issuer key and recorded in the audit log.A chain runs principal → agent → sub-agent. It must be unbroken, unexpired, unrevoked, and may only narrow from link to link. A child grant that widens its parent is rejected.
Intersection semantics: every link must independently allow the action and each effect. Revoking any link kills everything below it, including receipts already issued but not yet committed (they become
revoked).Fail closed: unknown grants, bad signatures, missing environments under an environment-restricted grant, a request with no effects under an environment- or resource-restricted grant, and malformed requests all deny. The server trusts its own recorded copy of a grant, never the caller's.
Receipts expire after 15 minutes. A permit/approval covers the stated effects only.
Enforce it: the Claude Code hook
The MCP tools are a gate the agent chooses to call. The hook makes the check unskippable for Claude Code: it runs outside the model on every gated tool call, so the agent cannot forget, or talk its way past, a deny.
npm i -g @corpussanctum/atlas-mcp # a global install avoids npx startup cost on every tool call
atlas-mcp hook init --principal user:alicehook init writes ~/.atlas-mcp/hook.json, issues a starter grant (30 days; environments dev and staging; shell.deploy and shell.delete ask first), and prints the settings.json block to paste into ~/.claude/settings.json.
What happens on each tool call
Claude Code tool call | Atlas action | Result |
|
| no opinion: Claude Code's normal permissions apply |
|
| deny: the delegated authority only permits dev, staging |
|
| ask: Claude Code prompts you; acceptance is recorded as the approval |
|
| ask |
|
| by grant |
|
| by grant |
| not gated, except below | |
anything reaching | deny: agents cannot read or change their own authority |
The PostToolUse and PostToolUseFailure hooks then commit the receipt (success or failure) to the signed audit log, even when the command outlived the receipt's 15 minutes; a call whose grant was revoked while it ran is recorded as a violation. Check it any time with atlas-mcp verify. If you set the hook up before PostToolUseFailure was part of the printed block, add it, or failed calls go unrecorded.
Tuning
Edit ~/.atlas-mcp/hook.json:
{
"agent": "agent:claude-code",
"principal": "user:alice",
"delegation_chain": ["grt_…"],
"default_environment": "dev",
"environments": [{ "match": "(?<![a-z])(prod|production|live)(?![a-z])", "environment": "production" }],
"rules": [{ "tool": "^Bash$", "match": "^make release", "action": "shell.deploy", "effect_type": "deploy" }],
"on_permit": "defer"
}on_permit: "allow" lets an Atlas permit skip Claude Code's own prompt. The default, defer, keeps Claude Code's prompts as a second layer.
What it does not do (read this)
Classification is pattern matching. A command Atlas doesn't recognise is plain
shell.exec, and environment is inferred from words in the command (prod,production,staging, also inside names such asPROD_DB_URLordb_prod)../deploy.shor a connection string with no environment word passes asdev. Addrulesandenvironmentsfor your own tooling. This is a speed bump against mistakes and a record for audit, not a defence against an agent actively hiding its intent.Effects are as classified, not observed. The audit log records what Atlas judged the call would do, not what the process really did.
Hook failures. The hook answers
denywhen it can catch its own error (missing config, bad grant). A hard crash or timeout is not blocked by Claude Code unless your build supports"onFailure": "block"on the hook handler (documented for recent versions); add it to both hook entries if yours does.Permission modes. Claude Code's docs don't say whether a hook
denysurvives--permission-mode bypassPermissions. We tested it on Claude Code 2.1.296 (Claude Code): a denied command did not run underbypassPermissions(the control command ran and was committed). Retest after upgrading Claude Code.Self-protection is partial. Reads and edits of
~/.atlas-mcp, commands and MCP tool arguments that name it, and theatlas-mcp grant,revoke,resolveandhook initcommands are refused, but a shell can reach a file or a binary by many routes. Reads are only checked ifRead|Grep|Globare in yourPreToolUsematcher: if you set the hook up before this was added, update the matcher to the onehook initprints. Run agents as a different OS user from the one that owns the data directory if that matters to you.Claude Code only. Other clients need their own enforcement point.
Read this before you rely on it
This is a gate the agent consults, not a sandbox. On its own, an MCP tool cannot stop an agent that decides not to call it, or that lies about its effects. v0.1 gives you a signed, verifiable record and a decision to enforce with: for Claude Code, use the hook above to make it binding; elsewhere pair it with a tool proxy or network/credential isolation.
atlas_commit_effectcatches and records the mismatches it is told about.The issuer key sits unencrypted in
~/.atlas-mcp/issuer.json(mode 0600). Protect the directory like an SSH key. Anyone who can read it can forge grants.The audit log detects edits, removals and reordering; truncation only partly. A signed head (
audit.head) records the newest entry, soverifynotices entries cut from the end, and Atlas refuses to authorize on top of a shortened log. Someone who deletes the head file as well leaves a shorter log that still verifies (with a warning). For stronger evidence, copyaudit.headsomewhere the agent's account cannot write.Local operator approval = local shell access. There is no remote approval channel in v0.1.
Not a compliance certification. Cryptographic choices follow the parent project's assumptions; no external audit has been done.
Data and config
ATLAS_MCP_DATA_DIR (default ~/.atlas-mcp) holds issuer.json, audit.jsonl and its signed head audit.head. Nothing leaves the machine.
Docker
docker build -t atlas-mcp .
docker run -i --rm -v atlas-data:/data atlas-mcpRelationship to Atlas Protocol
atlas-protocol is the full governance gatekeeper (Telegram operator relay, 96-rule policy engine, agent identity registry, behavioral baselines, proximity). atlas-mcp is its smallest useful piece, extracted so you can install it in one line.
Development
npm install && npm testApache-2.0.
Available Tools
4 toolsatlas_authorizeAuthorize ActionA
Ask for authorization BEFORE doing anything consequential (deleting data, deploying, spending, sending). Atlas checks the action and its effects against the signed delegation chain and returns permit, deny or escalate with a receipt_id. Do not perform the action unless the decision is permit (or escalate that a human later approved).
Inputs: agent (required), effects (required), principal (required), delegation_chain (required), +1 more.
atlas_commit_effectReport Completed EffectsA
After acting on a permitted receipt, report what was actually done. Atlas records it in the signed audit log and flags any effect the receipt did not cover. One commit per receipt.
Inputs: outcome (required), receipt_id (required), note, effects.
atlas_receipt_statusCheck Receipt StatusARead-onlyIdempotent
Check a receipt: ready, pending_approval (escalated, waiting for a human), rejected, denied, committed, expired, or revoked (a grant behind it was revoked). Approval can only be given by a human through the atlas-mcp CLI, never through this server.
Inputs: receipt_id (required).
atlas_verify_auditVerify Audit LogARead-onlyIdempotent
Verify the audit log's SHA3-256 hash chain and ML-DSA-65 signatures. Reports the first broken entry, if any.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool maps to a distinct stage of the authorization lifecycle: request a decision, report an effect, query a receipt, and verify the audit log. There is no plausible way to confuse atlas_authorize with atlas_commit_effect or atlas_receipt_status given their descriptions.
All four tools use a uniform atlas_ prefix with a clear verb_noun pattern (authorize, commit_effect, receipt_status, verify_audit). Naming is predictable and self-describing.
Four tools exactly cover the permit-check-commit-verify loop without redundancy. Nothing feels padded or missing at the surface level.
The core consequential-action flow (authorize, commit, status, audit verification) is fully covered, including escalation and revocation states. Minor gaps exist for discovery operations like listing receipts or checking pending approvals in bulk, which agents would have to work around with known receipt_ids.
Maintenance
Related MCP Connectors
Owner-signed permissions for AI agent actions; ALLOW/BLOCK/REVIEW with request-bound receipts.
Authorize AI agent tool calls before they run: policy-as-code, human approval, signed receipts.
Checks AI agent actions before they run. Signed, RFC 3161 timestamped evidence for audits.
Pre-execution governance for AI agents. Deterministic PASS/FAIL/REVIEW verdicts, replayable proof.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceProvides permission gates and tamper-evident audit logging for AI agent tool executions, with declarative policies, consent ladders, and hash-chained verification.MIT
- AlicenseAqualityBmaintenanceOwner-signed authorization before agent actions. Hosted Vizier v0.5.13 MCP: https://vizier.agendamcp.dpdns.org/mcp. ALLOW/BLOCK/REVIEW; anonymous calls never ALLOW. Your integration enforces the decision. SDK v0.5.13: https://www.npmjs.com/package/@agenda-intelligence/vizier-sdk. Grants are signed; legacy receipts are unsigned. Python stdio is a separate catalog.38 npmMIT
- AlicenseBqualityBmaintenanceEnables AI agents to execute actions under an accountability layer with identity passports, mandates, a permission gate, and a tamper-evident journal, while requiring human confirmation for irreversible operations.747 PyPI5AGPL 3.0
- AlicenseNot gradedqualityBmaintenanceProvides a governed execution boundary for AI agents, enforcing deterministic policy, one-shot human approvals, and signed receipts for MCP tool effects.MIT