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

Function list_plugins

backend/app/services/tool/plugin/cache.py:123–137  ·  view source on GitHub ↗

List plugins by bundle_id. :param bundle_id: the bundle id to filter by. :return: a list of plugins

(
    bundle_id: Optional[str],
)

Source from the content-addressed store, hash-verified

121
122
123def list_plugins(
124 bundle_id: Optional[str],
125):
126 """
127 List plugins by bundle_id.
128
129 :param bundle_id: the bundle id to filter by.
130 :return: a list of plugins
131 """
132
133 plugins = _bundle_plugin_dict.get(bundle_id, None)
134 if plugins is None:
135 raise_http_error(ErrorCode.OBJECT_NOT_FOUND, message=f"Bundle {bundle_id} not found.")
136
137 return plugins
138
139
140def get_bundle(bundle_id: str) -> Optional[Bundle]:

Callers 3

buildMethod · 0.90
api_list_bundlesFunction · 0.50
api_list_pluginsFunction · 0.50

Calls 2

raise_http_errorFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected