This is awesome! I was working on something similar, but you beat me to the punch! This is probably a better way to handle it than how I had planned, with each script adding itself to the settings (although I think that would be nice to have as an alternate method, so scripts not in the megamod can still have access to a nice config menu).
If I'm understanding this correctly, it seems like you should be able to add multiple config options per script, which is great (but I think it might be a bit hacky)! It'd be awesome if you could add headers to help separate the options into sections, and add more option types like text, sliders, and radio buttons. Having more config types would be awesome for other configuration purposes. I also think that the current method of adding config options is a bit clunky and will definitely get unwieldy as the number of mods grows, maybe a function like addOption(mmLabel, mmDesc, mmFunc, funcObj) would work well.
I'm gonna start messing with this and getting my scripts set up to work with it, I'll throw together a pull request once I've gotten some of them working