Skip to content

McpAuthenticatorInterface

Validates the bearer token presented to the MCP HTTP endpoint.

Bind a different implementation via PluginRegistrar::service(McpAuthenticatorInterface::class, ...) to delegate to an app’s own credential store instead of the static-token default (StaticTokenAuthenticator).

interface McpAuthenticatorInterface

Implemented byStaticTokenAuthenticator
SourceAuth/McpAuthenticatorInterface.php
MethodDescription
authenticate(string $token): bool

abstract public function authenticate(string $token): bool

ParameterTypeDescription
$tokenstring

Returns bool — whether $token is valid