/commands, also known as client to server commands, are defined by the server, so you don't know what commands the server has. I do not know of any way to obtain this list from the server, besides having the server dump all functions and maybe making something that filters out anything except the /commands.
Also, this has been made a few times, and it is always crappy.