MCPcopy Create free account
hub / github.com/ShipSecAI/studio / parseAdditionalScopes

Function parseAdditionalScopes

frontend/src/pages/IntegrationsManager.tsx:129–141  ·  view source on GitHub ↗
(input: string | undefined)

Source from the content-addressed store, hash-verified

127 }, [connections]);
128
129 const parseAdditionalScopes = (input: string | undefined): string[] => {
130 if (!input) {
131 return [];
132 }
133 return Array.from(
134 new Set(
135 input
136 .split(/[\s,]+/)
137 .map((scope) => scope.trim())
138 .filter(Boolean),
139 ),
140 );
141 };
142
143 const buildRequestedScopes = (provider: IntegrationProvider): string[] => {
144 const baseScopes = provider.defaultScopes ?? [];

Callers 2

buildRequestedScopesFunction · 0.85
IntegrationsManagerFunction · 0.85

Calls 1

fromMethod · 0.80

Tested by

no test coverage detected