MCPcopy
hub / github.com/codeaashu/claude-code / getStrictKnownMarketplaces

Function getStrictKnownMarketplaces

src/utils/plugins/marketplaceHelpers.ts:159–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

157 * Returns null if no restriction is in place, or an array of allowed sources.
158 */
159export function getStrictKnownMarketplaces(): MarketplaceSource[] | null {
160 const policySettings = getSettingsForSource('policySettings')
161 if (!policySettings?.strictKnownMarketplaces) {
162 return null // No restrictions
163 }
164 return policySettings.strictKnownMarketplaces
165}
166
167/**
168 * Get the marketplace source blocklist from policy settings.

Callers 5

addMarketplaceSourceFunction · 0.85
isSourceAllowedByPolicyFunction · 0.85

Calls 1

getSettingsForSourceFunction · 0.85

Tested by

no test coverage detected