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| Namespace | Rasuvaeff\Yii3McpAuditLogBridge |
| Repository | github.com/rasuvaeff/yii3-mcp-audit-log-bridge |
| Requirements | PHP 8.3 – 8.5, rasuvaeff/yii3-mcp ^1.6 || ^2.0, rasuvaeff/yii3-audit-log ^1.0 |
| Optional | rasuvaeff/yii3-mcp-rbac-bridge ^1.0, only for IdentityAuditActorResolver |
Public API
| Class | Role |
|---|---|
AuditTrailInterceptor | ToolCallInterceptorInterface — records the event, rethrows failures unchanged. |
AuditActorResolverInterface | Decides WHO the actor is. |
ClientAuditActorResolver | Default — credits the MCP connection (session + handshake client). |
IdentityAuditActorResolver | Credits 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.