Lots of rough code to connect, get the cluster nodes, and add them to the server list.  Probably doesn't work at all, but it's slightly better than pseudocode.