Tamper-evident audit log for MCP tool calls
Neurouter records every MCP tool call — who, which agent, which tool, what inputs, what decision — in a hash-chained log with signed checkpoints you can verify.
When an AI agent changes something, you need to answer three questions: what happened, on whose behalf, and can you prove the record is complete. Neurouter writes every MCP tool call to an append-only audit log built to answer all three.
What's recorded
| Field | Example |
|---|---|
| Who | the agent (release-assistant) and the user it acted for (j.doe@example.com) |
| Where from | the client (Claude Code, Cursor, an API key) and trace ID |
| What | server, tool, input parameters after redaction |
| Decision | allowed; blocked with a reason; approval pending, approved by whom, or denied |
| Outcome | status, latency, output size and SHA-256 hash |
Searches, admin changes, configuration changes and sign-ins are audited too. Redaction rules run before anything is stored, so secrets in arguments never reach the log.
Why it's tamper-evident
- Every row is linked to the previous one by a SHA-256 hash over its canonical JSON (RFC 8785). Changing or removing a row breaks every link after it.
- At least every 10,000 rows or 5 minutes, and before every retention cut, Neurouter writes a checkpoint signed with an HMAC key derived from your own encryption keys.
- Verify recomputes the chain and checks the checkpoints. It reports the first row that doesn't match (
brokenAt), and the verification itself is audited.
We use the word tamper-evident, not tamper-proof. Someone with write access to the database could rewrite rows and recompute the hashes, but can't forge checkpoint signatures without your keys. Deleting the newest rows is only detectable up to the last checkpoint that left the database, which is why Neurouter can stream every event to a system your database administrators don't control.
Getting the evidence out
- Search and filter by user, agent, server, tool, decision, status and time range, with full-text search over parameters.
- Export to CSV or JSON Lines.
- Stream to your SIEM by signed webhook or OpenTelemetry logs.
- Retention defaults to 90 days, with archive to S3, Google Cloud Storage, Azure Blob or a file before rows are deleted.
Related
- Audit log documentation: the chain, the verify API and the threat model in detail.
- Compliance mapping: how the audit log helps with EU AI Act, NIS2, DORA, ISO 27001 and SOC 2 evidence.