An automatic grid tool for a supersonic transport configuration with leading- and trailing-edge flaps was developed. It employed the commercial software Gridgen to modify the shape and grid for different combination of flap deflection angles. With the automatic tool, time cost for shape modification and grid generation is dramatically reduced. In this paper, the automatic process of shape modification and grid generation are described, and examples of the generated grid and computational result are presented.