Add missing namespace declaration

`MgClient` was not placed in a namespace.