mcp-server

v3.0.0
@agentauditai/mcp-server Checked 5 hours ago Published 23 days ago

MCP 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…

ParameterTypeDescription
agent_id *Agent identifier recorded in each preimage (preimage.agent_id)
entries *arrayActions to commit as one batch, in leaf order
agent_addressstringAuditVault agentId the batch is committed under; defaults to the signer address
compliance_scoreinteger
networkstringDefault 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.

ParameterTypeDescription
agent_addressstringAuditVault agentId (with batch_index)
batch_indexinteger
networkstring
tx_hashstringcommitBatch 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.

ParameterTypeDescription
agent_address *stringAuditVault agentId the batch was committed under
batch_index *integer
entry *object
proof *arrayMerkle proof (sibling hashes)
expected_submitterstringIf set, the batch submitter must equal it
networkstring

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.

ParameterTypeDescription
agent_id *stringAgent ID as a hex bytes32 string
networkstring

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.

ParameterTypeDescription
affected_persons *integerNumber of persons affected
agent_id *stringAgent ID as a hex bytes32 string
description *stringHuman-readable incident description
evidence_hash *stringIPFS CID or hash of incident evidence
harm_type *string
occurred_at *integerUnix timestamp when incident occurred
severity *stringIncident severity
networkstring

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.

ParameterTypeDescription
agent_id *stringAgent ID as a hex bytes32 string
networkstring

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.

ParameterTypeDescription
agent_id *stringAgent ID as a hex bytes32 string
networkstring