How aranaisec-cyber/aran works
Aran is a local stdio proxy placed between an IDE/agent and an MCP server. Its main workflow checks outbound tool calls, forwards permitted traffic, scans inbound results, and records gate decisions in a local audit log. Optional capabilities include GitHub repository scanning, repeat-call detection, personal allowlists, human approvals, and status/explanation tools. The README documents the main flow and feature set; source excerpts show several supporting components, but the proxy implementation is only partially sampled, so uncertain call relationships are omitted or marked unverified.
Main entry points: proxy.py MCP stdio proxy · gates.py Outbound gate · approvals.py Approval store · audit.py JSONL audit log
Components 17
Proxy and gates
- Aran CLI
src/aran/cli.py - MCP stdio proxy
src/aran/proxy.py - Outbound gate
src/aran/gates.py - Inbound gate
src/aran/gates.py
Rules and checks
- Signature rules
src/aran/rules.py - Personal allowlist
src/aran/allowlist.py - GitHub repo scan
src/aran/repo_scan.py - Repeat-call guard
src/aran/loop_guard.py
Human approvals
- Approval store
src/aran/approvals.py - Approval commands
src/aran/approvals_cli.py - Desktop approval dialog
src/aran/approval_dialog.py
Audit and status
- JSONL audit log
src/aran/audit.py - Status / explain tools
src/aran/status.py
Other components
- IDE / agent
- Real MCP server
- GitHub
- Developer
Connections 24
- IDE / agent → Aran CLI: launches
README.md - Aran CLI → MCP stdio proxy: starts
README.md - IDE / agent → MCP stdio proxy: sends calls
README.md - MCP stdio proxy → Outbound gate: checks calls
README.md - Outbound gate → Real MCP server: forwards clean
README.md - Outbound gate → IDE / agent: returns blocked
README.md - Real MCP server → MCP stdio proxy: returns results
README.md - MCP stdio proxy → Inbound gate: checks results
README.md - Inbound gate → IDE / agent: relays or redacts
README.md - Outbound gate → Signature rules: matches signatures
- Inbound gate → Signature rules: matches signatures
- MCP stdio proxy → Personal allowlist: loads overrides
src/aran/proxy.py - MCP stdio proxy → GitHub repo scan: may scan repos
README.md - GitHub repo scan → GitHub: fetches repository
src/aran/repo_scan.py - MCP stdio proxy → Repeat-call guard: may check repeats
README.md - MCP stdio proxy → Approval store: may request approval
README.md - Developer → Approval commands: reviews calls
src/aran/approvals_cli.py - Developer → Desktop approval dialog: decides request
src/aran/approval_dialog.py - Approval commands → Approval store: reads and updates
src/aran/approvals_cli.py - Desktop approval dialog → Approval store: records decision
src/aran/approval_dialog.py - Outbound gate → JSONL audit log: records decisions
README.md - Inbound gate → JSONL audit log: records decisions
README.md - Status / explain tools → JSONL audit log: reads events
src/aran/status.py - MCP stdio proxy → Status / explain tools: exposes tools
src/aran/proxy.py