ClientAuditActorResolver
Rasuvaeff\Yii3McpAuditLogBridge\ClientAuditActorResolver
Class — Rasuvaeff\Yii3McpAuditLogBridge — Source
Default resolver: the actor is the MCP connection — id = session id, name = the client from the initialize handshake. Correct for servers whose endpoint is not tied to an end user (a single machine agent, a stdio server); for authenticated endpoints implement AuditActorResolverInterface against the application's identity.
Methods
resolve()
php
resolve(
Interceptor\ToolCallContext $context,
?string $sessionId,
?string $clientName,
): Rasuvaeff\Yii3AuditLog\AuditActor