Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Read-only queries over Aileron audit journals: verify integrity, search recorded tool calls
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"aileron": {
"command": "uvx",
"args": [
"aileron",
"serve",
"--root",
"."
]
}
}
}在终端中运行这条命令
claude mcp add aileron -- uvx aileron serve --root .粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"aileron": {
"command": "uvx",
"args": [
"aileron",
"serve",
"--root",
"."
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"aileron": {
"type": "stdio",
"command": "uvx",
"args": [
"aileron",
"serve",
"--root",
"."
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 aileron-sh 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.1.6)于19天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Aileron is a flight recorder for AI agents.
Not another tracer. Aileron produces a tamper-evident, replayable record of every tool call your agents make - evidence you can verify offline, not telemetry you have to trust.
aileron verify says exactly where the chain broke.allow / alert / block actions, applied *before* execution via the MCP stdio proxy or the SDK decorator. A blocked tool call never runs; the attempt is logged anyway.$ pip install aileron
$ aileron demo # scripted fake-agent session (no network, no keys needed) demo: wrote 8 events to demo.chain.jsonl demo: chain VERIFIED (8 events) demo: blocked shell call by rule aileron-001 demo: 2 anomaly alert(s) emitted $ aileron verify demo.chain.jsonl OK: 8 events verified in demo.chain.jsonl $ aileron report demo.chain.jsonl -o incident.html # open it in a browser $ aileron serve --root . # or ask an assistant instead
The demo runs in the default digest-only mode: the destructive shell call is blocked by a content rule and flagged by the behavioral baseline, yet the journal on disk contains only argument digests - never the raw command.
| Feature | What you get |
|---|---|
| Hash-chained journal | Append-only JSONL; each event's prev_hash links to the previous event's SHA-256 hash; genesis is 0x00…00 |
| Signed checkpoints | Ed25519 signature over the chain tip, verifiable offline against the public key (aileron sign-checkpoint / verify-checkpoint). Checkpoints cover a *prefix*: appending later events never invalidates them; truncating or rewriting the signed prefix does |
| Policy rules | 32 bundled rules covering credential theft, cloud metadata abuse, exfiltration, supply chain, persistence, anti-forensics, database destruction, and prompt-injection artifacts. Sigma-like YAML; substring, regex, and dotted-key matchers. Rules are evaluated against the full call in memory, so content rules fire even in digest-only mode |
| Behavioral anomaly detection | Rolling baselines flag first-seen tools, rate spikes (>3x baseline), and novel tool-call sequences - live via the SDK (baseline=) or offline via aileron detect |
| MCP stdio proxy | Sits between any MCP client and server; logs and mediates every tools/call before it reaches the child process. Verified against the official filesystem and memory servers, not just test doubles |
| Claude Code hook | aileron hook plugs into Claude Code's PreToolUse and PostToolUse hooks: every tool call is journaled before it runs and again when it returns, a matching block rule stops it (exit 2, reason shown in the session, even in bypassPermissions mode), and a journal that cannot be written blocks the call instead of losing it. One settings.json snippet covers a project. See docs/claude-code.md |
| MCP server mode | aileron serve exposes your journals read-only, so an assistant can answer "what did the agent touch?" from the record. Listed in the official MCP Registry as io.github.aileron-sh/aileron |
| OTel GenAI export | Events export as gen_ai.*-aligned span dicts (aileron export) for your existing collector |
| HTML incident reports | Single file, inline CSS, no external assets, verification badge (VERIFIED / TAMPERED at seq N) |
| Privacy by default | Tool arguments/results are recorded as digests only, unless you opt in with --capture-content |
@track decoratorfrom aileron import ChainLog, track, PolicyBlocked, bundled_rules_dir
from aileron.policy import load_rules
log = ChainLog("run.chain.jsonl") # capture_content=False by default rules = load_rules(bundled_rules_dir()) # or load_rules("rules") after aileron init
@track(log=log, rules=rules) def shell(cmd: str) -> str: ... # your tool implementation
shell("ls /tmp") # -> tool_call event, status=ok, args recorded as digest shell("rm -rf /") # -> PolicyBlocked raised; blocked attempt is logged
Rules see the full arguments in memory at decision time; the journal still stores digests only. Turn on capture_content=True only when you want raw arguments *persisted* for forensics.
track_agent sessionfrom aileron import track_agent
with track_agent("research-agent", framework="langchain", log=log): shell("ls /tmp") # inherits the session's agent identity and session_id
Wrap any MCP server. Every tools/call is logged and policy-checked *before* the child process sees it:
$ aileron init # seeds a ./rules directory with starter rules
$ aileron proxy --log run.chain.jsonl --rules rules -- \ npx -y @modelcontextprotocol/server-filesystem /tmp $ AILERON_SESSION_ID=run-4821 aileron proxy --log run.chain.jsonl --rules rules \ --agent researcher --framework crewai -- npx -y @modelcontextprotocol/server-filesystem /tmp
Proxy flags go before --; everything after it belongs to the child. A harness can set AILERON_AGENT, AILERON_FRAMEWORK and AILERON_SESSION_ID per spawn instead of passing flags, and a flag wins over the environment. The journal records the identity you give it, so a rule such as agent.name: researcher matches on the proxy path. Reusing a session id across runs groups them: detect treats them as one session and the OTel export puts them in one trace.
A blocked call returns a JSON-RPC error (-32000: blocked by aileron rule ) to the client; the child is never invoked.
Verified against real MCP servers, not just test doubles. Aileron has been run in front of the official @modelcontextprotocol/server-filesystem (secure-filesystem-server 0.2.0, 14 tools) and @modelcontextprotocol/server-memory (0.6.3, 9 tools): the handshake completes, tools list normally, real calls work, a blocked write never reaches the server, and the journal verifies. That check ships as a test (tests/test_real_mcp_server.py, run with AILERON_LIVE_MCP=1).
The proxy itself costs well under a millisecond per `tools/call`. Matching content rules against large payloads costs more, and how much is yours to choose: see Performance for the split, measured.
The proxy speaks both newline-delimited and Content-Length-framed JSON-RPC. Content rules (tool.arguments_contains, _regex) work in the default digest-only mode - --capture-content changes what is persisted, not what is enforced. Calls still in flight when the child dies are journaled with status=error, so a crash never erases the attempt.
Claude Code's own tools (Bash, Edit, Write, MCP tools) go through its hook system, and aileron hook is a command hook for it. One entry, registered under PreToolUse, PostToolUse and PostToolUseFailure; the PreToolUse copy also gets "onFailure": "block":
{"type": "command", "command": "aileron",
"args": ["hook", "--log", "${CLAUDE_PROJECT_DIR}/aileron.chain.jsonl", "--rules", "${CLAUDE_PROJECT_DIR}/rules"], "timeout": 30}
Every call is journaled before it runs and again when it returns, digests only by default. A matching block rule stops the call by exit code 2 and Claude sees the reason in the session:
PreToolUse:Bash hook error: [aileron hook ...]: blocked by aileron rule
local-001 (Block destructive shell commands from Claude Code); recorded as seq 3 in /home/me/my-project/aileron.chain.jsonl
The hook fails closed: a journal that cannot be written or rules that cannot be loaded block the call rather than let it run unrecorded, and it never writes to stdout or emits an allow, so it can only narrow what Claude Code would have permitted. Hook processes run in parallel and serialise on .lock. aileron verify and aileron report work on the journal as on any other. Full setup, the event shapes and the limits (what a timed-out hook means, @ file reads, mods) are in docs/claude-code.md.
Aileron sits in front of MCP servers. It is also one. Point it at a directory of journals and an assistant can read the record for you:
$ aileron serve --root ./journals
Three tools, all read only: verify_journal (is this record intact), query_events (what happened, filtered by tool, status, or time), and explain_rule (what does aileron-130 catch).
There is no write, delete, or sign tool, and there should never be. The agent being recorded is the untrusted party, so giving it a way to edit the journal would hand the suspect the evidence locker.
Four things follow from that, and they are the reason this is more than a wrapper around aileron verify:
.jsonl opens. Otherwise verify_journal(path) is an arbitrary file read.IGNORE PREVIOUS INSTRUCTIONS... is evidence to report, not an instruction to follow.capture_content governs what the journal stores. It never widens what this server hands back, and errors never echo file contents.# a policy rule (see the bundled rules/examples/destructive-shell.yml)
id: aileron-001 title: Block destructive shell commands severity: high match: type: tool_call tool.name: shell tool.arguments_contains: ["rm -rf", "DROP TABLE", ":(){ :|:& };:"] action: block
Dry-run rules against a recorded session: aileron rules test rules/ run.chain.jsonl
agent ──tool call──► [ SDK @track ] ──┐
[ MCP proxy ] ──┼─► policy decide (allow/alert/block) │ │ block? ──► call never executes, MCP client ──JSON-RPC──► proxy ───────┘ │ attempt still logged ▼ append to chain log (JSONL)
event 0 event 1 event N ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │ seq: 0 │ │ seq: 1 │ │ seq: N │ │ prev: 0000… │─►│ prev: H(e0) │─► … ──►│ prev: H(eN-1)│ │ hash: H(e0) │ │ hash: H(e1) │ │ hash: H(eN) │──► Ed25519 checkpoint └──────────────┘ └──────────────┘ └──────────────┘ signature over tip
H(e) = sha256(canonical_json(e \ hash))
只显示了开头部分;其余内容请在仓库中阅读