ExtensionModality can handle MIDI devices with multiple ports. Most USB-connected MIDI devices have a single in and out port, which in Modality becomes a single MKtl, as in
Most MIDI devices with multiple ports have the same number of in and out ports; Modality groups that into one MKtl for in 0, out 0, one for in 1, out 1, etc., each of which has a separate desc file, describing its elements.
When you have that device, MKtl.find will posts all 3 ports, and their matching desc files:
You can combine these separate MKtls into a single CompMKtl if you like, or just use them separately.
To add descriptions for a new device to Modality, simply create a desc file for each port, by following the instructions in How to adapt a description file or in How to create a description file for a MIDI device.