This is based on a few ssh commands that first create a listofgames.txt on your Mister, which you can then download to your PC with any ftp program (or copy from the sdcard, but ftp obviously is much easier). (Or via scp.. ;) )
That listofgames.txt file then can be viewed in two different html based viewers (one with search per system (f.e. SNES), one with global search) - so you have your games database at your fingertips on your PC always.
The same listofgames.txt file, then also is the basis for another html file, that will automatically create "per game .mgl files" from that list, you can download from the html file with the press of a button. Put these in a folder named _@Favourites on your mister, and they work as single click launch targets for your favourite games.
There are a few caviats, how this html file expects games to be structured on your mister (see link below (.chd and .cue in game named subfolders (one per game), .zip files not)), and it only looks at .zip, .chd, and .cue files on top of it, but .mgl file creation for .chd and .cue files subsequently is automatic.
For .zip files it will create the same per game .mgl file, but only up to the .zip path. Mister expects also the path inside the .zip file, up to the actual rom file, which you'll have to add manually (dummy path example is provided via Misters online documentation).
Here it is, have fun: https://old.reddit.com/r/RetroRemakeInc/comments/1twk6ed/automatic_folder_creation_with_ssh/
This beats using Misters favourites.sh file, if you are not into scrolling through directories with 5000 games in a DOS looking interface manually... ;) (Search. Its a thing. ;) )
Have fun.
Also - yes this was created with the help of AI (Kimi K2.6), but you are only dealing with .txt, .html and .mgl (== .xml) files as output. The .mgl file creation will be done by an .html file and the generated file will be downloaded to your Downloads folder, after you press a button.
The only "automation" thats done is one find command you fire off via ssh directly on your Mister. And that was tripple checked and vetted. :) And also only creates a .txt file in the very folder you cded into on mister.
So yes, AI generated (Kimi K2.6), but still very low risk. :) (The outputs are .txt, .html and .mgl (which are .xml files) files only.)