Configure the port as an edge port.
default spanning-tree mstp edge-port
spanning-tree mstp edge-port { false | true }
The default is disabled (false).
GigabitEthernet Interface Configuration