We had the toys as kids in the '80s with all their magnets, folding up abilities and mechnisms for opening and shutting so you could transport things about in the larger spaceships (they were bloody clever and well designed toys actually*), etc, but I do not remember a cartoon for it too!:
View: https://youtu.be/wKZfwih-3dM
View: https://youtu.be/FmwnZ7DMiWI
* - I ended up with two of these beauties (one we got new, the other second hand), the 'Starmax Bomber' and I loved them, although there were other things with much more exciting opening and unfolding mechanisms.
They were quite brilliant (between my brother and I, we had quite a lot of things).
Oh and there were figures too, who were, of course, magnetic to stand/sit on many of the surfaces on these things.
View: https://youtu.be/71q_lgslUqA
My favourite by a country mile, the Starmax Bomber, which could also double as a pretend Space Shuttle or an airliner of sorts!!:
View: https://youtu.be/EhPCgmtbIWM