# agent-audit-logger-mcp
# Purpose: Immutable append-only signed audit log for every agent-to-agent transaction.
# Context: DORA Art 17/19, NIS2 Art 21, EU AI Act Art 12 all mandate audit trails. Piggybacks on MEOK attestation API.

## Install
```bash
pip install agent-audit-logger-mcp
```

## Auth & Rate Limits
- Free tier: 10 calls/day. No API key required.
- Pro tier (£79/mo): unlimited + signed attestations. https://buy.stripe.com/14A4gB3K4eUWgYR56o8k836
- Enterprise (£1,499/mo): white-label + on-premise. hello@meok.ai
- All tools accept optional `api_key` parameter.

## Tools (5)

### `log(tenant_id: str, from_agent: str, to_agent: str, action: str, payload_hash: str = "", outcome: str = "success", context_csv: str = "")`
Append a signed, hash-chained log entry.

### `verify_chain(tenant_id: str)`
Re-verify the integrity of the log chain for a tenant.

### `search(tenant_id: str, from_agent: str = "", to_agent: str = "", action: str = "", outcome: str = "", limit: int = 50)`
Query the log. Empty filters match everything. Returns newest-first.

### `daily_stats(tenant_id: str)`
Return daily log volume stats for a tenant.

### `sign_day_attestation(tenant_id: str, date_utc: str, email: str = "")`
Emit a signed attestation certifying the log integrity + volume for a given day.

## Pairs with
- `meok-attestation-verify` — public verification of signed certs
- `meok-attestation-api` (https://meok-attestation-api.vercel.app) — HMAC signing endpoint
- Other MEOK governance MCPs via `mcp_bridge_call`

## Maintainer
MEOK AI Labs · hello@meok.ai · https://meok.ai · MIT licensed