MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / _build_context

Method _build_context

apps/plugins/loader.py:692–698  ·  view source on GitHub ↗
(self, lp: LoadedPlugin, cfg: PluginConfig)

Source from the content-addressed store, hash-verified

690 return merged
691
692 def _build_context(self, lp: LoadedPlugin, cfg: PluginConfig) -> Dict[str, Any]:
693 settings = self._merge_settings_with_defaults(cfg.settings or {}, lp.fields or [])
694 return {
695 "settings": settings,
696 "logger": logger,
697 "actions": {a.get("id"): a for a in (lp.actions or [])},
698 }
699
700 def _read_manifest(self, path: str) -> tuple[Optional[Dict[str, Any]], bool]:
701 manifest_path = os.path.join(path, "plugin.json")

Callers 2

run_actionMethod · 0.95
stop_pluginMethod · 0.95

Calls 2

getMethod · 0.45

Tested by

no test coverage detected