Skip to content

rasuvaeff/yii3-mcp-audit-log-bridge

Records every yii3-mcp tools/call into rasuvaeff/yii3-audit-log — the answer to "what did the AI actually do in our system." See the bridge guide for full usage.

bash
composer require rasuvaeff/yii3-mcp-audit-log-bridge
NamespaceRasuvaeff\Yii3McpAuditLogBridge
Repositorygithub.com/rasuvaeff/yii3-mcp-audit-log-bridge
RequirementsPHP 8.3 – 8.5, rasuvaeff/yii3-mcp ^1.6 || ^2.0, rasuvaeff/yii3-audit-log ^1.0
Optionalrasuvaeff/yii3-mcp-rbac-bridge ^1.0, only for IdentityAuditActorResolver

Public API

ClassRole
AuditTrailInterceptorToolCallInterceptorInterface — records the event, rethrows failures unchanged.
AuditActorResolverInterfaceDecides WHO the actor is.
ClientAuditActorResolverDefault — credits the MCP connection (session + handshake client).
IdentityAuditActorResolverCredits the authenticated application user, via the RBAC bridge's IdentitySourceInterface.

See Bridges: audit log for wiring, the recorded field table, actor resolution, and masking semantics.