MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / installPlugin

Method installPlugin

test/core/bridge_coordinator.test.ts:603–615  ·  view source on GitHub ↗
({ providerProfile, pluginName, marketplaceName = null, marketplacePath = null }: any = {})

Source from the content-addressed store, hash-verified

601 }
602
603 async installPlugin({ providerProfile, pluginName, marketplaceName = null, marketplacePath = null }: any = {}) {
604 this.installPluginCalls.push({ providerProfile, pluginName, marketplaceName, marketplacePath });
605 const plugin = this.findPluginSummaryByName(pluginName, marketplaceName, marketplacePath);
606 if (plugin) {
607 plugin.installed = true;
608 }
609 this.recomputePluginEnabledStates();
610 const detail = this.pluginDetails.get(pluginName) ?? null;
611 return {
612 authPolicy: plugin?.authPolicy ?? 'ON_USE',
613 appsNeedingAuth: detail?.apps?.filter((entry: any) => entry?.needsAuth) ?? [],
614 };
615 }
616
617 async uninstallPlugin({ providerProfile, pluginId }: any = {}) {
618 this.uninstallPluginCalls.push({ providerProfile, pluginId });

Callers

nothing calls this directly

Calls 3

getMethod · 0.65

Tested by

no test coverage detected