This is already supported via VisualGDB Project Properties -> Debug Settings -> Full-Custom Mode.
Simply specify “–interpreter mi $(TargetPath)” in the gdb arguments and use the “target remote <host>:<port>” as the target selection command. This will connect gdb to a remote target.
You can also automate running the remote OpenOCD instance via the Custom Debug Steps page of VisualGDB Project Properties.