Light parameters are message attributes. Connect any output attribute of a light node (not the shape node) to, for example, the desired element of a light array of your custom material shader.
These extensions should enable you to create pretty much any shading network supported by mental ray. It can be either exported to a file or rendered from within Maya. Some restrictions apply: