MCPcopy
hub / github.com/HKUDS/DeepCode / enable

Method enable

workflows/plugins/base.py:243–251  ·  view source on GitHub ↗

Enable a plugin by name.

(self, plugin_name: str)

Source from the content-addressed store, hash-verified

241 return False
242
243 def enable(self, plugin_name: str) -> bool:
244 """Enable a plugin by name."""
245 for plugins in self._plugins.values():
246 for plugin in plugins:
247 if plugin.name == plugin_name:
248 plugin.enabled = True
249 self.logger.info(f"Enabled plugin '{plugin_name}'")
250 return True
251 return False
252
253 def disable(self, plugin_name: str) -> bool:
254 """Disable a plugin by name."""

Callers 1

agentFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected