https://github.com/jfmherokiller/protomuck
I did it by taking this library https://github.com/scandum/mth and reworking a good portion of the server to incorporate it. I also added a forth command to update msdp variables.
example program with the function
: hello-world (the name of the program)
"CustomProp" (first argument to the function 'notify')
"Hello, world!" (second argument)
UPDATE_MSDP_VAR (a function which takes two arguments)
;
I was unable to directly implement the msdp variables because there is no direct accessible variable and a large portion of the servers seem to implement thier buisness logic in forth.