mesh2cad 0.17.0 adds params and edit: list the named dimensions of a script it generated from an STL, change one, and get a re-rendered STEP with a validity check. Edits that cannot work are refused.
mesh2cad 0.16.0 can write a FreeCAD Part macro with named dimensions from an STL. Before the file is written, freecadcmd runs it and the solid is compared with the mesh. All six tested Prusa MK3S parts pass.