A real-time Model Predictive Control is proposed for controlling the behavior of an Automated Manual Transmission. The underlying formulation shows a unified approach that handles different modes: idle-speed control, vehicle start-up, gearing up and down. The proposed control is tested both in simulation, using LMS Imagine.Lab AMESim and Matlab/Simulink, and on line in a city car demonstrator equipped with a natural gas engine.