Observability handler class name. */ public function observability_handler(): string { /** * Filters the observability handler class used by the MCP server. * * The value must be a class implementing the mcp-adapter's * McpObservabilityHandlerInterface; any other value is ignored and the * null handler is used instead. * * @param string $handler Observability handler class name. Default NullMcpObservabilityHandler. */ $handler = wpm_apply_filters_typed( 'string', 'wpmedia_mcp_oauth_observability_handler', NullMcpObservabilityHandler::class ); if ( ! is_a( $handler, McpObservabilityHandlerInterface::class, true ) ) { return NullMcpObservabilityHandler::class; } return $handler; } }