MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / get_plugin

Function get_plugin

plugin/app/cache/plugin.py:97–106  ·  view source on GitHub ↗

Get a plugin by plugin_id. :param bundle_id: the bundle id. :param plugin_id: the plugin id. :return: the plugin or None if not found.

(bundle_id, plugin_id: str)

Source from the content-addressed store, hash-verified

95
96
97def get_plugin(bundle_id, plugin_id: str) -> Optional[Plugin]:
98 """
99 Get a plugin by plugin_id.
100
101 :param bundle_id: the bundle id.
102 :param plugin_id: the plugin id.
103 :return: the plugin or None if not found.
104 """
105
106 return __bundle_plugin_dict.get(bundle_id, {}).get(plugin_id, None)
107
108
109def get_plugin_cache() -> List[Dict]:

Callers 1

validate_afterMethod · 0.90

Calls 1

getMethod · 0.45

Tested by

no test coverage detected