MacBook Pro - Only runs while MagSafe charger connected
It sounds very much like the battery has died.

What does the battery meter say in the menu bar, if you click it? Usually if the battery has already breathed its last, it will say "service battery" or even "replace battery immediately".