mcp-server
v3.0.0MCP server for AgentAudit: audit logging on AuditVault v2 (Base), on-chain incident records and evidence reads for EU AI Act record-keeping.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
audit_action
Anchor one or more agent actions on AuditVault v2 in one commitBatch transaction (EU AI Act Art. 12, 19). Live on Base only (AuditVault v2 0xCeE831070aa9081422f30df5559c125aa47A75DB); any other network returns an error unless AUDIT_VAULT_<NETWORK> points at an AuditVault v2. Each call commits its entries immediately — nothing is buffered between calls. Payloads are SHA-256 hashed; raw content never leaves this process. Returns txHash, batchIndex, merkle_root and each entry's action_ref + proof, plus the evidence bundle: keep it, the batch payload is not stored anywhere else (contentURI is me…
| Parameter | Type | Description |
|---|---|---|
agent_id * | Agent identifier recorded in each preimage (preimage.agent_id) | |
entries * | array | Actions to commit as one batch, in leaf order |
agent_address | string | AuditVault agentId the batch is committed under; defaults to the signer address |
compliance_score | integer | |
network | string | Default base — the only network with AuditVault v2 |
get_audit_log
Read committed AuditVault v2 batches, by commitBatch tx hash or by agent_address + batch_index (Art. 12, 19). Live on Base only (AuditVault v2 0xCeE831070aa9081422f30df5559c125aa47A75DB); other networks return an error unless AUDIT_VAULT_<NETWORK> is set.
| Parameter | Type | Description |
|---|---|---|
agent_address | string | AuditVault agentId (with batch_index) |
batch_index | integer | |
network | string | |
tx_hash | string | commitBatch transaction hash |
verify_proof
Check an audit entry's inclusion proof on-chain with AuditVault v2 verifyLog. The leaf is always recomputed from the preimage (never trusted from the caller); the batch submitter is reported and can be pinned (docs/THREAT_MODEL.md KI-1, KI-2). Live on Base only (AuditVault v2 0xCeE831070aa9081422f30df5559c125aa47A75DB); other networks return an error unless AUDIT_VAULT_<NETWORK> is set.
| Parameter | Type | Description |
|---|---|---|
agent_address * | string | AuditVault agentId the batch was committed under |
batch_index * | integer | |
entry * | object | |
proof * | array | Merkle proof (sibling hashes) |
expected_submitter | string | If set, the batch submitter must equal it |
network | string |
get_risk_score
Query the RiskManagementSystem contract for an agent's risk profile (EU AI Act Art. 9). Deployed on mantle, base, arbitrum, optimism, polygon.
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | Agent ID as a hex bytes32 string |
network | string |
report_incident
Record a serious AI incident on IncidentRegistry v2 (related to EU AI Act Art. 73). Live on mantle, base, arbitrum, optimism, polygon. This is an on-chain record only, not a report to any authority. Fails unless the registry has code and the transaction emits IncidentRegistered.
| Parameter | Type | Description |
|---|---|---|
affected_persons * | integer | Number of persons affected |
agent_id * | string | Agent ID as a hex bytes32 string |
description * | string | Human-readable incident description |
evidence_hash * | string | IPFS CID or hash of incident evidence |
harm_type * | string | |
occurred_at * | integer | Unix timestamp when incident occurred |
severity * | string | Incident severity |
network | string |
get_evidence_report
List the on-chain records found for an agent in the Phase 7 contracts (RiskManagementSystem, IncidentRegistry) on one or all of mantle, base, arbitrum, optimism, polygon. Read-only. It does not determine whether any legal obligation is satisfied. Not legal advice.
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | Agent ID as a hex bytes32 string |
network | string |
get_compliance_report
Deprecated alias of get_evidence_report; it will be removed in a future major version. List the on-chain records found for an agent in the Phase 7 contracts (RiskManagementSystem, IncidentRegistry) on one or all of mantle, base, arbitrum, optimism, polygon. Read-only. It does not determine whether any legal obligation is satisfied. Not legal advice.
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | Agent ID as a hex bytes32 string |
network | string |