$servers the ids of the MCP servers whose header value was cleared * @param bool $key whether the provider key was cleared * @return list */ public static function lines(array $servers, bool $key): array { $lines = []; if ($servers !== []) { $lines[] = sprintf( count($servers) === 1 ? 'The header value of MCP server %s was cleared, because its address moved to another host or port. Send it again.' : 'The header values of MCP servers %s were cleared, because their addresses moved to another host or port. Send them again.', implode(', ', $servers), ); } if ($key) { $lines[] = 'provider.api_key was cleared, because provider.base_url moved to another host, port or scheme. Set it again: wp alpaca-bot settings provider.api_key '; } return $lines; } }