Skip to content

ClientAuditActorResolver ​

Rasuvaeff\Yii3McpAuditLogBridge\ClientAuditActorResolver

Class — Rasuvaeff\Yii3McpAuditLogBridge — Source

Default resolver: the actor is the MCP connection — id = session id (the client id where there is no session: the stateless 2026-07-28 era, stdio), name = the client the call named itself as. 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