Over the years I've built a couple variations of the same sort of idea: An NPC merchant system that players can use to sell their old grids for credits or repair/construct their own ships from their own blueprints.
Lately I got inspired to take one more stab at it, and it's looking like the 3rd time is the charm!
This system will let you sell or construct grids that you own by parking them close to the NPC merchant, and then selecting them from a publicly accessible console table. The whole system is integrated into MES, so other NPC modders will easily be able to integrate these systems into their own encounters.
There are still a few minor bugs to work out, but the core functionality appears to be pretty solid at this point! Unfortunately, because of the terminal controls involved to use this system (which are Client Side Scripts, by definition), it will likely not be available on Xbox.