MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / readClaudeEnabledPlugins

Function readClaudeEnabledPlugins

internal/cli/plugin_listing.go:178–191  ·  view source on GitHub ↗
(settingsPath string)

Source from the content-addressed store, hash-verified

176}
177
178func readClaudeEnabledPlugins(settingsPath string) map[string]bool {
179 out := make(map[string]bool)
180 data, err := os.ReadFile(settingsPath)
181 if err != nil {
182 return out
183 }
184 var settings struct {
185 EnabledPlugins map[string]bool `json:"enabledPlugins"`
186 }
187 if err := json.Unmarshal(data, &settings); err != nil {
188 return out
189 }
190 return settings.EnabledPlugins
191}
192
193// isClaudePluginApp returns true if the app uses the Claude-style plugin
194// metadata model (installed_plugins.json + known_marketplaces.json) rather

Callers 1

listClaudePluginsFunction · 0.85

Calls 1

ReadFileMethod · 0.80

Tested by

no test coverage detected