pub(crate) fn build_method_registry(metadata_dir: &Path) -> Vec<MethodDef>
Parse all metadata files to build a method registry.