Ok, now running into another problem. When I create a plugin and use the same code it does not load. I tried adding the following to the uplugin file.
"Modules": [
{
"Name": "MetasoundTools",
"Type": "Runtime",
"LoadingPhase": "PostDefault"
}
],
"Plugins": [
{
"Name": "Metasound",
"Enabled": true
}
]