For example, I work with a "3D" instance of MP:
\defineMPinstance
[three]
[format=metafun,
extensions=yes,
initializations=yes,
method=double]
\startMPdefinitions{three}
input three ;
\stopMPdefinitions
Where three.mp contains my 3D projection macros.
Use is then
\startMPcode{three}
...
\stopMPcode